News: 0001577287

  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)

Linux 6.18 To Allow Rust And C Code To Use The Same Memory Model

([Linux Kernel] 21 Minutes Ago Rust Atomic Updates)


The latest tranche of Rust code ready to go for the upcoming [1]Linux 6.18 kernel is now ready to go and has been queued into a TIP branch ahead of the merge window.

The latest work on Rust atomic changes for the Linux kernel have been queued into tip/tip.git's "locking/core" branch and now putting it on trajectory for landing in the Linux 6.18 merge window in two weeks.

The Rust atomic changes for this next kernel version include support for the generic Linux Kernel Memory Model (LKMM) atomic variables within Rust. [2]The patch series explains that this ensures the Rust and C sides are using the same memory model when communicating with each other. In turn it also unblocks a few more fine-grained concurrent code in Rust.

The patch series also adds a wrapper to the kernel's "refcount_t" in Rust to avoid needing customized reference counting code in Rust.

The patches for now are in the [3]locking/core branch and barring any objections from Linus Torvalds should in turn appear in Linux 6.18.



[1] https://www.phoronix.com/search/Linux+6.18

[2] https://lore.kernel.org/all/20250905044141.77868-2-boqun.feng@gmail.com/T/#mc132dce38b0eaab68569c675a486b00c5a9586a3

[3] https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/log/?h=locking/core



phoronix

The first duty of a revolutionary is to get away with it.
-- Abbie Hoffman