|
|
Log in / Subscribe / Register

Rust and UB

Rust and UB

Posted Aug 15, 2024 0:10 UTC (Thu) by josh (subscriber, #17465)
In reply to: Rust and UB by pbonzini
Parent article: Standards for use of unsafe Rust in the kernel

> Consider any kind of synchronization primitive (such as futexes, or a ring buffer) that span kernel and userspace, you cannot for example ensure that the other side accesses data with something that resembles an atomic read/write. In theory that would be a data race and undefined behavior in the Rust code.

https://github.com/rust-lang/rust/pull/128778


to post comments


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds