Lorenz Bauer
23ff609c2d
UPSTREAM: bpf: Explicitly size compatible_reg_types
...
Arrays with designated initializers have an implicit length of the highest
initialized value plus one. I used this to ensure that newly added entries
in enum bpf_reg_type get a NULL entry in compatible_reg_types.
This is difficult to understand since it requires knowledge of the
peculiarities of designated initializers. Use __BPF_ARG_TYPE_MAX to size
the array instead.
Suggested-by: Alexei Starovoitov <ast@kernel.org>
Change-Id: I2f69d60ae26f495de801e0be5b24a7a95a10da15
Signed-off-by: Lorenz Bauer <lmb@cloudflare.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/20200923160156.80814-1-lmb@cloudflare.com
Signed-off-by: Sorayukii <sorayukii69@gmail.com>
2026-05-15 17:59:32 +07:00
..
arraymap.c
UPSTREAM: bpf: Simplify __bpf_arch_text_poke poke type handling
2026-05-15 17:59:17 +07:00
bpf_lru_list.c
BACKPORT: bpf: Fix 32 bit src register truncation on div/mod
2026-05-15 17:58:54 +07:00
bpf_lru_list.h
BACKPORT: bpf: Fix 32 bit src register truncation on div/mod
2026-05-15 17:58:54 +07:00
bpf_struct_ops.c
UPSTREAM: bpf: Move btf_resolve_size into __btf_resolve_size
2026-05-15 17:59:29 +07:00
bpf_struct_ops_types.h
UPSTREAM: bpf: tcp: Support tcp_congestion_ops in bpf
2026-05-15 17:59:24 +07:00
btf.c
BACKPORT: bpf: Allow specifying a BTF ID per argument in function protos
2026-05-15 17:59:31 +07:00
cgroup.c
BACKPORT: bpf: Support replacing cgroup-bpf program in MULTI mode
2026-05-15 17:59:23 +07:00
core.c
UPSTREAM: bpf: Remove unnecessary assertion on fp_old
2026-05-15 17:59:21 +07:00
cpumap.c
UPSTREAM: xdp: Make cpumap flush_list common for all map instances
2026-05-15 17:59:22 +07:00
devmap.c
UPSTREAM: xdp: Make devmap flush_list common for all map instances
2026-05-15 17:59:22 +07:00
disasm.c
BACKPORT: treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 295
2026-05-15 17:57:45 +07:00
disasm.h
BACKPORT: treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 295
2026-05-15 17:57:45 +07:00
dispatcher.c
UPSTREAM: bpf: Introduce BPF dispatcher
2026-05-15 17:59:20 +07:00
hashtab.c
UPSTREAM: Revert "bpf: Add map and need_defer parameters to .map_fd_put_ptr()"
2026-05-15 17:58:16 +07:00
helpers.c
UPSTREAM: bpf: Fix bpf_strtol and bpf_strtoul helpers for 32bit
2026-05-15 17:58:16 +07:00
inode.c
BACKPORT: bpf: Convert bpf_prog refcnt to atomic64_t
2026-05-15 17:59:15 +07:00
local_storage.c
UPSTREAM: bpf: Fix cgroup local storage prog tracking
2026-05-15 17:59:21 +07:00
lpm_trie.c
UPSTREAM: bpf: Fix exact match conditions in trie_get_next_key()
2026-05-15 17:58:17 +07:00
Makefile
BACKPORT: bpf: Implement BPF ring buffer and verifier support for it
2026-05-15 17:59:25 +07:00
map_in_map.c
UPSTREAM: bpf: Introduce BPF_MAP_TYPE_STRUCT_OPS
2026-05-15 17:59:24 +07:00
map_in_map.h
BACKPORT: bpf: Fix 32 bit src register truncation on div/mod
2026-05-15 17:58:54 +07:00
offload.c
BACKPORT: bpf: offload: add priv field for drivers
2026-05-15 17:57:32 +07:00
percpu_freelist.c
BACKPORT: bpf: Fix 32 bit src register truncation on div/mod
2026-05-15 17:58:54 +07:00
percpu_freelist.h
BACKPORT: bpf: Fix 32 bit src register truncation on div/mod
2026-05-15 17:58:54 +07:00
queue_stack_maps.c
UPSTREAM: bpf: Avoid deadlock when using queue and stack maps from NMI
2026-05-15 17:58:15 +07:00
reuseport_array.c
UPSTREAM: bpf: move memory size checks to bpf_map_charge_init()
2026-05-15 17:57:45 +07:00
ringbuf.c
BACKPORT: bpf: Implement BPF ring buffer and verifier support for it
2026-05-15 17:59:25 +07:00
stackmap.c
UPSTREAM: irq_work: Convert flags to atomic_t
2026-05-15 17:59:10 +07:00
syscall.c
BACKPORT: bpf: Add BPF_CGROUP_INET_SOCK_RELEASE hook
2026-05-15 17:59:25 +07:00
sysfs_btf.c
UPSTREAM: bpf: Fix sysfs export of empty BTF section
2026-05-15 17:58:12 +07:00
tnum.c
BACKPORT: bpf: Fix 32 bit src register truncation on div/mod
2026-05-15 17:58:54 +07:00
trampoline.c
UPSTREAM: bpf: Introduce BPF_MAP_TYPE_STRUCT_OPS
2026-05-15 17:59:24 +07:00
verifier.c
UPSTREAM: bpf: Explicitly size compatible_reg_types
2026-05-15 17:59:32 +07:00
xskmap.c
UPSTREAM: xsk: Make xskmap flush_list common for all map instances
2026-05-15 17:59:22 +07:00