panic: WARNING: circular locking detected: stack.nicRWMutex -> stack.packetsPendingLinkResolutionMutex: goroutine 281 [running]: gvisor.dev/gvisor/pkg/sync/locking.(*ancestorsAtomicPtrMap).RangeRepeatable(0xc00017c140, 0xc000c97290) bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/sync/locking/atomicptrmap_ancestors_unsafe.go:441 +0x1dc gvisor.dev/gvisor/pkg/sync/locking.checkLock(0xc00017c2d0, 0xc00017c120, {0x0, 0x0, 0x0}) pkg/sync/locking/lockdep.go:98 +0x373 gvisor.dev/gvisor/pkg/sync/locking.AddGLock(0xc00017c2d0, 0xffffffffffffffff) pkg/sync/locking/lockdep.go:126 +0x28c gvisor.dev/gvisor/pkg/tcpip/stack.(*packetsPendingLinkResolutionMutex).Lock(0xc000888dc0) bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/tcpip/stack/packets_pending_link_resolution_mutex.go:33 +0x45 gvisor.dev/gvisor/pkg/tcpip/stack.(*packetsPendingLinkResolution).cancel(0xc000888db8) pkg/tcpip/stack/pending_packets.go:75 +0x5c gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).remove(0xc000888c00) pkg/tcpip/stack/nic.go:314 +0x1a5 gvisor.dev/gvisor/pkg/tcpip/stack.(*Stack).removeNICLocked(0xc00052ce00, 0x3) pkg/tcpip/stack/stack.go:976 +0x1dd gvisor.dev/gvisor/pkg/tcpip/stack.(*Stack).RemoveNIC(0xc00052ce00, 0x11334f9?) pkg/tcpip/stack/stack.go:949 +0xad gvisor.dev/gvisor/pkg/tcpip/link/tun.(*tunEndpoint).DecRef.func1() pkg/tcpip/link/tun/device.go:347 +0x89 gvisor.dev/gvisor/pkg/tcpip/link/tun.(*tunEndpointRefs).DecRef(0xc000658080, 0xc000c978f0) bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/tcpip/link/tun/tun_endpoint_refs.go:131 +0x5f gvisor.dev/gvisor/pkg/tcpip/link/tun.(*tunEndpoint).DecRef(0xc000658080, {0xc0006522a0?, 0xc0007ba160?}) pkg/tcpip/link/tun/device.go:345 +0x4d gvisor.dev/gvisor/pkg/tcpip/link/tun.(*Device).Release(0xc000654068, {0x79c878, 0xc0007aea80}) pkg/tcpip/link/tun/device.go:82 +0x1c6 gvisor.dev/gvisor/pkg/sentry/devices/tundev.(*tunFD).Release(0xc000654000, {0x79c878, 0xc0007aea80}) pkg/sentry/devices/tundev/tundev.go:117 +0x47 gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescription).DecRef.func1() pkg/sentry/vfs/file_description.go:192 +0x348 gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescriptionRefs).DecRef(0xc000654000, 0xc000c97b68) bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/sentry/vfs/file_description_refs.go:131 +0x5f gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescription).DecRef(0xc000654000, {0x79c878, 0xc0007aea80}) pkg/sentry/vfs/file_description.go:161 +0x6f gvisor.dev/gvisor/pkg/sentry/kernel.(*FDTable).drop(0xc0009c9510?, {0x79c878, 0xc0007aea80}, 0xc000654000) pkg/sentry/kernel/fd_table.go:137 +0x1ed gvisor.dev/gvisor/pkg/sentry/kernel.(*FDTable).RemoveIf(0xc0009c9500, {0x79c878, 0xc0007aea80}, 0x4d4bc0) pkg/sentry/kernel/fd_table.go:501 +0x150 gvisor.dev/gvisor/pkg/sentry/kernel.(*FDTable).DecRef.func1() pkg/sentry/kernel/fd_table.go:152 +0x54 gvisor.dev/gvisor/pkg/sentry/kernel.(*FDTableRefs).DecRef(0xc0009c9500, 0xc000c97d88) bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/sentry/kernel/fd_table_refs.go:131 +0x5f gvisor.dev/gvisor/pkg/sentry/kernel.(*FDTable).DecRef(0xc0009c9500, {0x79c878, 0xc0007aea80}) pkg/sentry/kernel/fd_table.go:151 +0x6f gvisor.dev/gvisor/pkg/sentry/kernel.(*runExitMain).execute(0xc0007aea80, 0xc0007aea80) pkg/sentry/kernel/task_exit.go:281 +0x797 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc0007aea80, 0xf) pkg/sentry/kernel/task_run.go:94 +0x3a2 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:377 +0x1ad