bpf: Undo internal BPF_PROBE_MEM in BPF insns dump
authorAndrii Nakryiko <andriin@fb.com>
Sat, 13 Jun 2020 00:21:15 +0000 (17:21 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 13 Jun 2020 00:35:38 +0000 (17:35 -0700)
commit29fcb05bbf1a7008900bb9bee347bdbfc7171036
tree048722952f48b23c5f2e2bf5889776962dae09cf
parentcaf62492f479585296e9d636c798d5ac256b7b04
bpf: Undo internal BPF_PROBE_MEM in BPF insns dump

BPF_PROBE_MEM is kernel-internal implmementation details. When dumping BPF
instructions to user-space, it needs to be replaced back with BPF_MEM mode.

Fixes: 2a02759ef5f8 ("bpf: Add support for BTF pointers to interpreter")
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200613002115.1632142-1-andriin@fb.com
kernel/bpf/syscall.c