panic: WARNING: circular locking detected: stack.nicRWMutex -> stack.neighborCacheRWMutex: goroutine 10908 [running]: gvisor.dev/gvisor/pkg/sync/locking.(*ancestorsAtomicPtrMap).RangeRepeatable(0xc00034c380, 0xc000b7e898) bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/sync/locking/atomicptrmap_ancestors_unsafe.go:441 +0x314 gvisor.dev/gvisor/pkg/sync/locking.checkLock(0xc00034c000, 0xc00034c360, {0xc000fa9220, 0x1, 0x1}) pkg/sync/locking/lockdep.go:98 +0x3a9 gvisor.dev/gvisor/pkg/sync/locking.checkLock.func1(0xc00034c160?, 0xc000b7e9c8?) pkg/sync/locking/lockdep.go:101 +0x7a gvisor.dev/gvisor/pkg/sync/locking.(*ancestorsAtomicPtrMap).RangeRepeatable(0xc00034c140, 0xc000b7eaa0) bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/sync/locking/atomicptrmap_ancestors_unsafe.go:441 +0x314 gvisor.dev/gvisor/pkg/sync/locking.checkLock(0xc00034c000, 0xc00034c120, {0x0, 0x0, 0x0}) pkg/sync/locking/lockdep.go:98 +0x3a9 gvisor.dev/gvisor/pkg/sync/locking.AddGLock(0xc00034c000, 0xffffffffffffffff) pkg/sync/locking/lockdep.go:126 +0x2df gvisor.dev/gvisor/pkg/tcpip/stack.(*neighborCacheRWMutex).Lock(0xc001730420) bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/tcpip/stack/neighbor_cache_mutex.go:31 +0x58 gvisor.dev/gvisor/pkg/tcpip/stack.(*neighborCache).clear(0xc001730400) pkg/tcpip/stack/neighbor_cache.go:238 +0x6d gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).clearNeighbors(0xc000e10c00, 0x54b740?) pkg/tcpip/stack/nic.go:658 +0xb5 gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).disableLocked(0xc000e10c00) pkg/tcpip/stack/nic.go:262 +0x19f gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).remove(0xc000e10c00) pkg/tcpip/stack/nic.go:304 +0xc5 gvisor.dev/gvisor/pkg/tcpip/stack.(*Stack).removeNICLocked(0xc00052ee00, 0x276) pkg/tcpip/stack/stack.go:976 +0x225 gvisor.dev/gvisor/pkg/tcpip/stack.(*Stack).RemoveNIC(0xc00052ee00, 0x2329a2c?) 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(0xc000e3d200, 0xc000b7f1b8) 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(0xc000e3d200, {0x0?, 0x106a98c?}) pkg/tcpip/link/tun/device.go:345 +0x5e gvisor.dev/gvisor/pkg/tcpip/link/tun.(*Device).Release(0xc000ab42a8, {0x6b3718, 0xc001b7f500}) pkg/tcpip/link/tun/device.go:82 +0x1bf gvisor.dev/gvisor/pkg/sentry/devices/tundev.(*tunFD).Release(0xc000ab4240, {0x6b3718, 0xc001b7f500}) 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(0xc000ab4240, 0xc000b7f420) bazel-out/k8-fastbuild-ST-3dcbe13c9b87/bin/pkg/sentry/vfs/file_description_refs.go:131 +0xb2 gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescription).DecRef(0xc000ab4240, {0x6b3718, 0xc001b7f500}) pkg/sentry/vfs/file_description.go:161 +0x87 gvisor.dev/gvisor/pkg/sentry/syscalls/linux.Close(0xc001b7f500, {{0x3}, {0xffffffffffffffff}, {0x7f8cfb8001f0}, {0x7f8cfb8001f8}, {0x0}, {0x7f8cfb800000}}) pkg/sentry/syscalls/linux/sys_file.go:456 +0x21c gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc001b7f500, 0x3, {{0x3}, {0xffffffffffffffff}, {0x7f8cfb8001f0}, {0x7f8cfb8001f8}, {0x0}, {0x7f8cfb800000}}) pkg/sentry/kernel/task_syscall.go:142 +0xab8 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc001b7f500, 0x1?, {{0x3}, {0xffffffffffffffff}, {0x7f8cfb8001f0}, {0x7f8cfb8001f8}, {0x0}, {0x7f8cfb800000}}) pkg/sentry/kernel/task_syscall.go:322 +0x8e gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc000e1e690?, 0x106a98c?, {{0x3}, {0xffffffffffffffff}, {0x7f8cfb8001f0}, {0x7f8cfb8001f8}, {0x0}, {0x7f8cfb800000}}) pkg/sentry/kernel/task_syscall.go:282 +0xc5 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc001b7f500) pkg/sentry/kernel/task_syscall.go:257 +0x53b gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc001b7f500?, 0xc001b7f500) pkg/sentry/kernel/task_run.go:253 +0x1e94 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc001b7f500, 0x12f) 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