News: 0001493789

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

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

([Programming] 91 Minutes Ago Linux 6.12 Rust)


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/



Doomsdayrs

At the heart of science is an essential tension between two seemingly
contradictory attitudes -- an openness to new ideas, no matter how bizarre
or counterintuitive they may be, and the most ruthless skeptical scrutiny
of all ideas, old and new. This is how deep truths are winnowed from deep
nonsense. Of course, scientists make mistakes in trying to understand the
world, but there is a built-in error-correcting mechanism: The collective
enterprise of creative thinking and skeptical thinking together keeps the
field on track.
-- Carl Sagan, "The Fine Art of Baloney Detection"