WARNING: DATA RACE Write at 0x00c000420bf8 by goroutine 420: gvisor.googlesource.com/gvisor/pkg/sentry/socket/netlink.(*Socket).SetSockOpt() pkg/sentry/socket/netlink/socket.go:338 +0x117 gvisor.googlesource.com/gvisor/pkg/sentry/syscalls/linux.SetSockOpt() pkg/sentry/syscalls/linux/sys_socket.go:521 +0x339 gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).executeSyscall() pkg/sentry/kernel/task_syscall.go:165 +0x178 gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke() pkg/sentry/kernel/task_syscall.go:283 +0xb4 gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter() pkg/sentry/kernel/task_syscall.go:244 +0x109 gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscall() pkg/sentry/kernel/task_syscall.go:219 +0x1b6 gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*runApp).execute() pkg/sentry/kernel/task_run.go:215 +0x1826 DIAGNOSIS: I0316 02:37:50.962677 2277 x:0] *************************** I0316 02:37:50.962835 2277 x:0] 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 -platform=ptrace -file-access=shared -network=sandbox debug -stacks ci-gvisor-ptrace-proxy-sandbox-race-2] I0316 02:37:50.962903 2277 x:0] Git Revision: 5496be7c5ddedd6ec03004143501acb225eda357 I0316 02:37:50.962999 2277 x:0] PID: 2277 I0316 02:37:50.963025 2277 x:0] UID: 0, GID: 0 I0316 02:37:50.963049 2277 x:0] Configuration: I0316 02:37:50.963077 2277 x:0] RootDir: /syzkaller/managers/ptrace-proxy-sandbox-race/workdir/gvisor_root I0316 02:37:50.963112 2277 x:0] Platform: ptrace I0316 02:37:50.963147 2277 x:0] FileAccess: shared, overlay: false I0316 02:37:50.963174 2277 x:0] Network: sandbox, logging: false I0316 02:37:50.963224 2277 x:0] Strace: false, max size: 1024, syscalls: [] I0316 02:37:50.963251 2277 x:0] *************************** D0316 02:37:50.963305 2277 x:0] Load container "/syzkaller/managers/ptrace-proxy-sandbox-race/workdir/gvisor_root" "ci-gvisor-ptrace-proxy-sandbox-race-2" D0316 02:37:50.971467 2277 x:0] Signal container "ci-gvisor-ptrace-proxy-sandbox-race-2": signal 0 D0316 02:37:50.971631 2277 x:0] Signal sandbox "ci-gvisor-ptrace-proxy-sandbox-race-2" D0316 02:37:50.971685 2277 x:0] Connecting to sandbox "ci-gvisor-ptrace-proxy-sandbox-race-2" D0316 02:37:50.973743 2277 x:0] urpc: successfully marshalled 117 bytes. D0316 02:37:50.976855 2277 x:0] urpc: unmarshal success. I0316 02:37:50.976979 2277 x:0] Found sandbox "ci-gvisor-ptrace-proxy-sandbox-race-2", PID: 899 I0316 02:37:50.977037 2277 x:0] Retrieving sandbox stacks D0316 02:37:50.977067 2277 x:0] Stacks sandbox "ci-gvisor-ptrace-proxy-sandbox-race-2" D0316 02:37:50.977105 2277 x:0] Connecting to sandbox "ci-gvisor-ptrace-proxy-sandbox-race-2" D0316 02:37:50.977226 2277 x:0] urpc: successfully marshalled 36 bytes. D0316 02:37:51.164898 2277 x:0] urpc: unmarshal success. I0316 02:37:51.165137 2277 x:0] *** Stack dump *** goroutine 1576 [running]: gvisor.googlesource.com/gvisor/pkg/log.Stacks(0x45c001, 0xc000307080, 0xc0009e0330, 0xc000940380) pkg/log/log.go:259 +0xb6 gvisor.googlesource.com/gvisor/runsc/boot.(*debug).Stacks(0x2381a78, 0x2381a78, 0xc00068a070, 0x0, 0x0) runsc/boot/debug.go:26 +0x38 reflect.Value.call(0xc000307080, 0xc00032c1c0, 0x13, 0x10f5ac8, 0x4, 0xc00066deb8, 0x3, 0x3, 0x4a765e, 0xfab940, ...) GOROOT/src/reflect/value.go:447 +0x63f reflect.Value.Call(0xc000307080, 0xc00032c1c0, 0x13, 0xc00066deb8, 0x3, 0x3, 0x0, 0x2381a78, 0x16) GOROOT/src/reflect/value.go:308 +0xc1 gvisor.googlesource.com/gvisor/pkg/urpc.(*Server).handleOne(0xc00032a090, 0xc0002931d0, 0x0, 0x0) pkg/urpc/urpc.go:325 +0x63f gvisor.googlesource.com/gvisor/pkg/urpc.(*Server).handleRegistered(0xc00032a090, 0xc0002931d0, 0xc00032a090, 0xc0002931d0) pkg/urpc/urpc.go:420 +0x43 gvisor.googlesource.com/gvisor/pkg/urpc.(*Server).StartHandling.func1(0xc00032a090, 0xc0002931d0) pkg/urpc/urpc.go:440 +0x77 created by gvisor.googlesource.com/gvisor/pkg/urpc.(*Server).StartHandling pkg/urpc/urpc.go:438 +0x6f goroutine 1 [semacquire]: sync.runtime_Semacquire(0xc00014d164) GOROOT/src/runtime/sema.go:56 +0x39 sync.(*WaitGroup).Wait(0xc00014d164) GOROOT/src/sync/waitgroup.go:130 +0xb2 gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Kernel).WaitExited(...) pkg/sentry/kernel/kernel.go:809 gvisor.googlesource.com/gvisor/runsc/boot.(*Loader).WaitExit(0xc00026a8c0, 0x0, 0x0) runsc/boot/loader.go:781 +0x74 gvisor.googlesource.com/gvisor/runsc/cmd.(*Boot).Execute(0xc000272120, 0x127d460, 0xc00013c010, 0xc000142a80, 0xc0001c30a0, 0x2, 0x2, 0x0) runsc/cmd/boot.go:236 +0x1191 github.com/google/subcommands.(*Commander).Execute(0xc000148000, 0x127d460, 0xc00013c010, 0xc0001c30a0, 0x2, 0x2, 0x203000) external/com_github_google_subcommands/subcommands.go:141 +0x522 github.com/google/subcommands.Execute(...) external/com_github_google_subcommands/subcommands.go:371 main.main() runsc/main.go:229 +0x246f