From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) (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 65CF840E8DB for ; Wed, 1 Jul 2026 10:03:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.171.202.116 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782900230; cv=none; b=d4I8BgMO9XgmdqtZ+Ea1pFnGfmF0MWOZAknmaFmXEkCN0rpo9jB0jtYvTShEM8I2MvFSXdcfmm4Xyt5jv7aXPo5kLQ9IKyoVpz2nRKvlGNrBymcDyLnZqG9RdlO0c/6O1dEIducYs06J9OoAdabmiL/8hKP7B4JB20a/cSNz/VY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782900230; c=relaxed/simple; bh=vLnbofPmzM0UJ+7cLvOGt1OWQNfColilU7P6fmGcrE0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=DjMgw9EX5x2YguwDyd5eaQwOhRtOlG+UfbCYe+VBQPKAE6tNeDGZkYVV24UZsc8lO5LxBiKD7Q/bh4JEz2EEZAYq6GIDWfJ12fPB7BXMUMrN+AiuRrZE+SkUMNRT3a46VgHhTrJONUnQgRsaJy8Vvbxl3qKS0GtztjZcgRzlsbU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=MpnsTGS5; arc=none smtp.client-ip=185.171.202.116 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="MpnsTGS5" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id CBF58C79AB1; Wed, 1 Jul 2026 10:03:58 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id D43EA60288; Wed, 1 Jul 2026 10:03:47 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 4A9F1104C9DF8; Wed, 1 Jul 2026 12:03:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1782900226; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=gPhF6YNtK2Clk0Rg5nOKIYm+sr20SVQzQ8oU0s08pKg=; b=MpnsTGS58oOPi84Izk8tpm3BWQsBqjf0WNIHy1e+VU/TNvm9ngCb+/2KUyzcEfYv8LIhF3 Fy/V8erd7oaJ09A8Bru7649gN8A6pCBNho25vtxD1me0HruUZ2RbV/T30fSnB/sZkd/fgG 2j0NSqx1Mpig3+W3h/ZAu8iDSFTLaqJvOoQepNthpiC8pFBoLteXC3BHxKyLLxa2HtAuys mMpRx2KIg9wAQx72/MeSr0/rzAprIOlFmGXI7MzIpkZo3nkTolljysFJbFVF6cGZAEjY4R APLa2Z6GGV8b0mwZi3KO7ak/owySdhkVmOWn8Wep2+/3amst7YIZIfJ9AlmoiA== From: =?utf-8?q?Alexis_Lothor=C3=A9_=28eBPF_Foundation=29?= Date: Wed, 01 Jul 2026 12:02:55 +0200 Subject: [PATCH bpf-next v3 07/10] bpf, x86: enable KASAN for JITed programs on x86 Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20260701-kasan-v3-7-bd09bb942d86@bootlin.com> References: <20260701-kasan-v3-0-bd09bb942d86@bootlin.com> In-Reply-To: <20260701-kasan-v3-0-bd09bb942d86@bootlin.com> To: 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, =?utf-8?q?Alexis_Lothor=C3=A9_=28eBPF_Foundation=29?= X-Mailer: b4 0.15.2 X-Last-TLS-Session-Version: TLSv1.3 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 select HAVE_EFFICIENT_UNALIGNED_ACCESS select HAVE_EISA if X86_32 select HAVE_EXIT_THREAD -- 2.54.0