mirror-linux/tools/include/uapi/linux
Hou Tao c2f803052b bpf: Add the missing BPF_LINK_TYPE invocation for sockmap
There is an out-of-bounds read in bpf_link_show_fdinfo() for the sockmap
link fd. Fix it by adding the missing BPF_LINK_TYPE invocation for
sockmap link

Also add comments for bpf_link_type to prevent missing updates in the
future.

Fixes: 699c23f02c ("bpf: Add bpf_link support for sk_msg and sk_skb progs")
Signed-off-by: Hou Tao <houtao1@huawei.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20241024013558.1135167-2-houtao@huaweicloud.com
2024-10-24 10:17:12 -07:00
..
tc_act headers: Remove some left-over license text 2022-09-27 07:48:01 -07:00
bits.h tools headers: Synchronize linux/bits.h with the kernel sources 2024-04-26 22:13:10 -03:00
bpf.h bpf: Add the missing BPF_LINK_TYPE invocation for sockmap 2024-10-24 10:17:12 -07:00
bpf_common.h
bpf_perf_event.h
btf.h bpf: Add btf enum64 support 2022-06-07 10:20:42 -07:00
const.h tools headers UAPI: Sync the linux/const.h with the kernel headers 2023-05-10 14:19:20 -03:00
erspan.h
fadvise.h
filter.h
fs.h tools: sync uapi/linux/fs.h header into tools subdir 2024-07-12 15:52:12 -07:00
fscrypt.h tools headers UAPI: Update tools's copy of fscrypt.h header 2023-11-22 10:57:46 -08:00
hw_breakpoint.h Move bp_type_idx to include/linux/hw_breakpoint.h 2023-03-10 21:05:16 +01:00
if_link.h bonding: Add independent control state machine 2024-02-06 13:17:54 +01:00
if_tun.h treewide: uapi: Replace zero-length arrays with flexible-array members 2022-06-28 21:26:05 +02:00
if_xdp.h selftests/bpf: Add XDP_UMEM_TX_METADATA_LEN to XSK TX metadata test 2024-07-25 11:57:33 +02:00
in.h tools headers UAPI: Sync the linux/in.h with the kernel sources 2024-09-30 17:23:38 -03:00
io_uring.h tools headers: Grab copy of io_uring.h 2023-10-19 16:42:03 -06:00
kcmp.h
kvm.h tools/include: Sync uapi/linux/kvm.h with the kernel sources 2024-08-06 12:30:32 -07:00
memfd.h selftests/mm: fix additional build errors for selftests 2024-04-25 20:56:42 -07:00
mman.h mm: add MAP_DROPPABLE for designating always lazily freeable mappings 2024-07-19 20:22:12 +02:00
netdev.h netdev: add dmabuf introspection 2024-09-11 20:44:32 -07:00
netlink.h
perf_event.h tools/include: Sync uapi/linux/perf.h with the kernel sources 2024-08-06 14:34:29 -07:00
pkt_cls.h net/sched: Remove uapi support for tcindex classifier 2024-01-02 14:25:51 +00:00
pkt_sched.h net/sched: Remove uapi support for CBQ qdisc 2024-01-02 14:25:51 +00:00
prctl.h selftests/mm: kvm, mdwe fixes to avoid requiring "make headers" 2024-07-03 19:30:07 -07:00
seccomp.h tools headers UAPI: Copy seccomp.h to be able to build 'perf bench' in older systems 2023-09-13 08:48:48 -03:00
seg6.h treewide: uapi: Replace zero-length arrays with flexible-array members 2022-06-28 21:26:05 +02:00
seg6_local.h
stat.h tools/include: Sync filesystem headers with the kernel sources 2024-08-07 10:59:07 -07:00
stddef.h tools/headers: Pull in stddef.h to uapi to fix BPF selftests build in CI 2022-11-03 13:45:21 +01:00
tcp.h
tls.h
types.h
userfaultfd.h selftests/mm: fix additional build errors for selftests 2024-04-25 20:56:42 -07:00