diff options
author | Ayush Ranjan <ayushranjan@google.com> | 2020-12-15 13:46:38 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-12-15 13:48:33 -0800 |
commit | cc28d36845cd3b2267ececbdf81b2c265267cdec (patch) | |
tree | 3ef541bb957a2e539bf3474b15144e18d3af8a45 /pkg/sentry/fsimpl/gofer/filesystem.go | |
parent | e60514493892a17a8ce7b3d98747164926600614 (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/fsimpl/gofer/filesystem.go')
0 files changed, 0 insertions, 0 deletions