crosvm/third_party
Keiichi Watanabe 91019884bb sys_util: Replace unsafe use of iovecs
`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>
2021-11-26 14:28:28 +00:00
..
minigbm@ef852e007c Uprev all submodules 2021-10-19 19:12:53 +00:00
minijail@77383c711a third_party/minijail: update to latest ToT 2021-11-18 08:44:34 +00:00
virglrenderer@2a5fb800c6 Uprev all submodules 2021-10-19 19:12:53 +00:00
vmm_vhost sys_util: Replace unsafe use of iovecs 2021-11-26 14:28:28 +00:00