From: Andrii Nakryiko Date: Thu, 24 Oct 2024 17:17:13 +0000 (-0700) Subject: Merge branch 'add-the-missing-bpf_link_type-invocation-for-sockmap' X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=d5fb316e2af1d947f0f6c3666e373a54d9f27c6f;p=users%2Fdwmw2%2Flinux.git 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 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 --- d5fb316e2af1d947f0f6c3666e373a54d9f27c6f