panic: WARNING: circular locking detected: stack.nicRWMutex -> stack.packetsPendingLinkResolutionMutex: goroutine 94 [running]: gvisor.dev/gvisor/pkg/tcpip/stack.(*packetsPendingLinkResolutionMutex).Lock(0xc0009d4da0) 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(0xc0009d4d98) pkg/tcpip/stack/pending_packets.go:75 +0x6d gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).remove(0xc0009d4c00) pkg/tcpip/stack/nic.go:314 +0x205 gvisor.dev/gvisor/pkg/tcpip/stack.(*Stack).removeNICLocked(0xc0004c9500, 0x3) pkg/tcpip/stack/stack.go:979 +0x27d gvisor.dev/gvisor/pkg/tcpip/stack.(*Stack).RemoveNIC(0xc0004c9500, 0x232734c?) 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(0xc000701800, 0xc0006451b8) 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(0xc000701800, {0x0?, 0x106992c?}) pkg/tcpip/link/tun/device.go:345 +0x5e gvisor.dev/gvisor/pkg/tcpip/link/tun.(*Device).Release(0xc00073e5a8, {0x6b3178, 0xc0009b9500}) pkg/tcpip/link/tun/device.go:82 +0x1bf gvisor.dev/gvisor/pkg/sentry/devices/tundev.(*tunFD).Release(0xc00073e540, {0x6b3178, 0xc0009b9500}) 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(0xc00073e540, 0xc000645420) bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/sentry/vfs/file_description_refs.go:131 +0xb2 gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescription).DecRef(0xc00073e540, {0x6b3178, 0xc0009b9500}) pkg/sentry/vfs/file_description.go:161 +0x87 gvisor.dev/gvisor/pkg/sentry/syscalls/linux.Close(0xc0009b9500, {{0x3}, {0x20000200}, {0x52}, {0x7f4d1f0016a0}, {0x7f4d1f001cd0}, {0x7f4d1f001cd0}}) pkg/sentry/syscalls/linux/sys_file.go:456 +0x21c gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc0009b9500, 0x3, {{0x3}, {0x20000200}, {0x52}, {0x7f4d1f0016a0}, {0x7f4d1f001cd0}, {0x7f4d1f001cd0}}) pkg/sentry/kernel/task_syscall.go:142 +0xab8 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc0009b9500, 0x1?, {{0x3}, {0x20000200}, {0x52}, {0x7f4d1f0016a0}, {0x7f4d1f001cd0}, {0x7f4d1f001cd0}}) pkg/sentry/kernel/task_syscall.go:322 +0x8e gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc000aac4b0?, 0x106992c?, {{0x3}, {0x20000200}, {0x52}, {0x7f4d1f0016a0}, {0x7f4d1f001cd0}, {0x7f4d1f001cd0}}) pkg/sentry/kernel/task_syscall.go:282 +0xc5 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc0009b9500) pkg/sentry/kernel/task_syscall.go:257 +0x53b gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc0009b9500?, 0xc0009b9500) pkg/sentry/kernel/task_run.go:253 +0x1e94 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc0009b9500, 0xe) 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