WARNING: DATA RACE Write at 0x00c0011c2820 by goroutine 701: gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).SetSockOpt() pkg/tcpip/transport/tcp/endpoint.go:1489 +0x380 gvisor.dev/gvisor/pkg/sentry/socket/netstack.setSockOptTCP() pkg/sentry/socket/netstack/netstack.go:1735 +0x35d gvisor.dev/gvisor/pkg/sentry/socket/netstack.SetSockOpt() pkg/sentry/socket/netstack/netstack.go:1538 +0x30f gvisor.dev/gvisor/pkg/sentry/socket/netstack.(*SocketOperations).SetSockOpt() pkg/sentry/socket/netstack/netstack.go:1527 +0x69d gvisor.dev/gvisor/pkg/sentry/syscalls/linux.SetSockOpt() pkg/sentry/syscalls/linux/sys_socket.go:541 +0x303 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall() pkg/sentry/kernel/task_syscall.go:170 +0x455 DIAGNOSIS: I0228 04:28:21.863995 7470 main.go:296] *************************** I0228 04:28:21.864189 7470 main.go:297] 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-0] I0228 04:28:21.864421 7470 main.go:298] Version release-20200219.0-52-gabf7ebcd38e8 I0228 04:28:21.864534 7470 main.go:299] PID: 7470 I0228 04:28:21.864669 7470 main.go:300] UID: 0, GID: 0 I0228 04:28:21.864780 7470 main.go:301] Configuration: I0228 04:28:21.864909 7470 main.go:302] RootDir: /syzkaller/managers/ptrace-proxy-sandbox-race/workdir/gvisor_root I0228 04:28:21.865032 7470 main.go:303] Platform: ptrace I0228 04:28:21.865137 7470 main.go:304] FileAccess: shared, overlay: false I0228 04:28:21.865252 7470 main.go:305] Network: sandbox, logging: false I0228 04:28:21.865346 7470 main.go:306] Strace: false, max size: 1024, syscalls: [] I0228 04:28:21.865486 7470 main.go:307] *************************** W0228 04:28:21.865590 7470 main.go:312] Block the TERM signal. This is only safe in tests! D0228 04:28:21.866370 7470 container.go:158] Load container "/syzkaller/managers/ptrace-proxy-sandbox-race/workdir/gvisor_root" "ci-gvisor-ptrace-proxy-sandbox-race-0" D0228 04:28:21.875052 7470 container.go:591] Signal container "ci-gvisor-ptrace-proxy-sandbox-race-0": signal 0 D0228 04:28:21.875225 7470 sandbox.go:788] Signal sandbox "ci-gvisor-ptrace-proxy-sandbox-race-0" D0228 04:28:21.875355 7470 sandbox.go:318] Connecting to sandbox "ci-gvisor-ptrace-proxy-sandbox-race-0" D0228 04:28:21.875827 7470 urpc.go:534] urpc: successfully marshalled 117 bytes. I0228 04:28:22.160646 7470 debug.go:122] Found sandbox "ci-gvisor-ptrace-proxy-sandbox-race-0", PID: 50865 I0228 04:28:22.160821 7470 debug.go:131] Retrieving sandbox stacks D0228 04:28:22.160949 7470 sandbox.go:906] Stacks sandbox "ci-gvisor-ptrace-proxy-sandbox-race-0" D0228 04:28:22.161078 7470 sandbox.go:318] Connecting to sandbox "ci-gvisor-ptrace-proxy-sandbox-race-0" W0228 04:28:22.161246 7470 error.go:48] FATAL ERROR: retrieving stacks: connecting to control server at PID 50865: connection refused retrieving stacks: connecting to control server at PID 50865: connection refused W0228 04:28:22.161605 7470 main.go:329] 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-0"]: exit status 128 I0228 04:28:21.863995 7470 main.go:296] *************************** I0228 04:28:21.864189 7470 main.go:297] 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-0] I0228 04:28:21.864421 7470 main.go:298] Version release-20200219.0-52-gabf7ebcd38e8 I0228 04:28:21.864534 7470 main.go:299] PID: 7470 I0228 04:28:21.864669 7470 main.go:300] UID: 0, GID: 0 I0228 04:28:21.864780 7470 main.go:301] Configuration: I0228 04:28:21.864909 7470 main.go:302] RootDir: /syzkaller/managers/ptrace-proxy-sandbox-race/workdir/gvisor_root I0228 04:28:21.865032 7470 main.go:303] Platform: ptrace I0228 04:28:21.865137 7470 main.go:304] FileAccess: shared, overlay: false I0228 04:28:21.865252 7470 main.go:305] Network: sandbox, logging: false I0228 04:28:21.865346 7470 main.go:306] Strace: false, max size: 1024, syscalls: [] I0228 04:28:21.865486 7470 main.go:307] *************************** W0228 04:28:21.865590 7470 main.go:312] Block the TERM signal. This is only safe in tests! D0228 04:28:21.866370 7470 container.go:158] Load container "/syzkaller/managers/ptrace-proxy-sandbox-race/workdir/gvisor_root" "ci-gvisor-ptrace-proxy-sandbox-race-0" D0228 04:28:21.875052 7470 container.go:591] Signal container "ci-gvisor-ptrace-proxy-sandbox-race-0": signal 0 D0228 04:28:21.875225 7470 sandbox.go:788] Signal sandbox "ci-gvisor-ptrace-proxy-sandbox-race-0" D0228 04:28:21.875355 7470 sandbox.go:318] Connecting to sandbox "ci-gvisor-ptrace-proxy-sandbox-race-0" D0228 04:28:21.875827 7470 urpc.go:534] urpc: successfully marshalled 117 bytes. I0228 04:28:22.160646 7470 debug.go:122] Found sandbox "ci-gvisor-ptrace-proxy-sandbox-race-0", PID: 50865 I0228 04:28:22.160821 7470 debug.go:131] Retrieving sandbox stacks D0228 04:28:22.160949 7470 sandbox.go:906] Stacks sandbox "ci-gvisor-ptrace-proxy-sandbox-race-0" D0228 04:28:22.161078 7470 sandbox.go:318] Connecting to sandbox "ci-gvisor-ptrace-proxy-sandbox-race-0" W0228 04:28:22.161246 7470 error.go:48] FATAL ERROR: retrieving stacks: connecting to control server at PID 50865: connection refused retrieving stacks: connecting to control server at PID 50865: connection refused W0228 04:28:22.161605 7470 main.go:329] Failure to execute command, err: 1 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 +0x1aaf gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run() pkg/sentry/kernel/task_run.go:92 +0x308