WARNING: DATA RACE Write at 0x00c00085f248 by goroutine 716: sync/atomic.CompareAndSwapInt32() bazel-out/k8-fastbuild/bin/external/io_bazel_rules_go/linux_amd64_static_race_stripped/stdlib%/src/runtime/race_amd64.s:293 +0xb sync.(*Mutex).Lock() GOROOT/src/sync/mutex.go:74 +0x4d gvisor.googlesource.com/gvisor/pkg/sentry/kernel/shm.(*Shm).RemoveMapping() pkg/sentry/kernel/shm/shm.go:421 +0x47 gvisor.googlesource.com/gvisor/pkg/sentry/mm.(*MemoryManager).removeVMAsLocked() pkg/sentry/mm/vma.go:371 +0x51a gvisor.googlesource.com/gvisor/pkg/sentry/mm.(*MemoryManager).unmapLocked() pkg/sentry/mm/vma.go:346 +0x8b DIAGNOSIS: I0314 15:10:00.212455 31394 x:0] *************************** I0314 15:10:00.212648 31394 x:0] Args: [/syzkaller/managers/kvm-direct-overlay-host-race/current/image -root /syzkaller/managers/kvm-direct-overlay-host-race/workdir/gvisor_root -watchdog-action=panic -network=none -debug -platform=ptrace -file-access=exclusive -overlay -network=host debug -stacks ci-gvisor-kvm-direct-overlay-host-race-0] I0314 15:10:00.212727 31394 x:0] Git Revision: 2512cc561778b096459182b531eae4e0797e4ec5 I0314 15:10:00.212758 31394 x:0] PID: 31394 I0314 15:10:00.212787 31394 x:0] UID: 0, GID: 0 I0314 15:10:00.212902 31394 x:0] Configuration: I0314 15:10:00.212944 31394 x:0] RootDir: /syzkaller/managers/kvm-direct-overlay-host-race/workdir/gvisor_root I0314 15:10:00.213008 31394 x:0] Platform: ptrace I0314 15:10:00.213074 31394 x:0] FileAccess: exclusive, overlay: true I0314 15:10:00.213117 31394 x:0] Network: host, logging: false I0314 15:10:00.213165 31394 x:0] Strace: false, max size: 1024, syscalls: [] I0314 15:10:00.213205 31394 x:0] *************************** D0314 15:10:00.213287 31394 x:0] Load container "/syzkaller/managers/kvm-direct-overlay-host-race/workdir/gvisor_root" "ci-gvisor-kvm-direct-overlay-host-race-0" D0314 15:10:00.224194 31394 x:0] Signal container "ci-gvisor-kvm-direct-overlay-host-race-0": signal 0 D0314 15:10:00.224437 31394 x:0] Signal sandbox "ci-gvisor-kvm-direct-overlay-host-race-0" D0314 15:10:00.224630 31394 x:0] Connecting to sandbox "ci-gvisor-kvm-direct-overlay-host-race-0" D0314 15:10:00.225630 31394 x:0] urpc: successfully marshalled 120 bytes. D0314 15:10:00.227728 31394 x:0] urpc: unmarshal success. I0314 15:10:00.227983 31394 x:0] Found sandbox "ci-gvisor-kvm-direct-overlay-host-race-0", PID: 1123 I0314 15:10:00.228051 31394 x:0] Retrieving sandbox stacks D0314 15:10:00.228074 31394 x:0] Stacks sandbox "ci-gvisor-kvm-direct-overlay-host-race-0" D0314 15:10:00.228173 31394 x:0] Connecting to sandbox "ci-gvisor-kvm-direct-overlay-host-race-0" D0314 15:10:00.228614 31394 x:0] urpc: successfully marshalled 36 bytes. D0314 15:10:00.659105 31394 x:0] urpc: unmarshal success. I0314 15:10:00.663002 31394 x:0] *** Stack dump *** goroutine 2007521 [running]: gvisor.googlesource.com/gvisor/pkg/log.Stacks(0x45c001, 0xc000109140, 0xc001585e30, 0xc00017ce00) pkg/log/log.go:259 +0xb6 gvisor.googlesource.com/gvisor/runsc/boot.(*debug).Stacks(0x2388a78, 0x2388a78, 0xc00012b800, 0x0, 0x0) runsc/boot/debug.go:26 +0x38 reflect.Value.call(0xc000109140, 0xc0000101a8, 0x13, 0x10f8a85, 0x4, 0xc001239eb8, 0x3, 0x3, 0x4a765e, 0xfae420, ...) GOROOT/src/reflect/value.go:447 +0x63f reflect.Value.Call(0xc000109140, 0xc0000101a8, 0x13, 0xc001239eb8, 0x3, 0x3, 0x0, 0x2388a78, 0x16) GOROOT/src/reflect/value.go:308 +0xc1 gvisor.googlesource.com/gvisor/pkg/urpc.(*Server).handleOne(0xc0002ba150, 0xc003f318c0, 0x0, 0x0) pkg/urpc/urpc.go:325 +0x63f gvisor.googlesource.com/gvisor/pkg/urpc.(*Server).handleRegistered(0xc0002ba150, 0xc003f318c0, 0xc0002ba150, 0xc003f318c0) pkg/urpc/urpc.go:420 +0x43 gvisor.googlesource.com/gvisor/pkg/urpc.(*Server).StartHandling.func1(0xc0002ba150, 0xc003f318c0) 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, 29 minutes]: sync.runtime_Semacquire(0xc00014d1b4) GOROOT/src/runtime/sema.go:56 +0x39 sync.(*WaitGroup).Wait(0xc00014d1b4) GOROOT/src/sync/waitgroup.go:130 +0xb2 gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Kernel).WaitExited(...) pkg/sentry/kernel/kernel.go:813 gvisor.googlesource.com/gvisor/runsc/boot.(*Loader).WaitExit(0xc00026c8c0, 0x0, 0x0) runsc/boot/loader.go:757 +0x74 gvisor.googlesource.com/gvisor/runsc/cmd.(*Boot).Execute(0xc00026a1b0, 0x1280100, 0xc00013c010, 0xc000142ae0, 0xc0001c30e0, 0x2, 0x2, 0x0) runsc/cmd/boot.go:236 +0x1191 github.com/google/subcommands.(*Commander).Execute(0xc000148000, 0x1280100, 0xc00013c010, 0xc0001c30e0, 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