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 UPSTREAM: bpf: Fix umd memory leak in copy_process() 2026-01-14 18:12:50 -08:00
arraymap.c UPSTREAM: bpf: Acquire map uref in .init_seq_private for array map iterator 2026-01-14 18:13:02 -08:00
bpf_inode_storage.c UPSTREAM: bpf: Change inode_storage's lookup_elem return value from NULL to -EBADF 2026-01-14 18:12:50 -08:00
bpf_iter.c UPSTREAM: bpf: Fix an unitialized value in bpf_iter 2026-01-14 18:12:49 -08:00
bpf_local_storage.c UPSTREAM: bpf: Annotate data races in bpf_local_storage 2026-01-14 18:13:06 -08:00
bpf_lru_list.c
bpf_lru_list.h
bpf_lsm.c UPSTREAM: bpf: Update verification logic for LSM programs 2026-01-14 18:12:46 -08:00
bpf_struct_ops.c UPSTREAM: bpf: Handle return value of BPF_PROG_TYPE_STRUCT_OPS prog 2026-01-14 18:12:57 -08:00
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 UPSTREAM: bpf, devmap: Use GFP_KERNEL for xdp bulk queue allocation 2026-01-14 18:12:49 -08:00
disasm.c
disasm.h
dispatcher.c
hashtab.c UPSTREAM: bpf: Acquire map uref in .init_seq_private for hash map iterator 2026-01-14 18:13:02 -08:00
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 UPSTREAM: bpf: link: Refuse non-O_RDWR flags in BPF_OBJ_GET 2026-01-14 18:12:51 -08:00
local_storage.c UPSTREAM: bpf: Fix NULL pointer dereference in bpf_get_local_storage() helper 2026-01-14 18:12:57 -08:00
lpm_trie.c UPSTREAM: bpf: Add map_meta_equal map ops 2026-01-14 18:12:24 -08:00
Makefile UPSTREAM: bpf: Implement bpf_local_storage for inodes 2026-01-14 18:12:21 -08:00
map_in_map.c UPSTREAM: bpf: Relax max_entries check for most of the inner map types 2026-01-14 18:12:24 -08:00
map_in_map.h UPSTREAM: bpf: Add map_meta_equal map ops 2026-01-14 18:12:24 -08:00
map_iter.c UPSTREAM: bpf: Implement link_query callbacks in map element iterators 2026-01-14 18:12:16 -08:00
net_namespace.c UPSTREAM: bpf, netns: Fix build without CONFIG_INET 2026-01-14 18:13:18 -08:00
offload.c
percpu_freelist.c UPSTREAM: bpf: Initialize same number of free nodes for each pcpu_freelist 2026-01-14 18:13:03 -08:00
percpu_freelist.h UPSTREAM: bpf: Use raw_spin_trylock() for pcpu_freelist_push/pop in NMI 2026-01-14 18:12:40 -08:00
prog_iter.c
queue_stack_maps.c UPSTREAM: bpf: Add map_meta_equal map ops 2026-01-14 18:12:24 -08:00
reuseport_array.c UPSTREAM: bpf, net: Rework cookie generator as per-cpu one 2026-01-14 18:12:39 -08:00
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 UPSTREAM: bpf: Save correct stopping point in file seq iteration 2026-01-14 18:12:47 -08:00
tnum.c
trampoline.c UPSTREAM: bpf: Fix potential array overflow in bpf_trampoline_get_progs() 2026-01-14 18:13:01 -08:00
verifier.c BACKPORT: bpf: Inherit expanded/patched seen count from old aux data 2026-01-14 18:13:17 -08:00