WARNING: DATA RACE Write at 0x00c08837dd48 by goroutine 712: 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 gvisor.googlesource.com/gvisor/pkg/sentry/mm.(*MemoryManager).DecUsers() pkg/sentry/mm/lifecycle.go:226 +0x27e DIAGNOSIS: I0312 00:54:31.723714 12990 x:0] *************************** I0312 00:54:31.723916 12990 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-1] I0312 00:54:31.724040 12990 x:0] Git Revision: bc9b979b9412ad5852872c1a9bee462f73d2455e I0312 00:54:31.724116 12990 x:0] PID: 12990 I0312 00:54:31.724150 12990 x:0] UID: 0, GID: 0 I0312 00:54:31.724168 12990 x:0] Configuration: I0312 00:54:31.724182 12990 x:0] RootDir: /syzkaller/managers/kvm-direct-overlay-host-race/workdir/gvisor_root I0312 00:54:31.724221 12990 x:0] Platform: ptrace I0312 00:54:31.724271 12990 x:0] FileAccess: exclusive, overlay: true I0312 00:54:31.724302 12990 x:0] Network: host, logging: false I0312 00:54:31.724411 12990 x:0] Strace: false, max size: 1024, syscalls: [] I0312 00:54:31.724522 12990 x:0] *************************** D0312 00:54:31.724631 12990 x:0] Load container "/syzkaller/managers/kvm-direct-overlay-host-race/workdir/gvisor_root" "ci-gvisor-kvm-direct-overlay-host-race-1" D0312 00:54:31.735447 12990 x:0] Signal container "ci-gvisor-kvm-direct-overlay-host-race-1": signal 0 D0312 00:54:31.735632 12990 x:0] Signal sandbox "ci-gvisor-kvm-direct-overlay-host-race-1" D0312 00:54:31.735847 12990 x:0] Connecting to sandbox "ci-gvisor-kvm-direct-overlay-host-race-1" D0312 00:54:31.738637 12990 x:0] urpc: successfully marshalled 120 bytes. D0312 00:54:31.738878 12990 x:0] urpc: unmarshal success. I0312 00:54:31.740145 12990 x:0] Found sandbox "ci-gvisor-kvm-direct-overlay-host-race-1", PID: 64453 I0312 00:54:31.740554 12990 x:0] Retrieving sandbox stacks D0312 00:54:31.740653 12990 x:0] Stacks sandbox "ci-gvisor-kvm-direct-overlay-host-race-1" D0312 00:54:31.740704 12990 x:0] Connecting to sandbox "ci-gvisor-kvm-direct-overlay-host-race-1" D0312 00:54:31.741180 12990 x:0] urpc: successfully marshalled 36 bytes. D0312 00:54:32.207348 12990 x:0] urpc: unmarshal success. I0312 00:54:32.208252 12990 x:0] *** Stack dump *** goroutine 3497991 [running]: gvisor.googlesource.com/gvisor/pkg/log.Stacks(0x45c001, 0xc000312840, 0xc08a3c2ae0, 0xc0011a5c00) pkg/log/log.go:259 +0xb6 gvisor.googlesource.com/gvisor/runsc/boot.(*debug).Stacks(0x23a8a78, 0x23a8a78, 0xc086c5adf0, 0x0, 0x0) runsc/boot/debug.go:26 +0x38 reflect.Value.call(0xc000312840, 0xc000010aa8, 0x13, 0x110be05, 0x4, 0xc0025b7eb8, 0x3, 0x3, 0x4a765e, 0xfbfba0, ...) GOROOT/src/reflect/value.go:447 +0x63f reflect.Value.Call(0xc000312840, 0xc000010aa8, 0x13, 0xc0025b7eb8, 0x3, 0x3, 0x0, 0x23a8a78, 0x16) GOROOT/src/reflect/value.go:308 +0xc1 gvisor.googlesource.com/gvisor/pkg/urpc.(*Server).handleOne(0xc00024d380, 0xc08a0db5c0, 0x0, 0x0) pkg/urpc/urpc.go:325 +0x63f gvisor.googlesource.com/gvisor/pkg/urpc.(*Server).handleRegistered(0xc00024d380, 0xc08a0db5c0, 0xc00024d380, 0xc08a0db5c0) pkg/urpc/urpc.go:420 +0x43 gvisor.googlesource.com/gvisor/pkg/urpc.(*Server).StartHandling.func1(0xc00024d380, 0xc08a0db5c0) 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, 36 minutes]: sync.runtime_Semacquire(0xc0002a2264) GOROOT/src/runtime/sema.go:56 +0x39 sync.(*WaitGroup).Wait(0xc0002a2264) 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(0xc0002a8140, 0x0, 0x0) runsc/boot/loader.go:757 +0x74 gvisor.googlesource.com/gvisor/runsc/cmd.(*Boot).Execute(0xc000230120, 0x1294a60, 0xc0000d0008, 0xc000108c00, 0xc0001a10e0, 0x2, 0x2, 0x0) runsc/cmd/boot.go:236 +0x1191 github.com/google/subcommands.(*Commander).Execute(0xc000126000, 0x1294a60, 0xc0000d0008, 0xc0001a10e0, 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