Hugh Dickins
705e87c0c3
[PATCH] mm: pte_offset_map_lock loops
...
Convert those common loops using page_table_lock on the outside and
pte_offset_map within to use just pte_offset_map_lock within instead.
These all hold mmap_sem (some exclusively, some not), so at no level can a
page table be whipped away from beneath them. But whereas pte_alloc loops
tested with the "atomic" pmd_present, these loops are testing with pmd_none,
which on i386 PAE tests both lower and upper halves.
That's now unsafe, so add a cast into pmd_none to test only the vital lower
half: we lose a little sensitivity to a corrupt middle directory, but not
enough to worry about. It appears that i386 and UML were the only
architectures vulnerable in this way, and pgd and pud no problem.
Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-10-29 21:40:40 -07:00
..
2005-06-23 09:45:09 -07:00
2005-09-09 13:57:35 -07:00
2005-09-05 00:06:10 -07:00
2005-09-05 00:06:10 -07:00
2005-06-23 09:45:09 -07:00
2005-10-28 16:47:49 -07:00
2005-08-07 10:00:38 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-08-25 12:40:44 -04:00
2005-09-05 00:06:11 -07:00
2005-09-12 10:50:58 -07:00
2005-09-05 00:06:10 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-09-07 16:57:21 -07:00
2005-07-29 11:01:22 -04:00
2005-04-16 15:20:36 -07:00
2005-05-01 08:59:01 -07:00
2005-09-05 00:06:11 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-08-29 16:02:48 -07:00
2005-06-25 16:24:29 -07:00
2005-05-01 08:58:49 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-09-05 00:06:13 -07:00
2005-09-10 10:06:34 -07:00
2005-10-08 15:00:57 -07:00
2005-04-16 15:20:36 -07:00
2005-05-01 08:58:51 -07:00
2005-09-07 16:57:21 -07:00
2005-07-26 14:35:42 -07:00
2005-04-16 15:20:36 -07:00
2005-09-07 16:57:38 -07:00
2005-08-24 12:08:54 -04:00
2005-05-05 16:36:47 -07:00
2005-09-21 16:16:29 -07:00
2005-06-23 09:45:09 -07:00
2005-04-16 15:20:36 -07:00
2005-06-25 16:24:53 -07:00
2005-05-01 08:58:50 -07:00
2005-09-30 12:41:17 -07:00
2005-07-22 18:19:20 -04:00
2005-06-30 08:45:10 -07:00
2005-04-16 15:20:36 -07:00
2005-06-27 17:36:41 -07:00
2005-08-24 12:08:54 -04:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-06-25 16:24:30 -07:00
2005-04-16 15:20:36 -07:00
2005-09-05 00:06:13 -07:00
2005-06-25 16:24:51 -07:00
2005-04-16 15:20:36 -07:00
2005-06-23 09:45:21 -07:00
2005-04-16 15:20:36 -07:00
2005-05-26 16:16:16 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-09-09 13:56:44 -07:00
2005-05-05 16:36:49 -07:00
2005-04-16 15:20:36 -07:00
2005-09-08 01:45:47 -04:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-09-05 00:06:12 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-09-12 10:49:57 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-09-05 00:05:46 -07:00
2005-06-23 09:45:10 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-08-14 18:21:30 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-09-05 00:06:12 -07:00
2005-10-29 21:40:40 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-09-10 10:06:34 -07:00
2005-09-05 00:06:12 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-10-29 21:40:35 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-06-29 18:45:19 +01:00
2005-09-05 00:06:09 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-05-04 07:33:15 -07:00
2005-09-05 00:06:13 -07:00
2005-08-29 15:31:35 -07:00
2005-04-16 15:20:36 -07:00
2005-06-23 09:45:05 -07:00
2005-09-10 10:06:21 -07:00
2005-09-10 10:06:21 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-06-24 10:39:17 -07:00
2005-04-16 15:24:46 -07:00
2005-09-05 00:06:12 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-09-09 19:28:28 +02:00
2005-09-05 00:06:18 -07:00
2005-06-23 09:45:11 -07:00
2005-04-16 15:20:36 -07:00
2005-06-27 15:11:44 -07:00
2005-09-12 10:49:57 -07:00
2005-09-05 00:05:48 -07:00
2005-09-07 16:57:35 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-09-12 10:50:55 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-09-05 00:06:11 -07:00