]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc1ee486f6598ca980074c119f6842288f5d56159
tree048722952f48b23c5f2e2bf5889776962dae09cf
parent10a48cab245418d608d12291598d4e723835d24e
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: 39f6a120e988 ("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