VOOZH about

URL: https://www.phoronix.com/news/Rust-Linux-CPU-Mitigations

⇱ Rust Linux Kernel Code Prepares For CPU Mitigations Handling - Phoronix


👁 Phoronix

Rust Linux Kernel Code Prepares For CPU Mitigations Handling

Written by Michael Larabel in Programming on 24 July 2024 at 01:43 PM EDT. 8 Comments
The latest Rust for the Linux kernel work led by Miguel Ojeda is on preparing the Rust kernel code for various CPU security mitigations.

Miguel today sent out the latest patches on implementing various CPU security mitigations within the Rust kernel code and as part of that enabling objtool support for Rust.

The focus is on passing the relevant compiler flags for building the Rust code in light of Retpolines, Rethunk, and Straight Line Speculation (SLS) handling by the compiler. With these patches the appropriate flags will be passed down to the Rust compiler for adequate protections in the security mitigations requiring compiler-side actions.

👁 Rust Linux mitigation patches


See this patch series for those interested in this CPU mitigations handling for the Rust Linux kernel code. Miguel is hoping to get these patches applied soon as to avoid objtool warnings currently when building the kernel's Rust code.

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.