WARNING: DATA RACE Write at 0x00c0001f4750 by goroutine 370: gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).SetSockOpt() pkg/tcpip/transport/tcp/endpoint.go:1510 +0xda7 gvisor.dev/gvisor/pkg/sentry/socket/netstack.setSockOptIP() pkg/sentry/socket/netstack/netstack.go:1999 +0x3c4 gvisor.dev/gvisor/pkg/sentry/socket/netstack.SetSockOpt() pkg/sentry/socket/netstack/netstack.go:1544 +0x232 DIAGNOSIS: I0303 02:19:39.246835 7703 main.go:305] *************************** I0303 02:19:39.247051 7703 main.go:306] Args: [/syzkaller/managers/ptrace-proxy-sandbox-race/current/image -root /syzkaller/managers/ptrace-proxy-sandbox-race/workdir/gvisor_root -watchdog-action=panic -network=none -debug -alsologtostderr -platform=ptrace -file-access=shared -network=sandbox -TESTONLY-unsafe-nonroot debug -stacks --ps ci-gvisor-ptrace-proxy-sandbox-race-1] I0303 02:19:39.247284 7703 main.go:307] Version release-20200219.0-72-gce4d1e45bb88 I0303 02:19:39.247434 7703 main.go:308] PID: 7703 I0303 02:19:39.247539 7703 main.go:309] UID: 0, GID: 0 I0303 02:19:39.247641 7703 main.go:310] Configuration: I0303 02:19:39.247739 7703 main.go:311] RootDir: /syzkaller/managers/ptrace-proxy-sandbox-race/workdir/gvisor_root I0303 02:19:39.247893 7703 main.go:312] Platform: ptrace I0303 02:19:39.248149 7703 main.go:313] FileAccess: shared, overlay: false I0303 02:19:39.248338 7703 main.go:314] Network: sandbox, logging: false I0303 02:19:39.248500 7703 main.go:315] Strace: false, max size: 1024, syscalls: [] I0303 02:19:39.248646 7703 main.go:316] *************************** W0303 02:19:39.248753 7703 main.go:321] Block the TERM signal. This is only safe in tests! D0303 02:19:39.249007 7703 container.go:159] Load container "/syzkaller/managers/ptrace-proxy-sandbox-race/workdir/gvisor_root" "ci-gvisor-ptrace-proxy-sandbox-race-1" D0303 02:19:39.263431 7703 container.go:592] Signal container "ci-gvisor-ptrace-proxy-sandbox-race-1": signal 0 D0303 02:19:39.263664 7703 sandbox.go:806] Signal sandbox "ci-gvisor-ptrace-proxy-sandbox-race-1" D0303 02:19:39.263806 7703 sandbox.go:318] Connecting to sandbox "ci-gvisor-ptrace-proxy-sandbox-race-1" D0303 02:19:39.264430 7703 urpc.go:534] urpc: successfully marshalled 117 bytes. I0303 02:19:39.356128 7703 debug.go:122] Found sandbox "ci-gvisor-ptrace-proxy-sandbox-race-1", PID: 2043 I0303 02:19:39.356319 7703 debug.go:131] Retrieving sandbox stacks D0303 02:19:39.356499 7703 sandbox.go:924] Stacks sandbox "ci-gvisor-ptrace-proxy-sandbox-race-1" D0303 02:19:39.356684 7703 sandbox.go:318] Connecting to sandbox "ci-gvisor-ptrace-proxy-sandbox-race-1" W0303 02:19:39.356943 7703 error.go:48] FATAL ERROR: retrieving stacks: connecting to control server at PID 2043: connection refused retrieving stacks: connecting to control server at PID 2043: connection refused W0303 02:19:39.357387 7703 main.go:338] Failure to execute command, err: 1 Error collecting stacks: failed to run ["/syzkaller/managers/ptrace-proxy-sandbox-race/current/image" "-root" "/syzkaller/managers/ptrace-proxy-sandbox-race/workdir/gvisor_root" "-watchdog-action=panic" "-network=none" "-debug" "-alsologtostderr" "-platform=ptrace" "-file-access=shared" "-network=sandbox" "-TESTONLY-unsafe-nonroot" "debug" "-stacks" "--ps" "ci-gvisor-ptrace-proxy-sandbox-race-1"]: exit status 128 I0303 02:19:39.246835 7703 main.go:305] *************************** I0303 02:19:39.247051 7703 main.go:306] Args: [/syzkaller/managers/ptrace-proxy-sandbox-race/current/image -root /syzkaller/managers/ptrace-proxy-sandbox-race/workdir/gvisor_root -watchdog-action=panic -network=none -debug -alsologtostderr -platform=ptrace -file-access=shared -network=sandbox -TESTONLY-unsafe-nonroot debug -stacks --ps ci-gvisor-ptrace-proxy-sandbox-race-1] I0303 02:19:39.247284 7703 main.go:307] Version release-20200219.0-72-gce4d1e45bb88 I0303 02:19:39.247434 7703 main.go:308] PID: 7703 I0303 02:19:39.247539 7703 main.go:309] UID: 0, GID: 0 I0303 02:19:39.247641 7703 main.go:310] Configuration: I0303 02:19:39.247739 7703 main.go:311] RootDir: /syzkaller/managers/ptrace-proxy-sandbox-race/workdir/gvisor_root I0303 02:19:39.247893 7703 main.go:312] Platform: ptrace I0303 02:19:39.248149 7703 main.go:313] FileAccess: shared, overlay: false I0303 02:19:39.248338 7703 main.go:314] Network: sandbox, logging: false I0303 02:19:39.248500 7703 main.go:315] Strace: false, max size: 1024, syscalls: [] I0303 02:19:39.248646 7703 main.go:316] *************************** W0303 02:19:39.248753 7703 main.go:321] Block the TERM signal. This is only safe in tests! D0303 02:19:39.249007 7703 container.go:159] Load container "/syzkaller/managers/ptrace-proxy-sandbox-race/workdir/gvisor_root" "ci-gvisor-ptrace-proxy-sandbox-race-1" D0303 02:19:39.263431 7703 container.go:592] Signal container "ci-gvisor-ptrace-proxy-sandbox-race-1": signal 0 D0303 02:19:39.263664 7703 sandbox.go:806] Signal sandbox "ci-gvisor-ptrace-proxy-sandbox-race-1" D0303 02:19:39.263806 7703 sandbox.go:318] Connecting to sandbox "ci-gvisor-ptrace-proxy-sandbox-race-1" D0303 02:19:39.264430 7703 urpc.go:534] urpc: successfully marshalled 117 bytes. I0303 02:19:39.356128 7703 debug.go:122] Found sandbox "ci-gvisor-ptrace-proxy-sandbox-race-1", PID: 2043 I0303 02:19:39.356319 7703 debug.go:131] Retrieving sandbox stacks D0303 02:19:39.356499 7703 sandbox.go:924] Stacks sandbox "ci-gvisor-ptrace-proxy-sandbox-race-1" D0303 02:19:39.356684 7703 sandbox.go:318] Connecting to sandbox "ci-gvisor-ptrace-proxy-sandbox-race-1" W0303 02:19:39.356943 7703 error.go:48] FATAL ERROR: retrieving stacks: connecting to control server at PID 2043: connection refused retrieving stacks: connecting to control server at PID 2043: connection refused W0303 02:19:39.357387 7703 main.go:338] Failure to execute command, err: 1 gvisor.dev/gvisor/pkg/sentry/socket/netstack.(*SocketOperations).SetSockOpt() pkg/sentry/socket/netstack/netstack.go:1527 +0x6a0 gvisor.dev/gvisor/pkg/sentry/syscalls/linux.SetSockOpt() pkg/sentry/syscalls/linux/sys_socket.go:541 +0x2fd gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall() pkg/sentry/kernel/task_syscall.go:170 +0x44d gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke() pkg/sentry/kernel/task_syscall.go:291 +0xb4 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter() pkg/sentry/kernel/task_syscall.go:252 +0x109 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall() pkg/sentry/kernel/task_syscall.go:227 +0x1b3 gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute() pkg/sentry/kernel/task_run.go:232 +0x1aaa gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run() pkg/sentry/kernel/task_run.go:92 +0x320