aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/progs/test_tcp_custom_syncookie.c
diff options
context:
space:
mode:
authorMykyta Yatsenko <[email protected]>2025-05-14 11:32:20 +0000
committerAndrii Nakryiko <[email protected]>2025-05-14 16:30:06 +0000
commitd0445d7dd3fd9b15af7564c38d7aa3cbc29778ee (patch)
treece2ef839e13a8a727aaadf0f982ed5a8790c22b8 /tools/testing/selftests/bpf/progs/test_tcp_custom_syncookie.c
parentbpf: Add support for __prog argument suffix to pass in prog->aux (diff)
downloadkernel-d0445d7dd3fd9b15af7564c38d7aa3cbc29778ee.tar.gz
kernel-d0445d7dd3fd9b15af7564c38d7aa3cbc29778ee.zip
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 <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_tcp_custom_syncookie.c')
0 files changed, 0 insertions, 0 deletions