android_kernel_motorola_sm6375/kernel/bpf
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jakub Sitnicki 7f56586f96
UPSTREAM: bpf, netns: Fix build without CONFIG_INET
When CONFIG_NET is set but CONFIG_INET isn't, build fails with:

  ld: kernel/bpf/net_namespace.o: in function `netns_bpf_attach_type_unneed':
  kernel/bpf/net_namespace.c:32: undefined reference to `bpf_sk_lookup_enabled'
  ld: kernel/bpf/net_namespace.o: in function `netns_bpf_attach_type_need':
  kernel/bpf/net_namespace.c:43: undefined reference to `bpf_sk_lookup_enabled'

This is because without CONFIG_INET bpf_sk_lookup_enabled symbol is not
available. Wrap references to bpf_sk_lookup_enabled with preprocessor
conditionals.

Fixes: 1559b4aa1db4 ("inet: Run SK_LOOKUP BPF program on socket lookup")
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Change-Id: I9d13ff7b307142e5aa0d5e7ff6adbca6e55dab95
Signed-off-by: Jakub Sitnicki <jakub@cloudflare.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
Link: https://lore.kernel.org/bpf/20200721100716.720477-1-jakub@cloudflare.com
2026-01-14 18:13:18 -08:00
..
preload
arraymap.c
bpf_inode_storage.c
bpf_iter.c
bpf_local_storage.c
bpf_lru_list.c
bpf_lru_list.h
bpf_lsm.c
bpf_struct_ops.c
bpf_struct_ops_types.h
btf.c UPSTREAM: bpf: Eliminate remaining "make W=1" warnings in kernel/bpf/btf.o 2026-01-14 18:13:10 -08:00
cgroup.c BACKPORT: treewide: Use fallthrough pseudo-keyword 2026-01-14 18:13:16 -08:00
core.c UPSTREAM: bpf: Detect IP == ksym.end as part of BPF program 2026-01-14 18:13:08 -08:00
cpumap.c BACKPORT: treewide: Use fallthrough pseudo-keyword 2026-01-14 18:13:16 -08:00
devmap.c
disasm.c
disasm.h
dispatcher.c
hashtab.c
helpers.c UPSTREAM: bpf: Check rcu_read_lock_trace_held() before calling bpf map helpers 2026-01-14 18:13:12 -08:00
inode.c
local_storage.c
lpm_trie.c
Makefile
map_in_map.c
map_in_map.h
map_iter.c
net_namespace.c UPSTREAM: bpf, netns: Fix build without CONFIG_INET 2026-01-14 18:13:18 -08:00
offload.c
percpu_freelist.c
percpu_freelist.h
prog_iter.c
queue_stack_maps.c
reuseport_array.c
ringbuf.c UPSTREAM: bpf: Fix overrunning reservations in ringbuf 2026-01-14 18:13:10 -08:00
stackmap.c UPSTREAM: bpf: Add crosstask check to __bpf_get_stack 2026-01-14 18:13:08 -08:00
syscall.c UPSTREAM: bpf: Check correct cred for CAP_SYSLOG in bpf_dump_raw_ok() 2026-01-14 18:13:17 -08:00
sysfs_btf.c
task_iter.c
tnum.c
trampoline.c
verifier.c BACKPORT: bpf: Inherit expanded/patched seen count from old aux data 2026-01-14 18:13:17 -08:00