Rust In Linux 6.12 Prepares For Rust Binder, Supports Sanitizers & CPU Mitigations

Written by Michael Larabel in Programming on 25 September 2024 at 10:30 AM EDT. 14 Comments
PROGRAMMING
Miguel Ojeda has submitted all of the Rust toolchain and infrastructure changes for the in-development Linux 6.12 kernel.

Rust with Linux 6.12 brings support for handling of CPU security mitigations within the kernel. The Retpoline, Straight Line Speculation (SLS), and Rethunk mitigations are now handled within the Rust kernel code. The Rust code also now has support for the Kernel Address Sanitizer (KASAN), Kernel Control Flow Integrity (KCFI), and Shadow Call Sanitizers.

CPUs


The updated Rust infrastructure also adds RUSTC_VERSION support, splitting helper files into multiple files, relaxing restrictions on configurations with Rust and GCC plug-ins, and various updates to the Rust kernel crate.

The kernel crate adds new "list" doubly-linked linked list and "rbtree" red-black tree modules. Both of these new modules are in preparing for the upcoming Rust-based Binder implementation for the kernel. Plus there are various improvements to existing modules.

Outside of this Rust pull request, submitted via the networking subsystem is another Rust PHY driver merged and Rust-based QR code support for the DRM Panic messages.

More details on all of the interesting Rust changes for the Linux 6.12 kernel via this pull request.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week