Andrii Nakryiko
f8021e2b60
UPSTREAM: bpf: Fix build without CONFIG_NET when using BPF XDP link
...
Entire net/core subsystem is not built without CONFIG_NET. linux/netdevice.h
just assumes that it's always there, so the easiest way to fix this is to
conditionally compile out bpf_xdp_link_attach() use in bpf/syscall.c.
Fixes: aa8d3a716b59 ("bpf, xdp: Add bpf_link-based XDP attachment API")
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Change-Id: I8e2e9fabcda1234326e3cc4101f689e51cc9dd91
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
Acked-by: Song Liu <songliubraving@fb.com>
Link: https://lore.kernel.org/bpf/20200728190527.110830-1-andriin@fb.com
2026-01-14 18:12:11 -08:00
..
arraymap.c
UPSTREAM: bpf: Implement bpf iterator for array maps
2026-01-14 18:12:07 -08:00
bpf_iter.c
UPSTREAM: bpf: Implement bpf iterator for map elements
2026-01-14 18:12:07 -08:00
bpf_lru_list.c
bpf: Address KCSAN report on bpf_lru_list
2023-07-27 08:37:42 +02:00
bpf_lru_list.h
UPSTREAM: bpf: Fix a typo "inacitve" -> "inactive"
2025-12-23 13:36:12 -08:00
bpf_lsm.c
UPSTREAM: bpf: Use tracing helpers for lsm programs
2026-01-14 17:48:07 -08:00
bpf_struct_ops.c
UPSTREAM: bpf: Set map_btf_{name, id} for all map types
2026-01-14 17:50:46 -08:00
bpf_struct_ops_types.h
UPSTREAM: bpf: tcp: Support tcp_congestion_ops in bpf
2025-12-23 13:35:51 -08:00
btf.c
UPSTREAM: bpf: Support readonly/readwrite buffers in verifier
2026-01-14 18:12:07 -08:00
cgroup.c
BACKPORT: bpf: Make cgroup storages shared between programs on the same cgroup
2026-01-14 18:12:08 -08:00
core.c
BACKPORT: bpf: Make cgroup storages shared between programs on the same cgroup
2026-01-14 18:12:08 -08:00
cpumap.c
UPSTREAM: bpf: cpumap: Fix possible rcpu kthread hung
2026-01-14 18:12:05 -08:00
devmap.c
UPSTREAM: bpf: Set map_btf_{name, id} for all map types
2026-01-14 17:50:46 -08:00
disasm.c
disasm.h
dispatcher.c
UPSTREAM: bpf: Remove bpf_image tree
2025-12-23 13:36:07 -08:00
hashtab.c
UPSTREAM: bpf: Implement bpf iterator for hash maps
2026-01-14 18:12:07 -08:00
helpers.c
UPSTREAM: bpf: Implement BPF ring buffer and verifier support for it
2026-01-14 17:48:05 -08:00
inode.c
UPSTREAM: bpf: Create file bpf iterator
2025-12-23 13:36:19 -08:00
local_storage.c
UPSTREAM: bpf/local_storage: Fix build without CONFIG_CGROUP
2026-01-14 18:12:08 -08:00
lpm_trie.c
UPSTREAM: bpf: Remove redundant synchronize_rcu.
2026-01-14 18:12:00 -08:00
Makefile
UPSTREAM: bpf: Add bpf_prog iterator
2026-01-14 18:12:06 -08:00
map_in_map.c
BACKPORT: bpf: Implement CAP_BPF
2026-01-14 17:44:17 -08:00
map_in_map.h
Revert "bpf: Add map and need_defer parameters to .map_fd_put_ptr()"
2024-03-05 10:21:38 +00:00
map_iter.c
UPSTREAM: bpf: Implement bpf iterator for array maps
2026-01-14 18:12:07 -08:00
net_namespace.c
UPSTREAM: bpf: Introduce SK_LOOKUP program type with a dedicated attach point
2026-01-14 18:12:05 -08:00
offload.c
UPSTREAM: nsfs: clean-up ns_get_path() signature to return int
2025-12-23 13:35:44 -08:00
percpu_freelist.c
UPSTREAM: bpf: Dont iterate over possible CPUs with interrupts disabled
2025-12-23 13:35:58 -08:00
percpu_freelist.h
prog_iter.c
UPSTREAM: bpf: Refactor bpf_iter_reg to have separate seq_info member
2026-01-14 18:12:07 -08:00
queue_stack_maps.c
UPSTREAM: bpf: Remove redundant synchronize_rcu.
2026-01-14 18:12:00 -08:00
reuseport_array.c
UPSTREAM: bpf: net: Avoid incorrect bpf_sk_reuseport_detach call
2026-01-14 18:12:02 -08:00
ringbuf.c
UPSTREAM: bpf: Remove redundant synchronize_rcu.
2026-01-14 18:12:00 -08:00
stackmap.c
UPSTREAM: bpf: Fix build on architectures with special bpf_user_pt_regs_t
2026-01-14 18:12:08 -08:00
syscall.c
UPSTREAM: bpf: Fix build without CONFIG_NET when using BPF XDP link
2026-01-14 18:12:11 -08:00
sysfs_btf.c
task_iter.c
UPSTREAM: bpf: Refactor to provide aux info to bpf_iter_init_seq_priv_t
2026-01-14 18:12:07 -08:00
tnum.c
BACKPORT: bpf: Verifier, do explicit ALU32 bounds tracking
2025-12-23 13:36:11 -08:00
trampoline.c
UPSTREAM: bpf: lsm: Implement attach, detach and execution
2025-12-23 13:36:10 -08:00
verifier.c
UPSTREAM: bpf: Fix swapped arguments in calls to check_buffer_access
2026-01-14 18:12:08 -08:00