panic: WARNING: circular locking detected: stack.nicRWMutex -> stack.packetsPendingLinkResolutionMutex: goroutine 125862 [running]: gvisor.dev/gvisor/pkg/sync/locking.(*ancestorsAtomicPtrMap).RangeRepeatable(0xc000336140, 0xc0036652b8) bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/sync/locking/atomicptrmap_ancestors_unsafe.go:441 +0x314 gvisor.dev/gvisor/pkg/sync/locking.checkLock(0xc0003362d0, 0xc000336120, {0x0, 0x0, 0x0}) pkg/sync/locking/lockdep.go:98 +0x3a9 gvisor.dev/gvisor/pkg/sync/locking.AddGLock(0xc0003362d0, 0xffffffffffffffff) pkg/sync/locking/lockdep.go:126 +0x2df gvisor.dev/gvisor/pkg/tcpip/stack.(*packetsPendingLinkResolutionMutex).Lock(0xc000fb27c0) bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/tcpip/stack/packets_pending_link_resolution_mutex.go:33 +0x58 gvisor.dev/gvisor/pkg/tcpip/stack.(*packetsPendingLinkResolution).cancel(0xc000fb27b8) pkg/tcpip/stack/pending_packets.go:75 +0x6d gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).remove(0xc000fb2600) pkg/tcpip/stack/nic.go:314 +0x205 gvisor.dev/gvisor/pkg/tcpip/stack.(*Stack).removeNICLocked(0xc00061e700, 0x3) pkg/tcpip/stack/stack.go:976 +0x225 gvisor.dev/gvisor/pkg/tcpip/stack.(*Stack).RemoveNIC(0xc00061e700, 0x22ba36c?) pkg/tcpip/stack/stack.go:949 +0xbc gvisor.dev/gvisor/pkg/tcpip/link/tun.(*tunEndpoint).DecRef.func1() pkg/tcpip/link/tun/device.go:347 +0x9a gvisor.dev/gvisor/pkg/tcpip/link/tun.(*tunEndpointRefs).DecRef(0xc0001c4580, 0xc0019b5920) bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/tcpip/link/tun/tun_endpoint_refs.go:131 +0xb2 gvisor.dev/gvisor/pkg/tcpip/link/tun.(*tunEndpoint).DecRef(0xc0001c4580, {0x0?, 0x104726c?}) pkg/tcpip/link/tun/device.go:345 +0x5e gvisor.dev/gvisor/pkg/tcpip/link/tun.(*Device).Release(0xc0008c0ae8, {0x6a9398, 0xc006833500}) pkg/tcpip/link/tun/device.go:82 +0x1bf gvisor.dev/gvisor/pkg/sentry/devices/tundev.(*tunFD).Release(0xc0008c0a80, {0x6a9398, 0xc006833500}) pkg/sentry/devices/tundev/tundev.go:117 +0x58 gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescription).DecRef.func1() pkg/sentry/vfs/file_description.go:192 +0x3bb gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescriptionRefs).DecRef(0xc0008c0a80, 0xc0019b5b88) bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/sentry/vfs/file_description_refs.go:131 +0xb2 gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescription).DecRef(0xc0008c0a80, {0x6a9398, 0xc006833500}) pkg/sentry/vfs/file_description.go:161 +0x87 gvisor.dev/gvisor/pkg/sentry/kernel.(*FDTable).drop(0xc00697e650?, {0x6a9398, 0xc006833500}, 0x8?) pkg/sentry/kernel/fd_table.go:137 +0x119 gvisor.dev/gvisor/pkg/sentry/kernel.(*FDTable).RemoveIf(0xc00697e640, {0x6a9398, 0xc006833500}, 0x4dd528) pkg/sentry/kernel/fd_table.go:501 +0x18b gvisor.dev/gvisor/pkg/sentry/kernel.(*FDTable).DecRef.func1() pkg/sentry/kernel/fd_table.go:152 +0x65 gvisor.dev/gvisor/pkg/sentry/kernel.(*FDTableRefs).DecRef(0xc00697e640, 0xc0019b5d90) bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/sentry/kernel/fd_table_refs.go:131 +0xb2 gvisor.dev/gvisor/pkg/sentry/kernel.(*FDTable).DecRef(0xc00697e640, {0x6a9398, 0xc006833500}) pkg/sentry/kernel/fd_table.go:151 +0x87 gvisor.dev/gvisor/pkg/sentry/kernel.(*runExitMain).execute(0xc006833500, 0xc006833500) pkg/sentry/kernel/task_exit.go:281 +0x7e9 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc006833500, 0x71a) pkg/sentry/kernel/task_run.go:94 +0x2cc created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:377 +0x1da