mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 10:32:10 +00:00
The Rc to BackingMemory that is passed in to memory operations was being dropped before it is safe, The kernel can still access it until the op is completed, so keep the reference in the pending_ops map. Add tests so that this safety guarantees made by the executor are exercise in unit tests. Thanks to nkgold for finding the issue via code inspection. BUG=none TEST=cargo test dont_drop_backing_mem, cargo run with uring block and run fio tests. Change-Id: I8e4efedbbafefcbd57d7d7c340dc91a9b159b38c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2345377 Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Dylan Reid <dgreid@chromium.org> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |