CONFIG_BPF
- Selects
CRYPTO_LIB_SHA256
CONFIG_HAVE_CBPF_JIT
CONFIG_HAVE_EBPF_JIT
CONFIG_HAVE_EBPF_JIT_KASAN
CONFIG_ARCH_WANT_DEFAULT_BPF_JIT
BPF subsystem
CONFIG_BPF_SYSCALL Enable bpf() system call
Enable the bpf() system call that allows to manipulate BPF programs and maps via file descriptors.
- Selects
BPF - Selects
IRQ_WORK - Selects
NEED_TASKS_RCU - Selects
TASKS_TRACE_RCU - Selects
BINARY_PRINTF - Selects
NET_SOCK_MSG if NET - Selects
NET_XGRESS if NET - Selects
PAGE_POOL if NET
CONFIG_BPF_JIT Enable BPF Just In Time compiler
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)
- Depends on
BPF && (HAVE_CBPF_JIT || HAVE_EBPF_JIT) - Selects
EXECMEM if BPF && (HAVE_CBPF_JIT || HAVE_EBPF_JIT)
If BPF_JIT
CONFIG_BPF_JIT_ALWAYS_ON Permanently enable BPF JIT and remove BPF interpreter
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.
- Depends on
BPF_SYSCALL && HAVE_EBPF_JIT && BPF_JIT
CONFIG_BPF_JIT_DEFAULT_ON
- Depends on
HAVE_EBPF_JIT && BPF_JIT
CONFIG_BPF_UNPRIV_DEFAULT_OFF Disable unprivileged BPF by default
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.
- Depends on
BPF_SYSCALL
CONFIG_BPF_CRYPTO
Provide the kfuncs needed for BPF programs to encrypt and decrypt data. The supported algorithms are AES-CBC and AES-ECB.
- Depends on
BPF_SYSCALL - Selects
CRYPTO_LIB_AES_CBC if BPF_SYSCALL - Selects
CRYPTO_LIB_AES_ECB if BPF_SYSCALL
CONFIG_BPF_LSM Enable BPF LSM Instrumentation
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.
- Depends on
BPF_EVENTS && BPF_SYSCALL && SECURITY && BPF_JIT
CONFIG_BPF_JIT_KASAN
Makes JIT compiler insert generic outline KASAN checks in BPF programs when they are inserted in the kernel. This feature is automatically enabled if the needed set of KASAN and BPF configuration options is enabled.
- Depends on
HAVE_EBPF_JIT_KASAN && KASAN_GENERIC && KASAN_VMALLOC && BPF_JIT