aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/tracing_struct.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2024-10-24 17:17:13 +0000
committerAndrii Nakryiko <[email protected]>2024-10-24 17:17:13 +0000
commitd5fb316e2af1d947f0f6c3666e373a54d9f27c6f (patch)
treeefb828d257aea579f783c2792164a55c3ce9f8b9 /tools/testing/selftests/bpf/prog_tests/tracing_struct.c
parentbpf: fix do_misc_fixups() for bpf_get_branch_snapshot() (diff)
parentbpf: Check validity of link->type in bpf_link_show_fdinfo() (diff)
downloadkernel-d5fb316e2af1d947f0f6c3666e373a54d9f27c6f.tar.gz
kernel-d5fb316e2af1d947f0f6c3666e373a54d9f27c6f.zip
Merge branch 'add-the-missing-bpf_link_type-invocation-for-sockmap'
Hou Tao says: ==================== Add the missing BPF_LINK_TYPE invocation for sockmap From: Hou Tao <[email protected]> Hi, The tiny patch set fixes the out-of-bound read problem when reading the fdinfo of sock map link fd. And in order to spot such omission early for the newly-added link type in the future, it also checks the validity of the link->type and adds a WARN_ONCE() for missed invocation. Please see individual patches for more details. And comments are always welcome. v3: * patch #2: check and warn the validity of link->type instead of adding a static assertion for bpf_link_type_strs array. v2: http://lore.kernel.org/bpf/[email protected] ==================== Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Andrii Nakryiko <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/tracing_struct.c')
0 files changed, 0 insertions, 0 deletions