gvisor/pkg/sentry/syscalls/linux
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
..
vfs2 Fix cleanup around socketpair() failure to copy out FDs. 2020-04-14 14:41:06 -07:00
BUILD
error.go
flags.go
linux64.go
linux64_amd64.go
linux64_arm64.go
sigset.go
sys_aio.go
sys_capability.go
sys_clone_amd64.go
sys_clone_arm64.go
sys_epoll.go
sys_eventfd.go
sys_file.go
sys_futex.go
sys_getdents.go
sys_identity.go
sys_inotify.go
sys_lseek.go
sys_mempolicy.go
sys_mmap.go
sys_mount.go
sys_pipe.go
sys_poll.go
sys_prctl.go
sys_random.go
sys_read.go
sys_rlimit.go
sys_rseq.go
sys_rusage.go
sys_sched.go
sys_seccomp.go
sys_sem.go
sys_shm.go
sys_signal.go
sys_socket.go Fix cleanup around socketpair() failure to copy out FDs. 2020-04-14 14:41:06 -07:00
sys_splice.go
sys_stat.go
sys_stat_amd64.go
sys_stat_arm64.go
sys_sync.go
sys_sysinfo.go
sys_syslog.go
sys_thread.go
sys_time.go
sys_timer.go
sys_timerfd.go
sys_tls.go
sys_utsname.go
sys_write.go
sys_xattr.go
timespec.go