Martin Schwidefsky 0d01792300 [S390] pud_present/pmd_present bug.
Git commit 3610cce87af0693603db171d5b6f6735f5e3dc5b (yeah my own :-/)
introduced a bug in regard to pud/pmd table entries.
If the address of the page table refered to by a pud/pmd value happens
to have zeroes in the lower 32 bits, pud_present and pmd_present return
false. The obvious effect is that this triggers the BUG_ON in exit_mmap
because some ptes will not get released on process end.  Worse is that
the next fault for memory covered by that pud/pmd will allocate another
pmd/pte table and populate the pud/pmd entry. The old page table
entries hanging below this entry are lost!

The fix is simple, properly check against 0. The check is added for
pud_none/pmd_none as well even if these two functions work because
the invalid bit is in the lower 32 bits.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2007-12-17 16:25:56 +01:00
..
2006-09-28 16:56:43 +02:00
2007-10-19 11:53:41 -07:00
2007-03-05 23:35:50 +01:00
2006-09-28 16:56:43 +02:00
2007-10-12 16:12:59 +02:00
2007-10-12 16:12:59 +02:00
2007-10-12 16:12:59 +02:00
2006-09-28 16:56:43 +02:00
2007-02-05 21:18:19 +01:00
2007-07-17 10:23:11 -07:00
2007-02-05 21:18:19 +01:00
2007-02-12 15:49:57 +01:00
2007-05-10 15:45:52 +02:00
2006-10-06 16:38:35 +02:00
2006-09-28 16:56:43 +02:00
2007-10-16 09:43:10 -07:00
2007-10-22 12:52:49 +02:00
2007-10-22 12:52:49 +02:00
2007-12-17 16:25:56 +01:00
2007-05-11 08:29:34 -07:00
2007-01-11 18:18:22 -08:00
2007-06-19 13:10:20 +02:00
2006-09-28 16:56:43 +02:00
2007-10-17 08:42:47 -07:00
2007-04-27 16:01:44 +02:00
2006-09-28 16:56:43 +02:00
2006-09-28 16:56:43 +02:00
2007-10-22 12:52:49 +02:00
2007-02-05 21:18:17 +01:00
2007-07-27 12:29:19 +02:00