Rust In Linux 6.12 Prepares For Rust Binder, Supports Sanitizers & CPU Mitigations
([Programming] 91 Minutes Ago
Linux 6.12 Rust)
- Reference: 0001493789
- News link: https://www.phoronix.com/news/Linux-6.12-Rust
- Source link:
Miguel Ojeda has submitted all of the Rust toolchain and infrastructure changes for the in-development [1]Linux 6.12 kernel.
Rust with Linux 6.12 brings [2]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.
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 [3]another Rust PHY driver merged and [4]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 [5]this pull request .
[1] https://www.phoronix.com/search/Linux+6.12
[2] https://www.phoronix.com/news/Rust-Linux-CPU-Mitigations
[3] https://www.phoronix.com/news/New-Rust-PHY-Driver-Linux-6.12
[4] https://www.phoronix.com/news/Linux-6.12-DRM-Panic-QR-Code
[5] https://lore.kernel.org/lkml/20240924221023.197610-1-ojeda@kernel.org/
Rust with Linux 6.12 brings [2]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.
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 [3]another Rust PHY driver merged and [4]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 [5]this pull request .
[1] https://www.phoronix.com/search/Linux+6.12
[2] https://www.phoronix.com/news/Rust-Linux-CPU-Mitigations
[3] https://www.phoronix.com/news/New-Rust-PHY-Driver-Linux-6.12
[4] https://www.phoronix.com/news/Linux-6.12-DRM-Panic-QR-Code
[5] https://lore.kernel.org/lkml/20240924221023.197610-1-ojeda@kernel.org/
Doomsdayrs