Kconfig

CONFIG_HAVE_CBPF_JIT

Unknown

CONFIG_HAVE_EBPF_JIT

On

CONFIG_HAVE_EBPF_JIT_KASAN

On

CONFIG_ARCH_WANT_DEFAULT_BPF_JIT

On

BPF subsystem

CONFIG_BPF_JIT Enable BPF Just In Time compiler

On

BPF programs are normally handled by a BPF interpreter. This option allows the kernel to generate native code when a program is loaded into the kernel. This will significantly speed-up processing of BPF programs.

Note, an admin should enable this feature changing: /proc/sys/net/core/bpf_jit_enable /proc/sys/net/core/bpf_jit_harden (optional) /proc/sys/net/core/bpf_jit_kallsyms (optional)

If BPF_JIT

CONFIG_BPF_JIT_ALWAYS_ON Permanently enable BPF JIT and remove BPF interpreter

On

Enables BPF JIT and removes BPF interpreter to avoid speculative execution of BPF instructions by the interpreter.

When CONFIG_BPF_JIT_ALWAYS_ON is enabled, /proc/sys/net/core/bpf_jit_enable is permanently set to 1 and setting any other value than that will return failure.

CONFIG_BPF_UNPRIV_DEFAULT_OFF Disable unprivileged BPF by default

On

Disables unprivileged BPF by default by setting the corresponding /proc/sys/kernel/unprivileged_bpf_disabled knob to 2. An admin can still reenable it by setting it to 0 later on, or permanently disable it by setting it to 1 (from which no other transition to 0 is possible anymore).

Unprivileged BPF could be used to exploit certain potential speculative execution side-channel vulnerabilities on unmitigated affected hardware.

If you are unsure how to answer this question, answer Y.

Includekernel/bpf/preload/Kconfig Open file

CONFIG_BPF_LSM Enable BPF LSM Instrumentation

On

Enables instrumentation of the security hooks with BPF programs for implementing dynamic MAC and Audit Policies.

If you are unsure how to answer this question, answer N.