Rust fixes for 7.3
Miguel Ojeda
maintainerHi Linus,
Please pull these fixes for Rust.
They have been in linux-next for at least 3 rounds (most for a week).
No conflicts expected.
Thanks!
Cheers,
Miguel
The following changes since commit d24f5cdbeff8b6a063fca92d0a1f94122a799b59:
Merge tag 'rust-7.3' of git://git.kernel.org/pub/scm/linux/kernel/git/ojeda/linux (2026-08-18 11:25:09 -0700)
are available in the Git repository at:
ssh://[email protected]/pub/scm/linux/kernel/git/ojeda/linux.git tags/rust-fixes-7.3
for you to fetch changes up to 1b0bab4a873f1034c27573cfc613394cff7e0a5b:
rust: kbuild: disambiguate zerocopy_derive for rusttest (2026-08-25 22:19:27 +0200)
----------------------------------------------------------------
Rust fixes for v7.3
Toolchain and infrastructure:
- Fix KCFI failures, such as in Rust doctests, by disabling function merging when CFI is enabled. Gary reported the LLVM bug to upstream and it is now fixed in their mainline.
- Fix 'objtool' fallthrough warnings under the experimental 'CONFIG_RUST_INLINE_HELPERS' by passing (for the combined Rust and helpers code) the LLVM options needed to preserve the unreachable traps that 'rustc' normally emits.
In addition, fix 'objtool' errors when LTO is enabled on top, by also filtering out the LTO flags (for the combined Rust and helpers code) so that the traps are kept in place.
- Fix 'objtool' warnings by adding one more 'noreturn' function.
- Fix 'make rusttest' target when the 'rustc-dev' component is installed and Rust >= 1.82.0, <= 1.87.0 is used.
'kernel' crate:
- 'num' module: fix soundness issue in the 'Bounded' conversion from 'bool' by restricting the conversions to unsigned 'Bounded'.
- 'jump_label' module: fix future 'make rusttest' target failures when 'ARCH=' is set to an arch different than the host's.
- 'list' module: fix incorrect 'pop_back()' comment.
----------------------------------------------------------------
FUJITA Tomonori (1):
rust: jump_label: skip arch-specific asm in testlib builds
Gary Guo (1):
rust: cfi: disable function merging if CFI is enabled
Miguel Ojeda (4):
objtool/rust: add one more noreturn Rust function
kbuild: rust: preserve unreachable traps with inline helpers
kbuild: rust: keep Rust objects out of Clang LTO with inline helpers
rust: kbuild: disambiguate zerocopy_derive for rusttest
Nikolai Grlica (1):
rust: kernel: list: fix incorrect pop_back example comment
Younes Akhouayri (1):
rust: num: restrict bool conversion to unsigned Bounded
Makefile | 13 ++++++++++++- rust/Makefile | 6 ++++-- rust/kernel/jump_label.rs | 12 ++++++++++++ rust/kernel/list.rs | 2 +- rust/kernel/num/bounded.rs | 30 +++++++++++++++++++++--------- scripts/Makefile.build | 3 ++- tools/objtool/check.c | 1 + 7 files changed, 53 insertions(+), 14 deletions(-)
The pull request you sent on Sun, 30 Aug 2026 11:38:34 +0200:
The pull request you sent on Sun, 30 Aug 2026 11:38:34 +0200:
Quoted 1 line
ssh://[email protected]/pub/scm/linux/kernel/git/ojeda/linux.git tags/rust-fixes-7.3
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/f59c074e76a6a9ea55818373decdf56c6fddca30
Thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/prtracker.html