From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-171.mta1.migadu.com (out-171.mta1.migadu.com [95.215.58.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1E4FB2931E5 for ; Wed, 15 Jul 2026 22:32:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784154729; cv=none; b=dFjNX1R9/Kcv9HAK1ieljHpEXo0DlE1uJLCJuD7H3ujrro/FsoDIPwbfsnWBXydwGAXE1GLbYs13cb10b3KQM491SEBDQ1fVWXZwFG4EQqmio/b2zhTPe5GMuR/5Wvp8cSD+7+U3WBDcW1Jy6/kpOyzm05UfTCXyjJe2V+u7b1k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784154729; c=relaxed/simple; bh=OK6kCiVOPwe4XhGPzoCxh6vhbTXlmYoWjN89PBR38dQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=MWZ6uTBcNyIQ+W/y4cvKidvpffHYf1LQbcJV0n1ydnB+pZkbOwDrxvXOhI0rTeGi1Qxr7MBr0m4F5LXk91zXaly9ivY8bitBEUhQwjjQaLsqnPtpxQrnB8wjL9lEuKqKqeBkecoqcJ2sQ2SKsv6Iy6dPOuCTS3fq5zXr8sQF5/o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=NdfdyYG4; arc=none smtp.client-ip=95.215.58.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="NdfdyYG4" Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1784154705; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9eVU6j9QuYxrMLAsUIFDAt+VplE0mVZOYgpwaWM0kk0=; b=NdfdyYG4lL1P6HUeRmOZrJh6laG7y1wQ5yILXvw3gYV8hrMYcNInRpgv1ZbRpI6K36hZMO ln36Q7XgrHWfK95i4n3Gy11cZjCl6HBJIRzHqPHxky21KrNn9BdMONRy3i/Q/esCh6gg/E SHIl7bW5jyJNLIjZ5Wa5nrXH82tAtj4= Date: Wed, 15 Jul 2026 15:31:32 -0700 Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH bpf-next v5 07/10] bpf, x86: enable KASAN for JITed programs on x86 To: =?UTF-8?Q?Alexis_Lothor=C3=A9_=28eBPF_Foundation=29?= , Alexei Starovoitov , Daniel Borkmann , John Fastabend , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Kumar Kartikeya Dwivedi , Song Liu , Yonghong Song , Jiri Olsa , Thomas Gleixner , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Shuah Khan , Ingo Molnar , Andrey Konovalov Cc: ebpf@linuxfoundation.org, Bastien Curutchet , Thomas Petazzoni , bpf@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org References: <20260709-kasan-v5-0-1c64af8e4e1e@bootlin.com> <20260709-kasan-v5-7-1c64af8e4e1e@bootlin.com> Content-Language: en-US X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Ihor Solodrai In-Reply-To: <20260709-kasan-v5-7-1c64af8e4e1e@bootlin.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT 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) > --- > 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 > select HAVE_EFFICIENT_UNALIGNED_ACCESS > select HAVE_EISA if X86_32 > select HAVE_EXIT_THREAD >