-
-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AsIoVecMut is unsound #12
Comments
This sounds very much like #1, I wonder if a solution to this would be for |
@stjepang and I were talking about this this afternoon, and he was also mentioning passing an owned buffer as well. A key part of io_uring is being able to chain multiple operations together that execute sequentially or in parallel on the same buffers though. I'd like to find a nice interface that either relies on an |
Perhaps you could require |
Well, not the trait itself, but the bound isn't enough to stop various read methods from violating aliasing rules. Example:
If you
mkfifo fifo
and run this, you'll see that once data is written into the fifo,immut
will observe a change indata
even though it's purported to be behind a shared reference.The text was updated successfully, but these errors were encountered: