summaryrefslogtreecommitdiff
path: root/tools/lib/bpf/str_error.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <andrii@kernel.org>2024-05-07 03:13:30 +0300
committerMartin KaFai Lau <martin.lau@kernel.org>2024-05-08 02:21:59 +0300
commite18e2e70dbd1ee3099049557060067b6ec703efa (patch)
treec3b020b972eac6993a7c63617a50bd141c5e13a0 /tools/lib/bpf/str_error.c
parent8374b56b1df5566d19d645e49da2bf31b660bcfd (diff)
downloadlinux-e18e2e70dbd1ee3099049557060067b6ec703efa.tar.xz
libbpf: handle yet another corner case of nulling out struct_ops program
There is yet another corner case where user can set STRUCT_OPS program reference in STRUCT_OPS map to NULL, but libbpf will fail to disable autoload for such BPF program. This time it's the case of "new" kernel which has type information about callback field, but user explicitly nulled-out program reference from user-space after opening BPF object. Fix, hopefully, the last remaining unhandled case. Fixes: 0737df6de946 ("libbpf: better fix for handling nulled-out struct_ops program") Fixes: f973fccd43d3 ("libbpf: handle nulled-out program in struct_ops correctly") Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/r/20240507001335.1445325-3-andrii@kernel.org Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Diffstat (limited to 'tools/lib/bpf/str_error.c')
0 files changed, 0 insertions, 0 deletions