]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] lock PTE before updating it in 440/BookE page fault handler
authorEugene Surovegin <ebs@ebshome.net>
Tue, 28 Mar 2006 18:13:12 +0000 (10:13 -0800)
committerPaul Mackerras <paulus@samba.org>
Wed, 29 Mar 2006 02:44:15 +0000 (13:44 +1100)
commit144f7ef104636505afb78a3aef19df63f922399d
treef8c0e9463de01323db2cb1a62f4eb83adb5ce7ca
parent68ecf35048b4b93e6c9fe7f94ef0311e04bd108b
[PATCH] lock PTE before updating it in 440/BookE page fault handler

Fix 44x and BookE page fault handler to correctly lock PTE before
trying to pte_update() it, otherwise this PTE might be swapped out
after pte_present() check but before pte_uptdate() call, resulting in
corrupted PTE. This can happen with enabled preemption and low memory
condition.

Signed-off-by: Eugene Surovegin <ebs@ebshome.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/mm/fault.c
arch/powerpc/mm/pgtable_32.c
arch/ppc/mm/fault.c
arch/ppc/mm/pgtable.c
include/asm-ppc/pgtable.h