summaryrefslogtreecommitdiff
path: root/scripts/lib/kdoc/kdoc_files.py
diff options
context:
space:
mode:
authorMykyta Yatsenko <yatsenko@meta.com>2025-05-14 14:32:20 +0300
committerAndrii Nakryiko <andrii@kernel.org>2025-05-14 19:30:06 +0300
commitd0445d7dd3fd9b15af7564c38d7aa3cbc29778ee (patch)
treece2ef839e13a8a727aaadf0f982ed5a8790c22b8 /scripts/lib/kdoc/kdoc_files.py
parentbc049387b41f41bee61e8cc338a5e99ca9798a09 (diff)
downloadlinux-d0445d7dd3fd9b15af7564c38d7aa3cbc29778ee.tar.xz
libbpf: Check bpf_map_skeleton link for NULL
Avoid dereferencing bpf_map_skeleton's link field if it's NULL. If BPF map skeleton is created with the size, that indicates containing link field, but the field was not actually initialized with valid bpf_link pointer, libbpf crashes. This may happen when using libbpf-rs skeleton. Skeleton loading may still progress, but user needs to attach struct_ops map separately. Signed-off-by: Mykyta Yatsenko <yatsenko@meta.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20250514113220.219095-1-mykyta.yatsenko5@gmail.com
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions