* [GIT PULL] Rust fixes for 7.4 (4th)
@ 2026-11-22 12:25 Miguel Ojeda
0 siblings, 0 replies; only message in thread
From: Miguel Ojeda @ 2026-11-22 12:25 UTC (permalink / raw)
To: Linus Torvalds
Cc: Miguel Ojeda, Boqun Feng, Gary Guo, Björn Roy Baron,
Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross,
Danilo Krummrich, Daniel Almeida, Tamir Duberstein,
Alexandre Courbot, Onur Özkan, rust-for-linux, linux-kernel
Hi Linus,
Please pull these fixes for Rust.
They have been in linux-next for two rounds or more.
No conflicts expected.
Thanks!
Cheers,
Miguel
The following changes since commit aebb7274476403040d582c61478df8f4a7bf9cd3:
Linux 7.4-rc3 (2026-11-15 14:30:11 -0800)
are available in the Git repository at:
https://git.kernel.org/pub/scm/linux/kernel/git/ojeda/linux.git tags/rust-fixes-7.4-4
for you to fetch changes up to 73bdf8773de4af2c2b7f49370191ae6d5aeddea5:
kbuild: rust: disable function merging unconditionally (2026-11-19 11:28:42 +0100)
----------------------------------------------------------------
Rust fixes for v7.4 (4th)
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.
----------------------------------------------------------------
Alice Ryhl (1):
kbuild: rust: disable function merging unconditionally
Marwan Mohamed Zein (1):
rust: iov: fix return lifetime of `copy_from_iter_raw()`
Miguel Ojeda (2):
objtool/rust: add more `noreturn` Rust functions for Rust 1.101.0
x86/rust: use `-Zindirect-branch-cs-prefix` for RETPOLINE builds
Peder Bergan (1):
rust: str: tie Formatter to its backing buffer
Makefile | 4 ++--
arch/x86/Makefile | 1 +
rust/Makefile | 2 +-
rust/kernel/iov.rs | 2 +-
rust/kernel/str.rs | 4 ++--
tools/objtool/check.c | 4 ++++
6 files changed, 11 insertions(+), 6 deletions(-)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-22 12:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-22 12:25 [GIT PULL] Rust fixes for 7.4 (4th) Miguel Ojeda
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox