WARNING: DATA RACE Read at 0x00c42037e698 by goroutine 42: gvisor.googlesource.com/gvisor/pkg/waiter.(*Entry).Next() bazel-out/k8-fastbuild/bin/pkg/ilist/interface_list.go:150 +0x4c gvisor.googlesource.com/gvisor/pkg/ilist.(*List).Remove() bazel-out/k8-fastbuild/bin/pkg/ilist/interface_list.go:125 +0x6a gvisor.googlesource.com/gvisor/pkg/waiter.(*Queue).EventUnregister() pkg/waiter/waiter.go:177 +0x67 gvisor.googlesource.com/gvisor/pkg/sentry/fs/tty.(*slaveFileOperations).EventUnregister() pkg/sentry/fs/tty/slave.go:114 +0x96 gvisor.googlesource.com/gvisor/pkg/sentry/fs.(*File).EventUnregister() pkg/sentry/fs/file.go:180 +0x60 gvisor.googlesource.com/gvisor/pkg/sentry/kernel/epoll.(*EventPoll).Release() pkg/sentry/kernel/epoll/epoll.go:166 +0x14f gvisor.googlesource.com/gvisor/pkg/sentry/fs.(*File).DecRef.func1() pkg/sentry/fs/file.go:123 +0xe1 gvisor.googlesource.com/gvisor/pkg/refs.(*AtomicRefCount).DecRefWithDestructor() pkg/refs/refcounter.go:293 +0x197 gvisor.googlesource.com/gvisor/pkg/sentry/fs.(*File).DecRef() pkg/sentry/fs/file.go:117 +0x79 gvisor.googlesource.com/gvisor/pkg/sentry/syscalls/linux.Close() pkg/sentry/syscalls/linux/sys_file.go:690 +0x17d gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).executeSyscall() pkg/sentry/kernel/task_syscall.go:162 +0x14e gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke() pkg/sentry/kernel/task_syscall.go:278 +0x7d gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter() pkg/sentry/kernel/task_syscall.go:241 +0xc3 gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscall() pkg/sentry/kernel/task_syscall.go:216 +0x19c gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*runApp).execute() pkg/sentry/kernel/task_run.go:217 +0x1501 gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).run() pkg/sentry/kernel/task_run.go:95 +0x264 Previous write at 0x00c42037e698 by goroutine 9: gvisor.googlesource.com/gvisor/pkg/waiter.(*Entry).SetNext() bazel-out/k8-fastbuild/bin/pkg/ilist/interface_list.go:160 +0x50 gvisor.googlesource.com/gvisor/pkg/ilist.(*List).PushBack() bazel-out/k8-fastbuild/bin/pkg/ilist/interface_list.go:70 +0xee gvisor.googlesource.com/gvisor/pkg/waiter.(*Queue).EventRegister() pkg/waiter/waiter.go:170 +0x86 gvisor.googlesource.com/gvisor/pkg/sentry/fs/tty.(*slaveFileOperations).EventRegister() pkg/sentry/fs/tty/slave.go:109 +0x10f gvisor.googlesource.com/gvisor/pkg/sentry/fs.(*File).EventRegister() pkg/sentry/fs/file.go:175 +0x6a gvisor.googlesource.com/gvisor/pkg/sentry/kernel/epoll.(*EventPoll).initEntryReadiness() pkg/sentry/kernel/epoll/epoll.go:309 +0x11f gvisor.googlesource.com/gvisor/pkg/sentry/kernel/epoll.(*EventPoll).UpdateEntry() pkg/sentry/kernel/epoll/epoll.go:424 +0x20d gvisor.googlesource.com/gvisor/pkg/sentry/syscalls.UpdateEpoll() pkg/sentry/syscalls/epoll.go:93 +0x162 gvisor.googlesource.com/gvisor/pkg/sentry/syscalls/linux.EpollCtl() pkg/sentry/syscalls/linux/sys_epoll.go:106 +0xc0 gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).executeSyscall() pkg/sentry/kernel/task_syscall.go:162 +0x14e gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke() pkg/sentry/kernel/task_syscall.go:278 +0x7d gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter() pkg/sentry/kernel/task_syscall.go:241 +0xc3 gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscall() pkg/sentry/kernel/task_syscall.go:216 +0x19c gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*runApp).execute() pkg/sentry/kernel/task_run.go:217 +0x1501 gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).run() pkg/sentry/kernel/task_run.go:95 +0x264