-
Notifications
You must be signed in to change notification settings - Fork 391
Closed
Labels
A-weak-memoryArea: emulation of weak memory effects (store buffers)Area: emulation of weak memory effects (store buffers)C-bugCategory: This is a bug.Category: This is a bug.I-false-UBImpact: makes Miri falsely report UB, i.e., a false positive (with default settings)Impact: makes Miri falsely report UB, i.e., a false positive (with default settings)
Description
Our weak memory emulation does not respect the C++20 SCfix, so we could sometimes produce values that are not actually possible on the real machine. This can lead to false UB reports when SeqCst fences are used.
Unfortunately, no literature exists at the time of writing which proposes an implementable and C++20-compatible relaxed memory model that supports all atomic operation existing in Rust.
Metadata
Metadata
Assignees
Labels
A-weak-memoryArea: emulation of weak memory effects (store buffers)Area: emulation of weak memory effects (store buffers)C-bugCategory: This is a bug.Category: This is a bug.I-false-UBImpact: makes Miri falsely report UB, i.e., a false positive (with default settings)Impact: makes Miri falsely report UB, i.e., a false positive (with default settings)