commit | 9de1fec50b23117f0a19f7609cc837ca72e764a6 | [log] [tgz] |
---|---|---|
author | Christoph Hellwig <[email protected]> | Mon Jun 08 21:34:44 2020 -0700 |
committer | Linus Torvalds <[email protected]> | Tue Jun 09 09:39:15 2020 -0700 |
tree | 067572c59d739d213debb438e5eed52dc3aed4d6 | |
parent | 8d92db5c04d10381f4db70ed99b1b576f5db18a7 [diff] |
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. [[email protected]:use strncpy_from_kernel_nofault() in fetch_store_string()] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: Sven Schnelle <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Cc: Alexei Starovoitov <[email protected]> Cc: Daniel Borkmann <[email protected]> Cc: "H. Peter Anvin" <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Masami Hiramatsu <[email protected]> Cc: Thomas Gleixner <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Linus Torvalds <[email protected]>