rust-lang / miri

An interpreter for Rust's mid-level intermediate representation
Apache License 2.0
4.16k stars 318 forks source link

Support more ways of using mmap #3605

Open RalfJung opened 1 month ago

RalfJung commented 1 month ago

In a lengthy Zulip discussion, it was discovered that there are modes of use of mmap that are perfectly fine within the scope of Rust's memory model, but not supported by Miri's current implementation:

See here for some example code. Thanks to Nils for helping with the exploration here!