From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) (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 884DF3955D0 for ; Fri, 28 Aug 2026 09:21:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.85.4 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787908920; cv=none; b=bdI7Lu3pWDEz8LeQ7xUPRwJTSr3xYRv9+EZ+uG6UozTJHwtIhbAjxP9Qly/ecXrz2Pu5yC+vr97V9kQm2wur5H2jKjrgFaAZSR74iSey00bcGv5JIAY5yHeFK/D2Gv1bd6+k8lxKi+jPz0Fmjjbgy3CoYZudTqJxB+OLTTAG3N8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787908920; c=relaxed/simple; bh=CT/Gjo2eneEjO2Ue0I4TGs9z+iX8TPRLUGz0u+8Gko4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=srCE6CUnBTLqvY1Mk0bURUTVzt3eEznUWQxAppbyBd12ADpx9l1QhfJ/3kU7pUFaDmBL9Kl5DPW3HeyZZYoO2/qYGZZuqcVLv0tYprZUXS6Q0JhhcSE9l5trFM0qRTH0pJXIZyiXSF6DrgE0s3HH5hJVN+KnRkgpN73n0TDI8qs= 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=oPijqEY7; arc=none smtp.client-ip=185.246.85.4 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="oPijqEY7" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id 021764E413FE; Fri, 28 Aug 2026 09:21:58 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id C1D2160537; Fri, 28 Aug 2026 09:21:57 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id E19E111C780ED; Fri, 28 Aug 2026 11:21:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1787908912; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=0kQP0GmtHe4QERJ/pQao5qjnFU1LNd7sa5g7wyCFZaQ=; b=oPijqEY78j0NlYA+1xlUOVtcE3a4M/uJiPZ4h4CBhyfoHKUuVDok7hopdikldhoUKkKydI 0/KQxDOfMR+rQeGWOliSYDJw4CxuwBy64N6uMe60soW/mlOJALmrFju8MCP981qfgP1Pqu Ku3FXN1NhMu4Z1wmwOq+NdsrXkJhpRDpUA9reE6jb/+gOeVh4Eaq0jtlnjcldyDc8AHbD0 /+XvxZ/mc5Y3Y2JoGZ/MHvh8olN9yOfLVND9TjWqyA6osooJ7ua5qDguHBuL9koQ3Qs7gs uBivihPZYmZxX7ufqjJql8Wab4QakYYIffkdHfwDx1RBpa5qnwhCvnlDd4NxnA== From: =?utf-8?q?Alexis_Lothor=C3=A9_=28eBPF_Foundation=29?= Date: Fri, 28 Aug 2026 11:21:13 +0200 Subject: [PATCH bpf-next v8 5/8] bpf, x86: enable KASAN for JITed programs on x86 Precedence: bulk X-Mailing-List: linux-kselftest@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: <20260828-kasan-v8-5-7c1c0fdb9d7f@bootlin.com> References: <20260828-kasan-v8-0-7c1c0fdb9d7f@bootlin.com> In-Reply-To: <20260828-kasan-v8-0-7c1c0fdb9d7f@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 , Emil Tsalapatis , Ihor Solodrai , Yafang Shao 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. Acked-by: Ihor Solodrai 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 48ccc3e6059d..745890d91e99 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -234,6 +234,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.55.0