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:
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:
09584b406742413 ac4c8d7e030374d 4daa045b69 "bpf: fix selftests/bpf test_kmod.sh failure when CONFIG_ BPF_JIT_ ALWAYS_ ON=y" 8e8ae5eda8eb5ac 6f52cd67ed "test_bpf: Fix testing with CONFIG_ BPF_JIT_ ALWAYS_ ON=y on other arches"
52fda36d63bfc8c
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]