Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 AEBF44D9905 for ; Thu, 9 Jul 2026 17:36:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783618612; cv=none; b=eiQOzpAqTAqQIlZs71xrdDU9/ycqQKszdGZBUVVuv4PGJhDvE24NVWdjAtNe40GOhFaWqwHpVNOT4lVdktX6eTW46+kKyXnW3sDvCOOjZ4FQ0LJXWgK7uw4j8VbLLdFrxrsN75gh5FxSLYA0F7rjq+NUNx+hgKkrMyGvIE5tZZM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783618612; c=relaxed/simple; bh=iuRsIfWADv0UwAteqcMid8DRNtDnVrryh4eQtOra86I=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=d6560gRrti8NCgVrftje9VhfX6x4wc9AH6KU+86N8s9lWwp3IXNhC2z+Lofak67B/xQtyppnNcnq2k6SYGNnqizxBQQLDgk80aP5lfv/GYVYM30WtB99bziZeCBijxoTyC6b5iQ+mzm1ADFi/dha/XroXGMXV1+Hm44Cd3tS+Fc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KUHG/UTL; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="KUHG/UTL" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C2D121F000E9; Thu, 9 Jul 2026 17:36:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1783618611; bh=xEsSSx7dfb0V1cNvxRvF0F/UTU+dVbYnH4vtUJUY53A=; h=Subject:To:Cc:From:Date; b=KUHG/UTLBtRj3qLTclmTrCOHPVY1HOqzl1wmRrezgmSWU717FwqxLP9ZVcYV2S3K/ I56V2gZ8YnuyYWDQqKsJmTBB/CGstUmGntNjxHcpwLSTBw21JpzVYPkUhVccxdIpc7 4pCrtRQnrj+XOyv8kimcoLzQoRMy1NHZHBw13y7M= Subject: FAILED: patch "[PATCH] rust: kasan: KASAN+RUST requires clang" failed to apply to 6.12-stable tree To: aliceryhl@google.com,gary@garyguo.net,ojeda@kernel.org Cc: From: Date: Thu, 09 Jul 2026 19:36:39 +0200 Message-ID: <2026070939-unworldly-mantra-5611@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.12-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.12.y git checkout FETCH_HEAD git cherry-pick -x 5b271543d0f08e9733d4732721e960e285f6448f # git commit -s git send-email --to '' --in-reply-to '2026070939-unworldly-mantra-5611@gregkh' --subject-prefix 'PATCH 6.12.y' 'HEAD^..' Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ From 5b271543d0f08e9733d4732721e960e285f6448f Mon Sep 17 00:00:00 2001 From: Alice Ryhl Date: Wed, 8 Apr 2026 08:32:16 +0000 Subject: [PATCH] rust: kasan: KASAN+RUST requires clang Kernel KASAN involves passing various llvm/gcc specific arguments to the C and Rust compiler. Since these arguments differ between llvm and gcc, it's not safe to mix an llvm-based rustc with a gcc build when kasan is enabled. Signed-off-by: Alice Ryhl Reviewed-by: Gary Guo Cc: stable@vger.kernel.org Fixes: e3117404b411 ("kbuild: rust: Enable KASAN support") Link: https://patch.msgid.link/20260408-kasan-rust-sw-tags-v3-1-e07964d14363@google.com Signed-off-by: Miguel Ojeda diff --git a/init/Kconfig b/init/Kconfig index 2937c4d308ae..826a7d768ca3 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -2198,6 +2198,7 @@ config RUST depends on !DEBUG_INFO_BTF || (PAHOLE_HAS_LANG_EXCLUDE && !LTO) depends on !CFI || HAVE_CFI_ICALL_NORMALIZE_INTEGERS_RUSTC select CFI_ICALL_NORMALIZE_INTEGERS if CFI + depends on !KASAN || CC_IS_CLANG depends on !KASAN_SW_TAGS help Enables Rust support in the kernel.