original_kernel/arch/powerpc/mm
Segher Boessenkool 9ba4ace39f [POWERPC] PowerPC: Prevent data exception in kernel space (32-bit)
The "is_exec" branch of the protection check in do_page_fault()
didn't do anything on 32-bit PowerPC.  So if a userland program
jumps to a page with Linux protection flags "---p", all the tests
happily fall through, and handle_mm_fault() is called, which in
turn calls handle_pte_fault(), which calls update_mmu_cache(),
which goes flush the dcache to a page with no access rights.

Boom.

This fixes it.

Signed-off-by: Segher Boessenkool <segher@kernel.crashing.org>
Cc: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2007-06-20 22:07:38 +10:00
..
4xx_mmu.c
44x_mmu.c
Makefile
fault.c [POWERPC] PowerPC: Prevent data exception in kernel space (32-bit) 2007-06-20 22:07:38 +10:00
fsl_booke_mmu.c
hash_low_32.S
hash_low_64.S
hash_native_64.c
hash_utils_64.c [POWERPC] Correct #endif comment 2007-05-17 21:11:19 +10:00
hugetlbpage.c
imalloc.c
init_32.c
init_64.c
lmb.c
mem.c [POWERPC] Fix warning in 32-bit builds with CONFIG_HIGHMEM 2007-05-22 20:20:57 +10:00
mmap.c Detach sched.h from mm.h 2007-05-21 09:18:19 -07:00
mmu_context_32.c
mmu_context_64.c
mmu_decl.h
numa.c
pgtable_32.c [POWERPC] Fix modpost warning 2007-05-23 07:49:37 -05:00
pgtable_64.c
ppc_mmu_32.c
slb.c
slb_low.S
slice.c
stab.c
tlb_32.c
tlb_64.c