WARNING: DATA RACE Write at 0x00c000878698 by goroutine 287: 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 gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*runExitMain).execute() pkg/sentry/kernel/task_context.go:64 +0x383 gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).run() pkg/sentry/kernel/task_run.go:91 +0x2e5 Previous read at 0x00c000878698 by goroutine 338: reflect.typedmemmove() GOROOT/src/runtime/mbarrier.go:177 +0x0 reflect.packEface() GOROOT/src/reflect/value.go:119 +0x104 reflect.valueInterface() GOROOT/src/reflect/value.go:1009 +0x170 fmt.(*pp).printValue() GOROOT/src/reflect/value.go:979 +0x3928 DIAGNOSIS: I0307 07:02:17.161265 65438 x:0] *************************** I0307 07:02:17.161441 65438 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] I0307 07:02:17.161572 65438 x:0] Git Revision: 0b76887147820a809beaa497ede8dc4f7b7b120a I0307 07:02:17.161652 65438 x:0] PID: 65438 I0307 07:02:17.161696 65438 x:0] UID: 0, GID: 0 I0307 07:02:17.161748 65438 x:0] Configuration: I0307 07:02:17.161821 65438 x:0] RootDir: /syzkaller/managers/kvm-direct-overlay-host-race/workdir/gvisor_root I0307 07:02:17.161856 65438 x:0] Platform: ptrace I0307 07:02:17.161899 65438 x:0] FileAccess: exclusive, overlay: true I0307 07:02:17.161950 65438 x:0] Network: host, logging: false I0307 07:02:17.162010 65438 x:0] Strace: false, max size: 1024, syscalls: [] I0307 07:02:17.162050 65438 x:0] *************************** D0307 07:02:17.162376 65438 x:0] Load container "/syzkaller/managers/kvm-direct-overlay-host-race/workdir/gvisor_root" "ci-gvisor-kvm-direct-overlay-host-race-3" D0307 07:02:17.171217 65438 x:0] Signal container "ci-gvisor-kvm-direct-overlay-host-race-3": signal 0 D0307 07:02:17.171303 65438 x:0] Signal sandbox "ci-gvisor-kvm-direct-overlay-host-race-3" D0307 07:02:17.171361 65438 x:0] Connecting to sandbox "ci-gvisor-kvm-direct-overlay-host-race-3" D0307 07:02:17.172411 65438 x:0] urpc: successfully marshalled 120 bytes. D0307 07:02:17.175312 65438 x:0] urpc: unmarshal success. I0307 07:02:17.175458 65438 x:0] Found sandbox "ci-gvisor-kvm-direct-overlay-host-race-3", PID: 54383 I0307 07:02:17.175521 65438 x:0] Retrieving sandbox stacks D0307 07:02:17.175556 65438 x:0] Stacks sandbox "ci-gvisor-kvm-direct-overlay-host-race-3" D0307 07:02:17.175622 65438 x:0] Connecting to sandbox "ci-gvisor-kvm-direct-overlay-host-race-3" D0307 07:02:17.176880 65438 x:0] urpc: successfully marshalled 36 bytes. D0307 07:02:17.296723 65438 x:0] urpc: unmarshal success. I0307 07:02:17.297191 65438 x:0] *** Stack dump *** goroutine 60750 [running]: gvisor.googlesource.com/gvisor/pkg/log.Stacks(0x459c01, 0xc00012cd20, 0xc000195260, 0xc0001ef880) pkg/log/log.go:259 +0xb6 gvisor.googlesource.com/gvisor/runsc/boot.(*debug).Stacks(0x23767e8, 0x23767e8, 0xc0002b86a0, 0x0, 0x0) runsc/boot/debug.go:26 +0x38 reflect.Value.call(0xc00012cd20, 0xc0002e21c0, 0x13, 0x10eb560, 0x4, 0xc0009cdeb8, 0x3, 0x3, 0x4a4dee, 0xfa25c0, ...) GOROOT/src/reflect/value.go:447 +0x63f reflect.Value.Call(0xc00012cd20, 0xc0002e21c0, 0x13, 0xc0009cdeb8, 0x3, 0x3, 0x0, 0x23767e8, 0x16) GOROOT/src/reflect/value.go:308 +0xc1 gvisor.googlesource.com/gvisor/pkg/urpc.(*Server).handleOne(0xc0002ec5a0, 0xc0006db4a0, 0x0, 0x0) pkg/urpc/urpc.go:325 +0x63f gvisor.googlesource.com/gvisor/pkg/urpc.(*Server).handleRegistered(0xc0002ec5a0, 0xc0006db4a0, 0xc0002ec5a0, 0xc0006db4a0) pkg/urpc/urpc.go:420 +0x43 gvisor.googlesource.com/gvisor/pkg/urpc.(*Server).StartHandling.func1(0xc0002ec5a0, 0xc0006db4a0) pkg/urpc/urpc.go:440 +0x77 created by gvisor.googlesource.com/gvisor/pkg/urpc.(*Server).StartHandling pkg/urpc/urpc.go:438 +0x6f