mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 10:32:10 +00:00
91019884bb
`sys_util::recv_iovecs_with_fds` was implemented as a safe function, but it was actually unsafe because it assumed that the caller would give a slice of `libc::iovec` where each `iov_base` points a valid memory region with `iov_len`. To make the function truly safe, it should take a slice of IoSliceMut instead. BUG=none TEST=cargo test in sys_util/vmm_vhost TEST=vhost-user block still works Change-Id: I45458ee4545af13ce7e0955fb67b3703b147e7df Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3288733 Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Keiichi Watanabe <keiichiw@chromium.org> Reviewed-by: Chirantan Ekbote <chirantan@chromium.org> |
||
---|---|---|
.. | ||
minigbm@ef852e007c | ||
minijail@77383c711a | ||
virglrenderer@2a5fb800c6 | ||
vmm_vhost |