[GIT PULL] Rust fixes for 7.1 (2nd)

From: Miguel Ojeda

Date: Sat Jun 06 2026 - 07:36:48 EST


Hi Linus,

Please pull these fixes for Rust.

They have all been in linux-next for a week or longer.

No conflicts expected.

Thanks!

Cheers,
Miguel

The following changes since commit 5d6919055dec134de3c40167a490f33c74c12581:

Linux 7.1-rc3 (2026-05-10 14:08:09 -0700)

are available in the Git repository at:

https://git.kernel.org/pub/scm/linux/kernel/git/ojeda/linux.git tags/rust-fixes-7.1-2

for you to fetch changes up to 905b06d32a52afe32fcf5f30cf298c9ea6359f11:

rust: x86: support Rust >= 1.98.0 target spec (2026-05-30 15:38:16 +0200)

----------------------------------------------------------------
Rust fixes for v7.1 (2nd)

Toolchain and infrastructure:

- Fix 'rustc-option' (the Makefile one) when cross-compiling that leads
to build or boot failures in certain configs.

- Work around a Rust compiler bug (already fixed for Rust 1.98.0) thats
lead to boot failures in certain configs due to missing 'uwtable'
LLVM module flags.

- Support a Rust compiler change (starting with Rust 1.98.0) in the
unstable target specification JSON files.

- Forbid Rust + arm + KASAN configs, which do not build.

'kernel' crate:

- Fix NOMMU build by adding a missing helper.

----------------------------------------------------------------
Alice Ryhl (2):
rust: kasan/kbuild: fix rustc-option when cross-compiling
rust: arm64: set uwtable llvm module flag for CONFIG_UNWIND_TABLES

Miguel Ojeda (1):
rust: x86: support Rust >= 1.98.0 target spec

Nathan Chancellor (1):
ARM: Do not select HAVE_RUST when KASAN is enabled

Shivam Kalra (1):
rust: helpers: add is_vmalloc_addr wrapper for NOMMU builds

Makefile | 3 ++-
arch/arm/Kconfig | 2 +-
arch/arm64/Makefile | 3 +++
arch/x86/Makefile | 4 ++++
arch/x86/Makefile.um | 8 ++++++++
rust/helpers/vmalloc.c | 6 ++++++
scripts/Makefile.compiler | 2 +-
scripts/generate_rust_target.rs | 8 ++++++--
8 files changed, 31 insertions(+), 5 deletions(-)