aboutsummaryrefslogtreecommitdiff
path: root/mm/maccess.c
diff options
context:
space:
mode:
authorGravatar Christoph Hellwig <hch@lst.de> 2020-06-08 21:34:44 -0700
committerGravatar Linus Torvalds <torvalds@linux-foundation.org> 2020-06-09 09:39:15 -0700
commit9de1fec50b23117f0a19f7609cc837ca72e764a6 (patch)
tree067572c59d739d213debb438e5eed52dc3aed4d6 /mm/maccess.c
parentbpf: rework the compat kernel probe handling (diff)
downloadlinux-9de1fec50b23117f0a19f7609cc837ca72e764a6.tar.gz
linux-9de1fec50b23117f0a19f7609cc837ca72e764a6.tar.bz2
linux-9de1fec50b23117f0a19f7609cc837ca72e764a6.zip
tracing/kprobes: handle mixed kernel/userspace probes better
Instead of using the dangerous probe_kernel_read and strncpy_from_unsafe helpers, rework probes to try a user probe based on the address if the architecture has a common address space for kernel and userspace. [svens@linux.ibm.com:use strncpy_from_kernel_nofault() in fetch_store_string()] Link: http://lkml.kernel.org/r/20200606181903.49384-1-svens@linux.ibm.com Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Sven Schnelle <svens@linux.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Cc: Alexei Starovoitov <ast@kernel.org> Cc: Daniel Borkmann <daniel@iogearbox.net> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Masami Hiramatsu <mhiramat@kernel.org> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/20200521152301.2587579-15-hch@lst.de Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/maccess.c')
0 files changed, 0 insertions, 0 deletions