Comment 3 for bug 1765698

Revision history for this message
Stefan Bader (smb) wrote :

Having enabled CONFIG_BPF_JIT_ALWAYS_ON broke the selftest module (test_bpf) and requires some additional upstream patches which have not been landed in upstream stable:

09584b406742413ac4c8d7e030374d4daa045b69 "bpf: fix selftests/bpf test_kmod.sh failure when CONFIG_BPF_JIT_ALWAYS_ON=y"
52fda36d63bfc8c8e8ae5eda8eb5ac6f52cd67ed "test_bpf: Fix testing with CONFIG_BPF_JIT_ALWAYS_ON=y on other arches"

With those two applied, loading test_bpf succeeds again:

$ sudo modprobe test_bpf
$ sudo dmesg|grep test_bpf|grep FAIL
[ 20.215102] test_bpf: Summary: 291 PASSED, 0 FAILED, [282/282 JIT'ed]