android_kernel_samsung_msm8976/arch/um/os-Linux
Richard Weinberger 4fdaa3d479 um: Implement probe_kernel_read()
commit f75b1b1bedfb498cc43a992ce4d7ed8df3b1e770 upstream.

UML needs it's own probe_kernel_read() to handle kernel
mode faults correctly.
The implementation uses mincore() on the host side to detect
whether a page is owned by the UML kernel process.

This fixes also a possible crash when sysrq-t is used.
Starting with 3.10 sysrq-t calls probe_kernel_read() to
read details from the kernel workers. As kernel worker are
completely async pointers may turn NULL while reading them.

Signed-off-by: Richard Weinberger <richard@nod.at>
Cc: <stian@nixia.no>
Cc: <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-09-26 17:18:29 -07:00
..
drivers um: get rid of pointless include "..." where include <...> will do 2012-10-09 22:28:45 +02:00
skas um: get rid of pointless include "..." where include <...> will do 2012-10-09 22:28:45 +02:00
aio.c um: get rid of pointless include "..." where include <...> will do 2012-10-09 22:28:45 +02:00
elf_aux.c um: get rid of pointless include "..." where include <...> will do 2012-10-09 22:28:45 +02:00
execvp.c um: get rid of pointless include "..." where include <...> will do 2012-10-09 22:28:45 +02:00
file.c um: get rid of pointless include "..." where include <...> will do 2012-10-09 22:28:45 +02:00
helper.c um: get rid of pointless include "..." where include <...> will do 2012-10-09 22:28:45 +02:00
internal.h um: pass siginfo to guest process 2012-08-02 00:49:17 +02:00
irq.c um: get rid of pointless include "..." where include <...> will do 2012-10-09 22:28:45 +02:00
main.c um: get rid of pointless include "..." where include <...> will do 2012-10-09 22:28:45 +02:00
Makefile um: use the right ifdef around exports in user_syms.c 2012-03-25 00:29:55 +01:00
mem.c um: get rid of pointless include "..." where include <...> will do 2012-10-09 22:28:45 +02:00
process.c um: Implement probe_kernel_read() 2013-09-26 17:18:29 -07:00
registers.c um: get rid of pointless include "..." where include <...> will do 2012-10-09 22:28:45 +02:00
sigio.c um: get rid of pointless include "..." where include <...> will do 2012-10-09 22:28:45 +02:00
signal.c um: fix build failure due to mess-up of sig_info protorype 2013-03-11 10:08:03 +01:00
start_up.c um: add missing declaration of 'getrlimit()' and friends 2013-03-11 10:08:03 +01:00
time.c nohz: Rename CONFIG_NO_HZ to CONFIG_NO_HZ_COMMON 2013-04-03 13:56:03 +02:00
tty.c um: get rid of pointless include "..." where include <...> will do 2012-10-09 22:28:45 +02:00
umid.c um: get rid of pointless include "..." where include <...> will do 2012-10-09 22:28:45 +02:00
user_syms.c um: get rid of pointless include "..." where include <...> will do 2012-10-09 22:28:45 +02:00
util.c um: get rid of pointless include "..." where include <...> will do 2012-10-09 22:28:45 +02:00