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 Guy on the Right Doesn't Stand a Chance
The guy on the right has the Osborne 1, a fully functional computer system
in a portable package the size of a briefcase. The guy on the left has an
Uzi submachine gun concealed in his attache case. Also in the case are four
fully loaded, 32-round clips of 125-grain 9mm ammunition. The owner of the
Uzi is going to get more tactical firepower delivered -- and delivered on
target -- in less time, and with less effort. All for $795. It's inevitable.
If you're going up against some guy with an Osborne 1 -- or any personal
computer -- he's the one who's in trouble. One round from an Uzi can zip
through ten inches of solid pine wood, so you can imagine what it will do
to structural foam acrylic and sheet aluminum. In fact, detachable magazines
for the Uzi are available in 25-, 32-, and 40-round capacities, so you can
take out an entire office full of Apple II or IBM Personal Computers tied
into Ethernet or other local-area networks. What about the new 16-bit
computers, like the Lisa and Fortune? Even with the Winchester backup,
they're no match for the Uzi. One quick burst and they'll find out what
Unix means. Make your commanding officer proud. Get an Uzi -- and come home
a winner in the fight for office automatic weapons.
-- "InfoWorld", June, 1984