gvisor/pkg/sentry
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
..
arch Merge pull request #2168 from xiaobo55x:ptrace_test 2020-04-13 14:17:53 -07:00
contexttest Fix all copy locks violations. 2020-04-08 10:00:14 -07:00
control Use host-defined file owner and mode, when possible, for imported fds. 2020-03-26 16:47:20 -07:00
device Standardize on tools directory. 2020-01-27 12:21:00 -08:00
devices/memdev Add //pkg/sentry/devices/memdev. 2020-01-29 10:09:31 -08:00
fs Remove obsolete TODOs for b/38173783 2020-04-13 11:02:14 -07:00
fsbridge Correctly implement magic symlinks in VFS2 procfs. 2020-04-06 16:32:37 -07:00
fsimpl Port extended attributes to VFS2. 2020-04-10 19:02:55 -07:00
hostcpu Standardize on tools directory. 2020-01-27 12:21:00 -08:00
hostmm Update package locations. 2020-01-27 15:31:32 -08:00
inet Fix S/R on inet.Namespace. 2020-03-05 17:40:18 -08:00
kernel Merge pull request #2168 from xiaobo55x:ptrace_test 2020-04-13 14:17:53 -07:00
limits Update package locations. 2020-01-27 15:31:32 -08:00
loader Plumb VFS2 inside the Sentry 2020-02-14 11:12:47 -08:00
memmap Update package locations. 2020-01-27 15:31:32 -08:00
mm Remove TODOs from Async IO 2020-04-09 16:41:27 -07:00
pgalloc Update package locations. 2020-01-27 15:31:32 -08:00
platform Merge pull request #2321 from lubinszARM:pr_nogo 2020-04-13 13:41:45 -07:00
sighandling Fix "application exiting with {Code:0 Signo:27}" during boot. 2020-03-13 11:26:45 -07:00
socket Replace type assertion with TaskFromContext. 2020-04-09 18:00:33 -07:00
state Standardize on tools directory. 2020-01-27 12:21:00 -08:00
strace Remove TODO from kernel.Stracer 2020-04-10 11:19:12 -07:00
syscalls Fix cleanup around socketpair() failure to copy out FDs. 2020-04-14 14:41:06 -07:00
time Standardize on tools directory. 2020-01-27 12:21:00 -08:00
unimpl Update package locations. 2020-01-27 15:31:32 -08:00
uniqueid Update package locations. 2020-01-27 15:31:32 -08:00
usage Document MinimumTotalMemoryBytes. 2020-02-10 12:08:32 -08:00
vfs Pass O_LARGEFILE in syscalls/linux/vfs2.openat. 2020-04-14 13:37:51 -07:00
watchdog watchdog: print panic error message before other messages 2020-02-28 17:54:36 -08:00
BUILD Cleanup internal package group. 2020-02-10 17:12:59 -08:00