Directory Files
.. 392
preload 5
File Size
.arena.o.cmd 73 kB
.arraymap.o.cmd 74 kB
.backtrack.o.cmd 73 kB
.bloom_filter.o.cmd 62 kB
.bpf_cgrp_storage.o.cmd 73 kB
.bpf_inode_storage.o.cmd 75 kB
.bpf_insn_array.o.cmd 62 kB
.bpf_iter.o.cmd 73 kB
.bpf_local_storage.o.cmd 74 kB
.bpf_lru_list.o.cmd 31 kB
.bpf_lsm.o.cmd 76 kB
.bpf_lsm_proto.o.cmd 74 kB
.bpf_struct_ops.o.cmd 74 kB
.bpf_task_storage.o.cmd 73 kB
.btf.o.cmd 78 kB
.btf_iter.o.cmd 62 kB
.btf_relocate.o.cmd 73 kB
.built-in.a.cmd 938 B
.cfg.o.cmd 73 kB
.cgroup.o.cmd 75 kB
.cgroup_iter.o.cmd 63 kB
.check_btf.o.cmd 73 kB
.cnum.o.cmd 73 kB
.const_fold.o.cmd 73 kB
.core.o.cmd 76 kB
.cpumap.o.cmd 76 kB
.cpumask.o.cmd 62 kB
.crypto.o.cmd 73 kB
.devmap.o.cmd 74 kB
.diagnostics.o.cmd 73 kB
.disasm.o.cmd 62 kB
.dispatcher.o.cmd 73 kB
.dmabuf_iter.o.cmd 65 kB
.fixups.o.cmd 74 kB
.hashtab.o.cmd 73 kB
.helpers.o.cmd 74 kB
.inode.o.cmd 74 kB
.keys.o.cmd 62 kB
.kmem_cache_iter.o.cmd 62 kB
.link_iter.o.cmd 73 kB
.liveness.o.cmd 73 kB
.local_storage.o.cmd 74 kB
.log.o.cmd 73 kB
.loops.o.cmd 73 kB
.lpm_trie.o.cmd 74 kB
.map_in_map.o.cmd 62 kB
.map_iter.o.cmd 73 kB
.memalloc.o.cmd 62 kB
.modules.order.cmd 72 B
.mprog.o.cmd 62 kB
.net_namespace.o.cmd 73 kB
.offload.o.cmd 74 kB
.percpu_freelist.o.cmd 31 kB
.prog_iter.o.cmd 73 kB
.queue_stack_maps.o.cmd 62 kB
.range_tree.o.cmd 62 kB
.relo_core.o.cmd 73 kB
.reuseport_array.o.cmd 74 kB
.ringbuf.o.cmd 73 kB
.rqspinlock.o.cmd 62 kB
.scev.o.cmd 73 kB
.stackmap.o.cmd 74 kB
.states.o.cmd 73 kB
.stream.o.cmd 73 kB
.syscall.o.cmd 77 kB
.task_iter.o.cmd 73 kB
.tcx.o.cmd 72 kB
.tnum.o.cmd 13 kB
.token.o.cmd 63 kB
.trampoline.o.cmd 75 kB
.verifier.o.cmd 77 kB
Kconfig 3.8 kB
Makefile 3.3 kB
arena.c 37 kB
arena.o 150 kB
arraymap.c 42 kB
arraymap.o 161 kB
backtrack.c 35 kB
backtrack.o 125 kB
bloom_filter.c 5.9 kB
bloom_filter.o 23 kB
bpf_cgrp_storage.c 5.1 kB
bpf_cgrp_storage.o 30 kB
bpf_inode_storage.c 6.2 kB
bpf_inode_storage.o 37 kB
bpf_insn_array.c 7.6 kB
bpf_insn_array.o 26 kB
bpf_iter.c 20 kB
bpf_iter.o 81 kB
bpf_local_storage.c 27 kB
bpf_local_storage.o 136 kB
bpf_lru_list.c 19 kB
bpf_lru_list.h 2.3 kB
bpf_lru_list.o 109 kB
bpf_lsm.c 15 kB
bpf_lsm.o 153 kB
bpf_lsm_proto.c 1.1 kB
bpf_lsm_proto.o 2.2 kB
bpf_struct_ops.c 44 kB
bpf_struct_ops.o 136 kB
bpf_task_storage.c 6.5 kB
bpf_task_storage.o 33 kB
btf.c 293 kB
btf.o 921 kB
btf_iter.c 97 B
btf_iter.o 13 kB
btf_relocate.c 101 B
btf_relocate.o 42 kB
btf_vmlinux_inline.c 785 B
built-in.a 5.1 kB
cfg.c 30 kB
cfg.o 86 kB
cgroup.c 86 kB
cgroup.o 377 kB
cgroup_iter.c 11 kB
cgroup_iter.o 32 kB
check_btf.c 12 kB
check_btf.o 45 kB
cnum.c 5.1 kB
cnum.o 47 kB
cnum_defs.h 7.9 kB
const_fold.c 11 kB
const_fold.o 40 kB
core.c 101 kB
core.o 421 kB
cpumap.c 23 kB
cpumap.o 123 kB
cpumask.c 16 kB
cpumask.o 31 kB
crypto.c 11 kB
crypto.o 26 kB
devmap.c 32 kB
devmap.o 133 kB
diagnostics.c 67 kB
diagnostics.h 5.6 kB
diagnostics.o 220 kB
disasm.c 13 kB
disasm.h 1.1 kB
disasm.o 110 kB
dispatcher.c 4.4 kB
dispatcher.o 20 kB
dmabuf_iter.c 4.4 kB
dmabuf_iter.o 14 kB
fixups.c 95 kB
fixups.o 264 kB
hashtab.c 101 kB
hashtab.o 422 kB
helpers.c 153 kB
helpers.o 366 kB
inode.c 30 kB
inode.o 105 kB
keys.c 1.7 kB
keys.o 17 kB
kmem_cache_iter.c 5.7 kB
kmem_cache_iter.o 17 kB
link_iter.c 2.5 kB
link_iter.o 10 kB
liveness.c 83 kB
liveness.o 242 kB
local_storage.c 15 kB
local_storage.o 60 kB
log.c 26 kB
log.o 109 kB
loops.c 15 kB
loops.o 66 kB
lpm_trie.c 23 kB
lpm_trie.o 61 kB
map_in_map.c 4.4 kB
map_in_map.h 499 B
map_in_map.o 18 kB
map_iter.c 6.7 kB
map_iter.o 23 kB
memalloc.c 29 kB
memalloc.o 131 kB
mmap_unlock_work.h 1.9 kB
modules.order 0 B
mprog.c 12 kB
mprog.o 46 kB
net_namespace.c 13 kB
net_namespace.o 67 kB
offload.c 21 kB
offload.o 148 kB
percpu_freelist.c 3.6 kB
percpu_freelist.h 1.1 kB
percpu_freelist.o 37 kB
prog_iter.c 2.4 kB
prog_iter.o 10 kB
queue_stack_maps.c 7.2 kB
queue_stack_maps.o 38 kB
range_tree.c 7.3 kB
range_tree.h 667 B
range_tree.o 56 kB
relo_core.c 98 B
relo_core.o 116 kB
reuseport_array.c 8.8 kB
reuseport_array.o 34 kB
ringbuf.c 26 kB
ringbuf.o 57 kB
rqspinlock.c 23 kB
rqspinlock.h 1.4 kB
rqspinlock.o 66 kB
scev.c 81 kB
scev.o 288 kB
stackmap.c 32 kB
stackmap.o 83 kB
states.c 59 kB
states.o 132 kB
stream.c 15 kB
stream.o 65 kB
syscall.c 176 kB
syscall.o 584 kB
sysfs_btf.c 4.8 kB
task_iter.c 30 kB
task_iter.o 101 kB
tcx.c 8.1 kB
tcx.o 64 kB
tnum.c 8.2 kB
tnum.o 38 kB
token.c 6.9 kB
token.o 43 kB
trampoline.c 50 kB
trampoline.o 186 kB
verifier.c 745 kB
verifier.o 2.0 MB

