summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorAndrii Nakryiko <andrii@kernel.org>2024-10-24 10:17:13 -0700
committerAndrii Nakryiko <andrii@kernel.org>2024-10-24 10:17:13 -0700
commitd5fb316e2af1d947f0f6c3666e373a54d9f27c6f (patch)
treeefb828d257aea579f783c2792164a55c3ce9f8b9 /net
parent9806f283140ef3e4d259b7646bd8c66026bbaac5 (diff)
parent8421d4c8762bd022cb491f2f0f7019ef51b4f0a7 (diff)
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 <houtao1@huawei.com> 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/d49fa2f4-f743-c763-7579-c3cab4dd88cb@huaweicloud.com ==================== Link: https://lore.kernel.org/r/20241024013558.1135167-1-houtao@huaweicloud.com Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions