WARNING: DATA RACE Write at 0x00c000269718 by goroutine 568: 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:422 +0x47 gvisor.googlesource.com/gvisor/pkg/sentry/mm.(*MemoryManager).removeVMAsLocked() pkg/sentry/mm/vma.go:371 +0x565 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:231 +0x27e DIAGNOSIS: I0402 09:48:28.566169 34698 x:0] *************************** I0402 09:48:28.569931 34698 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-3] I0402 09:48:28.570036 34698 x:0] Version release-20190304.1-70-g1df3fa699774 I0402 09:48:28.570084 34698 x:0] PID: 34698 I0402 09:48:28.570145 34698 x:0] UID: 0, GID: 0 I0402 09:48:28.570194 34698 x:0] Configuration: I0402 09:48:28.570223 34698 x:0] RootDir: /syzkaller/managers/kvm-direct-overlay-host-race/workdir/gvisor_root I0402 09:48:28.570249 34698 x:0] Platform: ptrace I0402 09:48:28.570272 34698 x:0] FileAccess: exclusive, overlay: true I0402 09:48:28.570312 34698 x:0] Network: host, logging: false I0402 09:48:28.570363 34698 x:0] Strace: false, max size: 1024, syscalls: [] I0402 09:48:28.570402 34698 x:0] *************************** D0402 09:48:28.570508 34698 x:0] Load container "/syzkaller/managers/kvm-direct-overlay-host-race/workdir/gvisor_root" "ci-gvisor-kvm-direct-overlay-host-race-3" D0402 09:48:28.580101 34698 x:0] Signal container "ci-gvisor-kvm-direct-overlay-host-race-3": signal 0 D0402 09:48:28.580188 34698 x:0] Signal sandbox "ci-gvisor-kvm-direct-overlay-host-race-3" D0402 09:48:28.580231 34698 x:0] Connecting to sandbox "ci-gvisor-kvm-direct-overlay-host-race-3" D0402 09:48:28.580882 34698 x:0] urpc: successfully marshalled 120 bytes. D0402 09:48:28.583187 34698 x:0] urpc: unmarshal success. I0402 09:48:28.583437 34698 x:0] Found sandbox "ci-gvisor-kvm-direct-overlay-host-race-3", PID: 47212 I0402 09:48:28.583531 34698 x:0] Retrieving sandbox stacks D0402 09:48:28.583575 34698 x:0] Stacks sandbox "ci-gvisor-kvm-direct-overlay-host-race-3" D0402 09:48:28.584219 34698 x:0] Connecting to sandbox "ci-gvisor-kvm-direct-overlay-host-race-3" D0402 09:48:28.590379 34698 x:0] urpc: successfully marshalled 36 bytes. D0402 09:48:28.925539 34698 x:0] urpc: unmarshal success. I0402 09:48:28.927891 34698 x:0] *** Stack dump *** goroutine 1578066 [running]: gvisor.googlesource.com/gvisor/pkg/log.Stacks(0x45c801, 0xc0002a2ba0, 0xc001217440, 0xc000a6e000) pkg/log/log.go:259 +0xb6 gvisor.googlesource.com/gvisor/runsc/boot.(*debug).Stacks(0x23dbc70, 0x23dbc70, 0xc0007240e0, 0x0, 0x0) runsc/boot/debug.go:26 +0x38 reflect.Value.call(0xc0002a2ba0, 0xc0002a01d0, 0x13, 0x112e16b, 0x4, 0xc0014a9eb8, 0x3, 0x3, 0x4a864e, 0xfdf3c0, ...) GOROOT/src/reflect/value.go:447 +0x649 reflect.Value.Call(0xc0002a2ba0, 0xc0002a01d0, 0x13, 0xc0014a9eb8, 0x3, 0x3, 0x0, 0x23dbc70, 0x16) GOROOT/src/reflect/value.go:308 +0xc1 gvisor.googlesource.com/gvisor/pkg/urpc.(*Server).handleOne(0xc0002ae5a0, 0xc00158ed80, 0x0, 0x0) pkg/urpc/urpc.go:325 +0x63f gvisor.googlesource.com/gvisor/pkg/urpc.(*Server).handleRegistered(0xc0002ae5a0, 0xc00158ed80, 0xc0002ae5a0, 0xc00158ed80) pkg/urpc/urpc.go:420 +0x43 gvisor.googlesource.com/gvisor/pkg/urpc.(*Server).StartHandling.func1(0xc0002ae5a0, 0xc00158ed80) 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, 17 minutes]: sync.runtime_Semacquire(0xc0002a4264) GOROOT/src/runtime/sema.go:56 +0x39 sync.(*WaitGroup).Wait(0xc0002a4264) GOROOT/src/sync/waitgroup.go:130 +0xb2 gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Kernel).WaitExited(...) pkg/sentry/kernel/kernel.go:820 gvisor.googlesource.com/gvisor/runsc/boot.(*Loader).WaitExit(0xc00029c140, 0x0, 0x0) runsc/boot/loader.go:781 +0x74 gvisor.googlesource.com/gvisor/runsc/cmd.(*Boot).Execute(0xc000234120, 0x12bfc20, 0xc0000ce008, 0xc000114b40, 0xc0001a50e0, 0x2, 0x2, 0x0) runsc/cmd/boot.go:252 +0x12e4 github.com/google/subcommands.(*Commander).Execute(0xc00012a000, 0x12bfc20, 0xc0000ce008, 0xc0001a50e0, 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:238 +0x2473