gvisor/pkg/sentry/syscalls
Jamie Liu 2dd6384de8 Fix cleanup around socketpair() failure to copy out FDs.
- Use the fs.File, rather than the vfs.FileDescription, in the VFS1 version.

- Check for a nil fs.File/vfs.FileDescription before calling DecRef, which is
  possible if a racing dup2() or dup3() replaces the file descriptor between
  when it is installed and when it is returned. (This is not possible in Linux
  because Linux separates allocation of a file descriptor from binding an
  allocated file descriptor to a struct file, and dup2/dup3 return EBUSY if
  asked to replace an allocated but unbound file descriptor.)

PiperOrigin-RevId: 306517101
2020-04-14 14:41:06 -07:00
..
linux Fix cleanup around socketpair() failure to copy out FDs. 2020-04-14 14:41:06 -07:00
BUILD Standardize on tools directory. 2020-01-27 12:21:00 -08:00
epoll.go Cleanup straggling syscall dependencies. 2019-07-09 16:18:02 -07:00
syscalls.go Cleanup straggling syscall dependencies. 2019-07-09 16:18:02 -07:00