Linux v7.4-rc3 - bpf

# SPDX-License-Identifier: GPL-2.0-only

# BPF interpreter that, for example, classic socket filters depend on.
config BPF
	bool
	select CRYPTO_LIB_SHA256

# Used by archs to tell that they support BPF JIT compiler plus which
# flavour. Only one of the two can be selected for a specific arch since
# eBPF JIT supersedes the cBPF JIT.

# Classic BPF JIT (cBPF)
config HAVE_CBPF_JIT
	bool

# Extended BPF JIT (eBPF)
config HAVE_EBPF_JIT
	bool

# KASAN support for JIT compiler
config HAVE_EBPF_JIT_KASAN
	bool

# Used by archs to tell that they want the BPF JIT compiler enabled by
# default for kernels that were compiled with BPF JIT support.
config ARCH_WANT_DEFAULT_BPF_JIT
	bool

menu "BPF subsystem"

config BPF_SYSCALL
	bool "Enable bpf() system call"
	select BPF
	select IRQ_WORK
	select NEED_TASKS_RCU
	select TASKS_TRACE_RCU
	select BINARY_PRINTF
	select NET_SOCK_MSG if NET
	select NET_XGRESS if NET
	select PAGE_POOL if NET
	default n
	help
	  Enable the bpf() system call that allows to manipulate BPF programs
	  and maps via file descriptors.

config BPF_JIT
	bool "Enable BPF Just In Time compiler"
	depends on BPF
	depends on HAVE_CBPF_JIT || HAVE_EBPF_JIT
	select EXECMEM
	help
	  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)

config BPF_JIT_ALWAYS_ON
	bool "Permanently enable BPF JIT and remove BPF interpreter"
	depends on BPF_SYSCALL && HAVE_EBPF_JIT && BPF_JIT
	help
	  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_JIT_DEFAULT_ON
	def_bool ARCH_WANT_DEFAULT_BPF_JIT || BPF_JIT_ALWAYS_ON
	depends on HAVE_EBPF_JIT && BPF_JIT

config BPF_UNPRIV_DEFAULT_OFF
	bool "Disable unprivileged BPF by default"
	default y
	depends on BPF_SYSCALL
	help
	  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.

config BPF_CRYPTO
	def_bool y
	depends on BPF_SYSCALL
	select CRYPTO_LIB_AES_CBC
	select CRYPTO_LIB_AES_ECB
	help
	  Provide the kfuncs needed for BPF programs to encrypt and decrypt
	  data. The supported algorithms are AES-CBC and AES-ECB.

source "kernel/bpf/preload/Kconfig"

config BPF_LSM
	bool "Enable BPF LSM Instrumentation"
	depends on BPF_EVENTS
	depends on BPF_SYSCALL
	depends on SECURITY
	depends on BPF_JIT
	help
	  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.

config BPF_JIT_KASAN
	bool
	depends on HAVE_EBPF_JIT_KASAN
	depends on KASAN_GENERIC
	depends on KASAN_VMALLOC
	depends on BPF_JIT
	default y
	help
	  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.

endmenu # "BPF subsystem"