panic: WARNING: circular locking detected: stack.nicRWMutex -> stack.neighborCacheRWMutex: goroutine 24688 [running]: gvisor.dev/gvisor/pkg/sync/locking.(*ancestorsAtomicPtrMap).RangeRepeatable(0xc000034380, 0xc001c027f0) bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/sync/locking/atomicptrmap_ancestors_unsafe.go:441 +0x1dc gvisor.dev/gvisor/pkg/sync/locking.checkLock(0xc000034000, 0xc000034360, {0xc0058e2d10, 0x1, 0x1}) pkg/sync/locking/lockdep.go:98 +0x373 gvisor.dev/gvisor/pkg/sync/locking.checkLock.func1(0xc000034160?, 0xc001c02918?) pkg/sync/locking/lockdep.go:101 +0x65 gvisor.dev/gvisor/pkg/sync/locking.(*ancestorsAtomicPtrMap).RangeRepeatable(0xc000034140, 0xc001c029f0) bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/sync/locking/atomicptrmap_ancestors_unsafe.go:441 +0x1dc gvisor.dev/gvisor/pkg/sync/locking.checkLock(0xc000034000, 0xc000034120, {0x0, 0x0, 0x0}) pkg/sync/locking/lockdep.go:98 +0x373 gvisor.dev/gvisor/pkg/sync/locking.AddGLock(0xc000034000, 0xffffffffffffffff) pkg/sync/locking/lockdep.go:126 +0x28c gvisor.dev/gvisor/pkg/tcpip/stack.(*neighborCacheRWMutex).Lock(0xc0044be8f0) bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/tcpip/stack/neighbor_cache_mutex.go:31 +0x45 gvisor.dev/gvisor/pkg/tcpip/stack.(*neighborCache).clear(0xc0044be8d0) pkg/tcpip/stack/neighbor_cache.go:238 +0x5c gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).clearNeighbors(0xc000cfec00, 0x5b201e0?) pkg/tcpip/stack/nic.go:658 +0x8f gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).disableLocked(0xc000cfec00) pkg/tcpip/stack/nic.go:262 +0x145 gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).remove(0xc000cfec00) pkg/tcpip/stack/nic.go:304 +0xac gvisor.dev/gvisor/pkg/tcpip/stack.(*Stack).removeNICLocked(0xc00053c700, 0xb64) pkg/tcpip/stack/stack.go:976 +0x1dd gvisor.dev/gvisor/pkg/tcpip/stack.(*Stack).RemoveNIC(0xc00053c700, 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(0xc004f60240, 0xc001c03100) 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(0xc004f60240, {0xc005b40050?, 0xc0058e2cc0?}) pkg/tcpip/link/tun/device.go:345 +0x4d gvisor.dev/gvisor/pkg/tcpip/link/tun.(*Device).Release(0xc000f427e8, {0x79d238, 0xc004beaa80}) pkg/tcpip/link/tun/device.go:82 +0x1c6 gvisor.dev/gvisor/pkg/sentry/devices/tundev.(*tunFD).Release(0xc000f42780, {0x79d238, 0xc004beaa80}) 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(0xc000f42780, 0xc001c03378) bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/sentry/vfs/file_description_refs.go:131 +0x5f gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescription).DecRef(0xc000f42780, {0x79d238, 0xc004beaa80}) pkg/sentry/vfs/file_description.go:161 +0x6f gvisor.dev/gvisor/pkg/sentry/syscalls/linux.Close(0xc004beaa80, {{0x3}, {0xffffffffffffffff}, {0x7f712fc00178}, {0x7f712fc00180}, {0x0}, {0x7f712fc00000}}) pkg/sentry/syscalls/linux/sys_file.go:456 +0x1ef gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc004beaa80, 0x3, {{0x3}, {0xffffffffffffffff}, {0x7f712fc00178}, {0x7f712fc00180}, {0x0}, {0x7f712fc00000}}) pkg/sentry/kernel/task_syscall.go:142 +0x9b9 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc004beaa80, 0x0?, {{0x3}, {0xffffffffffffffff}, {0x7f712fc00178}, {0x7f712fc00180}, {0x0}, {0x7f712fc00000}}) pkg/sentry/kernel/task_syscall.go:322 +0x7d gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc004498820?, 0xc0037d1860?, {{0x3}, {0xffffffffffffffff}, {0x7f712fc00178}, {0x7f712fc00180}, {0x0}, {0x7f712fc00000}}) pkg/sentry/kernel/task_syscall.go:282 +0x8f gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc004beaa80) pkg/sentry/kernel/task_syscall.go:257 +0x4c5 gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc004beaa80?, 0xc004beaa80) pkg/sentry/kernel/task_run.go:253 +0x1965 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc004beaa80, 0x55f) 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