android_kernel_xiaomi_sm8350/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 [PATCH] uml: move libc code out of mem_user.c and tempfile.c 2005-09-17 11:50:00 -07:00
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 [PATCH] uml: skas0 stubs now check system call return values 2005-09-05 00:06:24 -07:00
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