Re: [PATCH v5 0/6] s390: Enable Rust support and add required arch glue

From: Heiko Carstens

Date: Mon Jun 08 2026 - 10:30:43 EST


On Mon, Jun 01, 2026 at 07:46:19PM +0200, Jan Polensky wrote:
> Rust support on s390 requires a small set of architecture-specific pieces
> before the generic Rust kernel infrastructure can be used.
>
> The series wires up s390 as a Rust-capable 64-bit architecture, adds the
> missing assembly interfaces needed by Rust for WARN/BUG reporting and for
> static branches, adjusts bindgen parameters to avoid repr layout conflicts
> caused by packed and aligned s390 structures, and fixes issues discovered
> during testing.

...

> Jan Polensky (6):
> s390/bug: Provide ARCH_WARN_ASM for Rust WARN/BUG support
> s390/jump_label: Implement ARCH_STATIC_BRANCH_JUMP_ASM and
> ARCH_STATIC_BRANCH_ASM macros
> rust/bindgen_parameters: Mark s390 types as opaque to prevent repr
> conflicts
> rust: helpers: Add memchr wrapper for string operations
> s390/cmpxchg: Fix KASAN stack-out-of-bounds in atomic helpers
> s390: Enable Rust support
>
> Documentation/rust/arch-support.rst | 1 +
> arch/s390/Kconfig | 1 +
> arch/s390/Makefile | 28 ++++++++++++++----------
> arch/s390/include/asm/bug.h | 12 +++++++++++
> arch/s390/include/asm/cmpxchg.h | 8 +++----
> arch/s390/include/asm/jump_label.h | 33 +++++++++++++++++------------
> rust/Makefile | 1 +
> rust/bindgen_parameters | 7 ++++++
> rust/helpers/helpers.c | 1 +
> rust/helpers/string.c | 8 +++++++
> scripts/generate_rust_target.rs | 2 ++
> scripts/min-tool-version.sh | 6 +++++-
> 12 files changed, 78 insertions(+), 30 deletions(-)
> create mode 100644 rust/helpers/string.c

Thanks a lot! For the whole series:
Acked-by: Heiko Carstens <hca@xxxxxxxxxxxxx>

I guess Alexander will pick this up and route this via s390.