News: 0001480973

  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 Linux Kernel Code Prepares For CPU Mitigations Handling

([Programming] 4 Hours Ago Rust CPU Mitigations)


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.

See [1]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.



[1] https://lore.kernel.org/rust-for-linux/20240724161501.1319115-1-ojeda@kernel.org/



phoronix

The departing division general manager met a last time with his young
successor and gave him three envelopes. "My predecessor did this for me,
and I'll pass the tradition along to you," he said. "At the first sign
of trouble, open the first envelope. Any further difficulties, open the
second envelope. Then, if problems continue, open the third envelope.
Good luck." The new manager returned to his office and tossed the envelopes
into a drawer.
Six months later, costs soared and earnings plummeted. Shaken, the
young man opened the first envelope, which said, "Blame it all on me."
The next day, he held a press conference and did just that. The
crisis passed.
Six months later, sales dropped precipitously. The beleaguered
manager opened the second envelope. It said, "Reorganize."
He held another press conference, announcing that the division
would be restructured. The crisis passed.
A year later, everything went wrong at once and the manager was
blamed for all of it. The harried executive closed his office door, sank
into his chair, and opened the third envelope.
"Prepare three envelopes..." it said.