mirror of
https://github.com/torvalds/linux.git
synced 2024-11-16 09:02:00 +00:00
546fe1cbf9
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> |
||
---|---|---|
.. | ||
include | ||
ptproxy | ||
exec_kern.c | ||
exec_user.c | ||
gdb_kern.c | ||
gdb.c | ||
ksyms.c | ||
Makefile | ||
mem_user.c | ||
mem.c | ||
process_kern.c | ||
syscall_kern.c | ||
syscall_user.c | ||
tlb.c | ||
tracer.c | ||
trap_user.c | ||
uaccess_user.c | ||
uaccess.c |