diff options
| author | Daniel Borkmann <daniel@iogearbox.net> | 2019-11-02 02:17:58 +0300 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2019-11-02 22:39:12 +0300 |
| commit | eb1b66887472eaa7342305b7890ae510dd9d1a79 (patch) | |
| tree | 33746a5e6c4bea68a4f2b8f91cf4b6c2e816608f /tools/perf/scripts/python/mem-phys-addr.py | |
| parent | 75a1a607bb7e6d918be3aca11ec2214a275392f4 (diff) | |
| download | linux-eb1b66887472eaa7342305b7890ae510dd9d1a79.tar.xz | |
bpf: Make use of probe_user_write in probe write helper
Convert the bpf_probe_write_user() helper to probe_user_write() such that
writes are not attempted under KERNEL_DS anymore which is buggy as kernel
and user space pointers can have overlapping addresses. Also, given we have
the access_ok() check inside probe_user_write(), the helper doesn't need
to do it twice.
Fixes: 96ae52279594 ("bpf: Add bpf_probe_write_user BPF helper to be called in tracers")
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/841c461781874c07a0ee404a454c3bc0459eed30.1572649915.git.daniel@iogearbox.net
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions
