linux-stable-rt/arch/um/kernel
Paolo 'Blaisorblade' Giarrusso cbc24afa82 [PATCH] uml: remove bogus WARN_ON, triggerable harmlessly on a page fault race
The below warning was added in place of pte_mkyoung(); if (is_write)
pte_mkdirty();

In fact, if the PTE is not marked young/dirty, our dirty/accessed bit
emulation would cause the TLB permission not to be changed, and so we'd loop,
and given we don't support preemption yet, we'd busy-hang here.

However, I've seen this warning trigger without crashes during a loop of
concurrent kernel builds, at random times (i.e. like a race condition), and I
realized that two concurrent faults on the same page, one on read and one on
write, can trigger it. The read fault gets serviced and the PTE gets marked
writable but clean (it's possible on a shared-writable mapping), while the
generic code sees the PTE was already installed and returns without action. In
this case, we'll see another fault and service it normally.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Acked-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-11-13 18:14:14 -08:00
..
skas [PATCH] uml: maintain own LDT entries 2005-11-07 07:53:31 -08:00
tt
Makefile [PATCH] uml: separate libc-dependent helper code 2005-11-07 07:53:31 -08:00
asm-offsets.c
config.c.in
dyn.lds.S
exec_kern.c
exitcode.c
gmon_syms.c
gprof_syms.c
init_task.c
initrd.c
irq.c
irq_user.c
ksyms.c [PATCH] uml: separate libc-dependent helper code 2005-11-07 07:53:31 -08:00
mem.c [PATCH] uml: fix hardcoded ZONE_* constants in zone setup 2005-11-07 07:53:32 -08:00
physmem.c [PATCH] uml: big memory fixes 2005-11-07 07:53:31 -08:00
process_kern.c
ptrace.c [PATCH] consolidate sys_ptrace() 2005-11-07 07:53:42 -08:00
reboot.c
resource.c
sigio_kern.c
sigio_user.c [PATCH] kfree cleanup: arch 2005-11-07 07:54:06 -08:00
signal_kern.c
signal_user.c
smp.c
syscall.c
syscall_kern.c
sysrq.c
time.c
time_kern.c
tlb.c
trap_kern.c [PATCH] uml: remove bogus WARN_ON, triggerable harmlessly on a page fault race 2005-11-13 18:14:14 -08:00
trap_user.c
tty_log.c
uaccess.c
um_arch.c [PATCH] uml: big memory fixes 2005-11-07 07:53:31 -08:00
umid.c
uml.lds.S
user_util.c [PATCH] uml: separate libc-dependent helper code 2005-11-07 07:53:31 -08:00
vmlinux.lds.S