Re: [PATCH bpf-next v5 07/10] bpf, x86: enable KASAN for JITed programs on x86
From: Ihor Solodrai
Date: Wed Jul 15 2026 - 18:33:40 EST
On 7/9/26 3:01 AM, Alexis Lothoré (eBPF Foundation) wrote:
> Mark x86 as supporting KASAN checks in JITed programs so that the
> corresponding JIT compiler inserts checks on the translated
> instructions.
>
> Signed-off-by: Alexis Lothoré (eBPF Foundation) <alexis.lothore@xxxxxxxxxxx>
> ---
> arch/x86/Kconfig | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
> index bdad90f210e4..705a9ab85f3a 100644
> --- a/arch/x86/Kconfig
> +++ b/arch/x86/Kconfig
> @@ -233,6 +233,7 @@ config X86
> select HAVE_SAMPLE_FTRACE_DIRECT if X86_64
> select HAVE_SAMPLE_FTRACE_DIRECT_MULTI if X86_64
> select HAVE_EBPF_JIT
> + select HAVE_EBPF_JIT_KASAN if X86_64
Acked-by: Ihor Solodrai <ihor.solodrai@xxxxxxxxx>
> select HAVE_EFFICIENT_UNALIGNED_ACCESS
> select HAVE_EISA if X86_32
> select HAVE_EXIT_THREAD
>