kernel-ark/arch/um/kernel/tt
Paolo 'Blaisorblade' Giarrusso 546fe1cbf9 [PATCH] uml: fix hang in TT mode on fault
The current code doesn't handle well general protection faults on the host -
it thinks that cr2 is always the address of a page fault.  While actually, on
general protection faults, that address is not accessible, so we'd better
assume we couldn't satisfy the fault.  Currently instead we think we've fixed
it, so we go back, retry the instruction and fault again endlessly.

This leads to the kernel hanging when doing copy_from_user(dest, -1, ...) in
TT mode, since reading *(-1) causes a GFP, and we don't support kernel
preemption.

Thanks to Luo Xin for testing UML with LTP and reporting the failures he got.

Cc: Luo Xin <luothing@sina.com>
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Cc: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-09-22 22:17:36 -07:00
..
include [PATCH] uml: remove verify_area_{tt,skas} 2005-09-21 16:16:29 -07:00
ptproxy
exec_kern.c
exec_user.c
gdb_kern.c
gdb.c
ksyms.c
Makefile
mem_user.c
mem.c
process_kern.c [PATCH] uml: fix compile warning after consolidation patch 2005-09-21 16:16:30 -07:00
syscall_kern.c
syscall_user.c
tlb.c
tracer.c
trap_user.c
uaccess_user.c [PATCH] uml: fix hang in TT mode on fault 2005-09-22 22:17:36 -07:00
uaccess.c