commit | 98a23609b10364a51a1bb3688f8dd1cd1aa94a9a | [log] [tgz] |
---|---|---|
author | Christoph Hellwig <[email protected]> | Mon Jun 08 21:34:50 2020 -0700 |
committer | Linus Torvalds <[email protected]> | Tue Jun 09 09:39:15 2020 -0700 |
tree | 8cf32f92fccd8cd5264434d42fa68dcba4c2ab3c | |
parent | 7676fbf21b5fa04341c8046c2cbcd1949293e7ec [diff] |
maccess: always use strict semantics for probe_kernel_read Except for historical confusion in the kprobes/uprobes and bpf tracers, which has been fixed now, there is no good reason to ever allow user memory accesses from probe_kernel_read. Switch probe_kernel_read to only read from kernel memory. [[email protected]: update it for "mm, dump_page(): do not crash with invalid mapping pointer"] Signed-off-by: Christoph Hellwig <[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]>