summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc/python_version.py
diff options
context:
space:
mode:
authorAlexis Lothoré (eBPF Foundation) <alexis.lothore@bootlin.com>2026-09-03 15:51:31 +0200
committerAlexei Starovoitov <ast@kernel.org>2026-09-04 09:54:18 -0700
commit90769ad233cac2ade07f8d2f91214e584842158d (patch)
tree7c3674af3c3f22888ab18465a1c8b2f775b81daa /tools/lib/python/kdoc/python_version.py
parentd02bfbc49c8ef978eac5f39a2de67281b8e00edb (diff)
downloadlinux-next-90769ad233cac2ade07f8d2f91214e584842158d.tar.gz
linux-next-90769ad233cac2ade07f8d2f91214e584842158d.zip
bpf: add BPF_JIT_KASAN for KASAN instrumentation of JITed programs
Add a new Kconfig option CONFIG_BPF_JIT_KASAN that automatically enables generic KASAN (Kernel Address SANitizer) memory access checks for JIT-compiled BPF programs as well, when both KASAN (and more specifically, generic KASAN with KASAN_VMALLOC) and JIT compiler are enabled. This new Kconfig is not a user selectable one: it is automatically enabled if KASAN is enabled on a compatible platform. When enabled, the JIT compiler will emit shadow memory checks before memory loads and stores to detect use-after-free or out-of-bounds accesses at runtime. The option is gated behind HAVE_EBPF_JIT_KASAN, as it needs proper arch-specific implementation. Acked-by: Andrey Konovalov <andreyknvl@gmail.com> Acked-by: Ihor Solodrai <ihor.solodrai@linux.dev> Signed-off-by: Alexis Lothoré (eBPF Foundation) <alexis.lothore@bootlin.com> Link: https://lore.kernel.org/r/20260903-kasan-v9-2-2407fe99255a@bootlin.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions