Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 322068BE5 for ; Sun, 16 Mar 2025 07:17:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742109461; cv=none; b=O3dM578k5l50CqaEqdjn14BKx30ymdGmRpbk7j+0s9/IHPJQ1a116Z4dDFc3ill8dqXVsVNloG1v9OvDYH001iSRSyDBj724fI6vlNdhhzmbvbR3sdUQlzViJm1Kgtl2dRWphyYg/cLHISbzMYVMHdSCrGBEMKF/HJCyuHDJ5Lw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742109461; c=relaxed/simple; bh=S9oDOCQL//RM5aglpD1rt9j+AOunTmz/fbuciwIZfFY=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=rmdaWYNFb2TDBFTwqjwbrOfRL6c1mof/GqO6KP5aSKVnk0BWCS/sO2KJtDGd6eoiw4YQP3T7IW8Mmkq4Y27lIZs3Y9zvxShxeKRz2qXxKk6Aam8ricnQMfA8RYa/957oiftuYKbBPLlTfQYN4UHwYw2eGBBFDV9hl3uRWg725z8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ilAsHgCF; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="ilAsHgCF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4A6BEC4CEDD; Sun, 16 Mar 2025 07:17:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1742109460; bh=S9oDOCQL//RM5aglpD1rt9j+AOunTmz/fbuciwIZfFY=; h=Subject:To:Cc:From:Date:From; b=ilAsHgCFuT6ZqPk4pUghRHrc7f/0c/3P0ggSq+TsR6QR7RYKi/d9K6kM8Y1zLE7qz 0jJM5cSZmZ3JsE9c8+xpahcD4gDsdzVr4PzZG3Pm8+/Lws8yDqZJXW6QIFL02rdslB Psk6o48lEbfu/McuitlyBX+Wl2Q7yDXeEjjW3NZY= Subject: FAILED: patch "[PATCH] rust: Disallow BTF generation with Rust + LTO" failed to apply to 6.6-stable tree To: mmaurer@google.com,ojeda@kernel.org Cc: From: Date: Sun, 16 Mar 2025 08:16:22 +0100 Message-ID: <2025031621-july-parkway-796f@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.6-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.6.y git checkout FETCH_HEAD git cherry-pick -x 5daa0c35a1f0e7a6c3b8ba9cb721e7d1ace6e619 # git commit -s git send-email --to '' --in-reply-to '2025031621-july-parkway-796f@gregkh' --subject-prefix 'PATCH 6.6.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ From 5daa0c35a1f0e7a6c3b8ba9cb721e7d1ace6e619 Mon Sep 17 00:00:00 2001 From: Matthew Maurer Date: Wed, 8 Jan 2025 23:35:08 +0000 Subject: [PATCH] rust: Disallow BTF generation with Rust + LTO The kernel cannot currently self-parse BTF containing Rust debug information. pahole uses the language of the CU to determine whether to filter out debug information when generating the BTF. When LTO is enabled, Rust code can cross CU boundaries, resulting in Rust debug information in CUs labeled as C. This results in a system which cannot parse its own BTF. Signed-off-by: Matthew Maurer Cc: stable@vger.kernel.org Fixes: c1177979af9c ("btf, scripts: Exclude Rust CUs with pahole") Link: https://lore.kernel.org/r/20250108-rust-btf-lto-incompat-v1-1-60243ff6d820@google.com Signed-off-by: Miguel Ojeda diff --git a/init/Kconfig b/init/Kconfig index d0d021b3fa3b..324c2886b2ea 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -1973,7 +1973,7 @@ config RUST depends on !MODVERSIONS || GENDWARFKSYMS depends on !GCC_PLUGIN_RANDSTRUCT depends on !RANDSTRUCT - depends on !DEBUG_INFO_BTF || PAHOLE_HAS_LANG_EXCLUDE + depends on !DEBUG_INFO_BTF || (PAHOLE_HAS_LANG_EXCLUDE && !LTO) depends on !CFI_CLANG || HAVE_CFI_ICALL_NORMALIZE_INTEGERS_RUSTC select CFI_ICALL_NORMALIZE_INTEGERS if CFI_CLANG depends on !CALL_PADDING || RUSTC_VERSION >= 108100