alistair23-linux/arch/arm/kernel
Hugh Dickins 69b0475456 [PATCH] mm: arm ready for split ptlock
Prepare arm for the split page_table_lock: three issues.

Signal handling's preserve and restore of iwmmxt context currently involves
reading and writing that context to and from user space, while holding
page_table_lock to secure the user page(s) against kswapd.  If we split the
lock, then the structure might span two pages, secured by to read into and
write from a kernel stack buffer, copying that out and in without locking (the
structure is 160 bytes in size, and here we're near the top of the kernel
stack).  Or would the overhead be noticeable?

arm_syscall's cmpxchg emulation use pte_offset_map_lock, instead of
pte_offset_map and mm-wide page_table_lock; and strictly, it should now also
take mmap_sem before descending to pmd, to guard against another thread
munmapping, and the page table pulled out beneath this thread.

Updated two comments in fault-armv.c.  adjust_pte is interesting, since its
modification of a pte in one part of the mm depends on the lock held when
calling update_mmu_cache for a pte in some other part of that mm.  This can't
be done with a split page_table_lock (and we've already taken the lowest lock
in the hierarchy here): so we'll have to disable split on arm, unless
CONFIG_CPU_CACHE_VIPT to ensures adjust_pte never used.

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:42 -07:00
..
apm.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
armksyms.c [ARM] 2977/1: armksyms.c - make items in export table static 2005-10-12 19:58:07 +01:00
arthur.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
asm-offsets.c [ARM] 3060/1: allow constants found in asm/memory.h to be used in asm code 2005-10-29 21:44:55 +01:00
bios32.c [PATCH] pci and yenta: pcibios_bus_to_resource 2005-08-04 21:32:46 -07:00
calls.S [ARM] 2896/1: Add sys_ipc_wrapper to pass 'fifth' argument on stack 2005-09-13 22:55:00 +01:00
compat.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
debug.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
dma-isa.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
dma.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ecard.c [ARM] Wrap calls to descriptor handlers 2005-09-04 19:45:00 +01:00
entry-armv.S [ARM] 3060/1: allow constants found in asm/memory.h to be used in asm code 2005-10-29 21:44:55 +01:00
entry-common.S [ARM] 2974/1: fix ARM710 swi bug workaround 2005-10-12 19:51:24 +01:00
entry-header.S kbuild: arm - use generic asm-offsets.h support 2005-09-09 21:08:59 +02:00
fiq.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
head.S [ARM] 3061/1: cleanup the XIP link address mess 2005-10-29 21:44:56 +01:00
init_task.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
io.c [ARM] Fix compiler warnings for memcpy_toio/memcpy_fromio/memset_io 2005-09-24 10:42:06 +01:00
irq.c [ARM] Wrap calls to descriptor handlers 2005-09-04 19:45:00 +01:00
isa.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
iwmmxt.S kbuild: arm - use generic asm-offsets.h support 2005-09-09 21:08:59 +02:00
Makefile [ARM] 3061/1: cleanup the XIP link address mess 2005-10-29 21:44:56 +01:00
module.c [ARM] Fix sparse warnings 2005-10-28 14:29:43 +01:00
process.c [PATCH] Don't export machine_restart, machine_halt, or machine_power_off. 2005-07-26 14:35:42 -07:00
ptrace.c [PATCH] convert that currently tests _NSIG directly to use valid_signal() 2005-05-01 08:59:14 -07:00
ptrace.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
semaphore.c [ARM] Fix warning in arch/arm/kernel/semaphore.c 2005-09-18 21:49:29 +01:00
setup.c [PATCH] ARM: Change 'param_offset' to 'boot_params' 2005-07-04 10:43:36 +01:00
signal.c [PATCH] mm: arm ready for split ptlock 2005-10-29 21:40:42 -07:00
signal.h [PATCH] ARM: Move signal return code into vector page 2005-06-22 20:26:05 +01:00
smp.c [ARM] Stack starts at THREAD_START_SP offset, not THREAD_SIZE-8 2005-09-04 11:03:15 +01:00
sys_arm.c [ARM] 2952/1: fix a register clobber list 2005-10-04 23:17:53 +01:00
time.c [PATCH] NTP: ntp-helper functions 2005-09-07 16:57:34 -07:00
traps.c [PATCH] mm: arm ready for split ptlock 2005-10-29 21:40:42 -07:00
vmlinux.lds.S [ARM] 3061/1: cleanup the XIP link address mess 2005-10-29 21:44:56 +01:00