aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorGravatar Andrii Nakryiko <andrii@kernel.org> 2020-12-03 12:46:22 -0800
committerGravatar Alexei Starovoitov <ast@kernel.org> 2020-12-03 17:38:20 -0800
commit2fe8890848c799515a881502339a0a7b2b555988 (patch)
tree34b719c69071e4b17daf35bf48c42263176c82e8 /tools
parentbpf: Fix bpf_put_raw_tracepoint()'s use of __module_address() (diff)
downloadlinux-2fe8890848c799515a881502339a0a7b2b555988.tar.gz
linux-2fe8890848c799515a881502339a0a7b2b555988.tar.bz2
linux-2fe8890848c799515a881502339a0a7b2b555988.zip
bpf: Keep module's btf_data_size intact after load
Having real btf_data_size stored in struct module is benefitial to quickly determine which kernel modules have associated BTF object and which don't. There is no harm in keeping this info, as opposed to keeping invalid pointer. Fixes: 607c543f939d ("bpf: Sanitize BTF data pointer after module is loaded") Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20201203204634.1325171-3-andrii@kernel.org
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions