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.
