sst-linux/init
Matthew Maurer 52229ebbe0 rust: Disallow BTF generation with Rust + LTO
commit 5daa0c35a1f0e7a6c3b8ba9cb721e7d1ace6e619 upstream.

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 <mmaurer@google.com>
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 <ojeda@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-03-28 21:58:57 +01:00
..
.gitignore
build-version
calibrate.c
do_mounts_initrd.c
do_mounts_rd.c
do_mounts.c rootfs: Fix support for rootfstype= when root= is given 2024-01-25 15:27:43 -08:00
do_mounts.h
init_task.c
initramfs.c initramfs: avoid filename buffer overrun 2024-12-14 19:53:14 +01:00
Kconfig rust: Disallow BTF generation with Rust + LTO 2025-03-28 21:58:57 +01:00
main.c smp: Provide 'setup_max_cpus' definition on UP too 2024-06-16 13:41:42 +02:00
Makefile
noinitramfs.c
version-timestamp.c
version.c