Commit 2dc60bd9975f for kernel
commit 2dc60bd9975fc8666a13d58410499e06e6799ba9
Merge: 69712157c9f4 73bdf8773de4
Author: Linus Torvalds <torvalds@linux-foundation.org>
Date: Sun Nov 22 10:12:27 2026 -0800
Merge tag 'rust-fixes-7.4-4' of git://git.kernel.org/pub/scm/linux/kernel/git/ojeda/linux
Pull Rust fixes from Miguel Ojeda:
"Toolchain and infrastructure:
- Disable function merging in all cases to fix broken MODVERSIONS
information with gendwarfksyms, wrong backtraces and possibly
issues with pahole/BTF due to lost debug information.
- x86: emit the expected 'cs' prefix for RETPOLINE builds by passing
the '-Zindirect-branch-cs-prefix' flag we added to 'rustc', which
fixes boot failures (with 'spectre_v2=retpoline,lfence') and code
corruption (with paranoid FineIBT).
- Fix objtool warnings for the upcoming Rust 1.101.0 (expected
2026-12-24) by adding more 'noreturn' functions.
'kernel' crate:
- 'str' module: fix soundness issue in 'Formatter::new()' by tying
the returned formatter to the lifetime of its backing buffer.
- 'iov' module: fix soundness issue in 'copy_from_iter_raw()' by
tying the returned slice to the lifetime of the output buffer.
I suggested upstream Rust to introduce a lint for this case of the
lifetime elision rule, to avoid repeating this sort of mistake"
* tag 'rust-fixes-7.4-4' of git://git.kernel.org/pub/scm/linux/kernel/git/ojeda/linux:
kbuild: rust: disable function merging unconditionally
rust: str: tie Formatter to its backing buffer
rust: iov: fix return lifetime of `copy_from_iter_raw()`
x86/rust: use `-Zindirect-branch-cs-prefix` for RETPOLINE builds
objtool/rust: add more `noreturn` Rust functions for Rust 1.101.0