bpf: BPF_SYSCALL depends INET
Subsystems (3)
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 INETnet_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
@@ -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
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_enabledis defined with INETnet_namespaceis controlled byBPF_SYSCALL
pls rebase. it was fixed already.
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_enabledis defined with INETnet_namespaceis controlled byBPF_SYSCALLpls 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