WARNING: DATA RACE Read at 0x00c0010da890 by goroutine 115: gvisor.dev/gvisor/pkg/sentry/fs/tty.(*queue).readableSize() pkg/sentry/fs/tty/queue.go:90 +0xac gvisor.dev/gvisor/pkg/sentry/fs/tty.(*slaveFileOperations).Ioctl() pkg/sentry/fs/tty/line_discipline.go:182 +0xf73 DIAGNOSIS: I0116 15:12:17.792139 14441 x:0] *************************** I0116 15:12:17.792204 14441 x:0] Args: [/syzkaller/managers/ptrace-direct-overlay-host-race/current/image -root /syzkaller/managers/ptrace-direct-overlay-host-race/workdir/gvisor_root -watchdog-action=panic -network=none -debug -alsologtostderr -platform=ptrace -file-access=exclusive -overlay -network=host -TESTONLY-unsafe-nonroot debug -stacks --ps ci-gvisor-ptrace-direct-overlay-host-race-2] I0116 15:12:17.792382 14441 x:0] Version release-20200115.0-4-ga7a1f00425c6 I0116 15:12:17.792439 14441 x:0] PID: 14441 I0116 15:12:17.792503 14441 x:0] UID: 0, GID: 0 I0116 15:12:17.792575 14441 x:0] Configuration: I0116 15:12:17.792626 14441 x:0] RootDir: /syzkaller/managers/ptrace-direct-overlay-host-race/workdir/gvisor_root I0116 15:12:17.792685 14441 x:0] Platform: ptrace I0116 15:12:17.792759 14441 x:0] FileAccess: exclusive, overlay: true I0116 15:12:17.792831 14441 x:0] Network: host, logging: false I0116 15:12:17.792909 14441 x:0] Strace: false, max size: 1024, syscalls: [] I0116 15:12:17.792990 14441 x:0] *************************** W0116 15:12:17.793041 14441 x:0] Block the TERM signal. This is only safe in tests! D0116 15:12:17.796622 14441 x:0] Load container "/syzkaller/managers/ptrace-direct-overlay-host-race/workdir/gvisor_root" "ci-gvisor-ptrace-direct-overlay-host-race-2" D0116 15:12:17.812174 14441 x:0] Signal container "ci-gvisor-ptrace-direct-overlay-host-race-2": signal 0 D0116 15:12:17.812272 14441 x:0] Signal sandbox "ci-gvisor-ptrace-direct-overlay-host-race-2" D0116 15:12:17.812335 14441 x:0] Connecting to sandbox "ci-gvisor-ptrace-direct-overlay-host-race-2" D0116 15:12:17.813717 14441 x:0] urpc: successfully marshalled 123 bytes. D0116 15:12:17.856358 14441 x:0] urpc: unmarshal success. I0116 15:12:17.857163 14441 x:0] Found sandbox "ci-gvisor-ptrace-direct-overlay-host-race-2", PID: 46519 I0116 15:12:17.857262 14441 x:0] Retrieving sandbox stacks D0116 15:12:17.857328 14441 x:0] Stacks sandbox "ci-gvisor-ptrace-direct-overlay-host-race-2" D0116 15:12:17.857390 14441 x:0] Connecting to sandbox "ci-gvisor-ptrace-direct-overlay-host-race-2" D0116 15:12:17.857926 14441 x:0] urpc: successfully marshalled 36 bytes. D0116 15:12:18.453427 14441 x:0] urpc: unmarshal success. I0116 15:12:18.454569 14441 x:0] *** Stack dump *** goroutine 518212 [running]: gvisor.dev/gvisor/pkg/log.Stacks(0x461301, 0xc000305140, 0xc0024f99e0, 0xc002299180) pkg/log/log.go:272 +0xb6 gvisor.dev/gvisor/runsc/boot.(*debug).Stacks(0x248f7a8, 0x248f7a8, 0xc001351250, 0x0, 0x0) runsc/boot/debug.go:26 +0x38 reflect.Value.call(0xc000305140, 0xc00032e1d0, 0x13, 0x127f4ea, 0x4, 0xc0023a3e78, 0x3, 0x3, 0x10e2101, 0xc001351250, ...) GOROOT/src/reflect/value.go:460 +0x62b reflect.Value.Call(0xc000305140, 0xc00032e1d0, 0x13, 0xc0023a3e78, 0x3, 0x3, 0x0, 0x248f7a8, 0x16) GOROOT/src/reflect/value.go:321 +0xd4 gvisor.dev/gvisor/pkg/urpc.(*Server).handleOne(0xc0002fcdb0, 0xc0035be780, 0x0, 0x0) pkg/urpc/urpc.go:325 +0x688 gvisor.dev/gvisor/pkg/urpc.(*Server).handleRegistered(0xc0002fcdb0, 0xc0035be780, 0xc000429040, 0xc0019ab8c0) pkg/urpc/urpc.go:420 +0x43 gvisor.dev/gvisor/pkg/urpc.(*Server).StartHandling.func1(0xc0002fcdb0, 0xc0035be780) pkg/urpc/urpc.go:440 +0x81 created by gvisor.dev/gvisor/pkg/urpc.(*Server).StartHandling pkg/urpc/urpc.go:438 +0x6f goroutine 1 [semacquire, 15 minutes]: sync.runtime_Semacquire(0xc000344124) GOROOT/src/runtime/sema.go:56 +0x42 sync.(*WaitGroup).Wait(0xc000344124) GOROOT/src/sync/waitgroup.go:130 +0xb1 gvisor.dev/gvisor/pkg/sentry/kernel.(*Kernel).WaitExited(...) pkg/sentry/kernel/kernel.go:1061 gvisor.dev/gvisor/runsc/boot.(*Loader).WaitExit(0xc000390000, 0x0, 0x0) runsc/boot/loader.go:894 +0x73 gvisor.dev/gvisor/runsc/cmd.(*Boot).Execute(0xc0001c82d0, 0x13f9f60, 0xc00013a000, 0xc00029c5a0, 0xc00024ade0, 0x2, 0x2, 0x0) runsc/cmd/boot.go:254 +0x149e github.com/google/subcommands.(*Commander).Execute(0xc000152000, 0x13f9f60, 0xc00013a000, 0xc00024ade0, 0x2, 0x2, 0x0) external/com_github_google_subcommands/subcommands.go:200 +0x51d github.com/google/subcommands.Execute(...) external/com_github_google_subcommands/subcommands.go:481 main.main() runsc/main.go:318 +0x2ce3