summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/mm/aio_context.go
diff options
context:
space:
mode:
authorAyush Ranjan <ayushranjan@google.com>2020-12-15 13:46:38 -0800
committergVisor bot <gvisor-bot@google.com>2020-12-15 13:48:33 -0800
commitcc28d36845cd3b2267ececbdf81b2c265267cdec (patch)
tree3ef541bb957a2e539bf3474b15144e18d3af8a45 /pkg/sentry/mm/aio_context.go
parente60514493892a17a8ce7b3d98747164926600614 (diff)
[netstack] Make recvmsg(2) call to host in hostinet even if dst is empty.
We want to make the recvmsg syscall to the host regardless of if the dst is empty or not so that: - Host can populate the control messages if necessary. - Host can return sender address. - Host can return appropriate errors. Earlier because we were using the IOSequence.CopyOutFrom() API, the usermem package does not even call the Reader function if the destination is empty (as an optimization). PiperOrigin-RevId: 347684566
Diffstat (limited to 'pkg/sentry/mm/aio_context.go')
0 files changed, 0 insertions, 0 deletions