panic: WARNING: circular locking detected: stack.nicRWMutex -> stack.packetsPendingLinkResolutionMutex: goroutine 6261 [running]: gvisor.dev/gvisor/pkg/tcpip/stack.(*packetsPendingLinkResolutionMutex).Lock(0xc00115ada0) 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(0xc00115ad98) pkg/tcpip/stack/pending_packets.go:75 +0x5c gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).remove(0xc00115ac00) pkg/tcpip/stack/nic.go:314 +0x1a5 gvisor.dev/gvisor/pkg/tcpip/stack.(*Stack).removeNICLocked(0xc00031b500, 0x2f4) pkg/tcpip/stack/stack.go:976 +0x1dd gvisor.dev/gvisor/pkg/tcpip/stack.(*Stack).RemoveNIC(0xc00031b500, 0x1133a39?) 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(0xc001c1c440, 0xc001df7100) 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(0xc001c1c440, {0xc0003fbce0?, 0xc00083ccf0?}) pkg/tcpip/link/tun/device.go:345 +0x4d gvisor.dev/gvisor/pkg/tcpip/link/tun.(*Device).Release(0xc00092d028, {0x79d238, 0xc001fc6000}) pkg/tcpip/link/tun/device.go:82 +0x1c6 gvisor.dev/gvisor/pkg/sentry/devices/tundev.(*tunFD).Release(0xc00092cfc0, {0x79d238, 0xc001fc6000}) 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(0xc00092cfc0, 0xc001df7378) bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/sentry/vfs/file_description_refs.go:131 +0x5f gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescription).DecRef(0xc00092cfc0, {0x79d238, 0xc001fc6000}) pkg/sentry/vfs/file_description.go:161 +0x6f gvisor.dev/gvisor/pkg/sentry/syscalls/linux.Close(0xc001fc6000, {{0x3}, {0xffffffffffffffff}, {0x7f6c0d200278}, {0x7f6c0d200280}, {0x0}, {0x7f6c0d200000}}) pkg/sentry/syscalls/linux/sys_file.go:456 +0x1ef gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc001fc6000, 0x3, {{0x3}, {0xffffffffffffffff}, {0x7f6c0d200278}, {0x7f6c0d200280}, {0x0}, {0x7f6c0d200000}}) pkg/sentry/kernel/task_syscall.go:142 +0x9b9 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc001fc6000, 0x0?, {{0x3}, {0xffffffffffffffff}, {0x7f6c0d200278}, {0x7f6c0d200280}, {0x0}, {0x7f6c0d200000}}) pkg/sentry/kernel/task_syscall.go:322 +0x7d gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc00137e0d0?, 0xc0009bc5a0?, {{0x3}, {0xffffffffffffffff}, {0x7f6c0d200278}, {0x7f6c0d200280}, {0x0}, {0x7f6c0d200000}}) pkg/sentry/kernel/task_syscall.go:282 +0x8f gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc001fc6000) pkg/sentry/kernel/task_syscall.go:257 +0x4c5 gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc001fc6000?, 0xc001fc6000) pkg/sentry/kernel/task_run.go:253 +0x1965 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc001fc6000, 0x16d) 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