Skip to contentSkip to conversation

bpf: BPF_SYSCALL depends INET

PATCH In review [email protected] 2 participants 3 messages Jul 23, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bpf: BPF_SYSCALL depends INET

From: Tom Rix <[email protected]>

A link error

kernel/bpf/net_namespace.o: In function `bpf_netns_link_release':
net_namespace.c: undefined reference to `bpf_sk_lookup_enabled'

bpf_sk_lookup_enabled is defined with INET
net_namespace is controlled by BPF_SYSCALL

So add a depends on INET to BPF_SYSCALL

---
 init/Kconfig | 1 +
 1 file changed, 1 insertion(+)
init/Kconfig +1 -0
index 7b8ef43e7fb4..817f70e6023c 100644
@@ -1663,6 +1663,7 @@ config BPF_SYSCALL
 	bool "Enable bpf() system call"
 	select BPF
 	select IRQ_WORK
+	depends on INET
 	default n
 	help
 	  Enable the bpf() system call that allows to manipulate eBPF
Signature · 1 line
2.18.1
#1 lore raw
Quoted 10 lines · On Thu, Jul 23, 2020 at 7:19 AM <[email protected]> wrote:

From: Tom Rix <[email protected]>

A link error

kernel/bpf/net_namespace.o: In function `bpf_netns_link_release':
net_namespace.c: undefined reference to `bpf_sk_lookup_enabled'

bpf_sk_lookup_enabled is defined with INET
net_namespace is controlled by BPF_SYSCALL

pls rebase. it was fixed already.

author
#2 lore raw
Quoted 12 lines · Alexei Starovoitov
Quoted 9 lines · On Thu, Jul 23, 2020 at 7:19 AM <[email protected]> wrote:

From: Tom Rix <[email protected]>

A link error

kernel/bpf/net_namespace.o: In function `bpf_netns_link_release':
net_namespace.c: undefined reference to `bpf_sk_lookup_enabled'

bpf_sk_lookup_enabled is defined with INET
net_namespace is controlled by BPF_SYSCALL

pls rebase. it was fixed already.

I guess it hasn't shown up in linux-next yet.

As i rebase every day, i'll get it evently.

Sorry for noise.

Tom