[ 11.887884][ T250] ip (250) used greatest stack depth: 24464 bytes left [ 141.795570][ T897] [ 141.795698][ T897] ============================================ [ 141.795892][ T897] WARNING: possible recursive locking detected [ 141.796064][ T897] 6.14.0-rc7-virtme #1 Not tainted [ 141.796205][ T897] -------------------------------------------- [ 141.796389][ T897] ip/897 is trying to acquire lock: [ 141.796538][ T897] ffff88800c17f180 (&nh->lock){+...}-{3:3}, at: fib6_purge_rt+0x14a/0x910 [ 141.796769][ T897] [ 141.796769][ T897] but task is already holding lock: [ 141.796980][ T897] ffff888008d10180 (&nh->lock){+...}-{3:3}, at: fib6_add+0x177/0xb00 [ 141.797218][ T897] [ 141.797218][ T897] other info that might help us debug this: [ 141.797424][ T897] Possible unsafe locking scenario: [ 141.797424][ T897] [ 141.797634][ T897] CPU0 [ 141.797743][ T897] ---- [ 141.797848][ T897] lock(&nh->lock); [ 141.797957][ T897] lock(&nh->lock); [ 141.798069][ T897] [ 141.798069][ T897] *** DEADLOCK *** [ 141.798069][ T897] [ 141.798277][ T897] May be due to missing lock nesting notation [ 141.798277][ T897] [ 141.798498][ T897] 3 locks held by ip/897: [ 141.798611][ T897] #0: ffffffff8e55b620 (rcu_read_lock){....}-{1:3}, at: ip6_route_add+0x3e/0x250 [ 141.798892][ T897] #1: ffff888005294a30 (&tb->tb6_lock){+...}-{3:3}, at: ip6_route_add+0xdb/0x250 [ 141.799151][ T897] #2: ffff888008d10180 (&nh->lock){+...}-{3:3}, at: fib6_add+0x177/0xb00 [ 141.799368][ T897] [ 141.799368][ T897] stack backtrace: [ 141.799548][ T897] CPU: 1 UID: 0 PID: 897 Comm: ip Not tainted 6.14.0-rc7-virtme #1 [ 141.799553][ T897] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 141.799555][ T897] Call Trace: [ 141.799557][ T897] [ 141.799560][ T897] dump_stack_lvl+0x82/0xd0 [ 141.799568][ T897] print_deadlock_bug+0x2e9/0x410 [ 141.799576][ T897] validate_chain+0x5bf/0xae0 [ 141.799582][ T897] ? __pfx_validate_chain+0x10/0x10 [ 141.799586][ T897] ? hlock_class+0x4e/0x130 [ 141.799589][ T897] ? mark_lock+0x38/0x3e0 [ 141.799593][ T897] __lock_acquire+0xb9a/0x1680 [ 141.799600][ T897] lock_acquire.part.0+0xeb/0x330 [ 141.799603][ T897] ? fib6_purge_rt+0x14a/0x910 [ 141.799608][ T897] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 141.799612][ T897] ? trace_lock_acquire+0x14c/0x1f0 [ 141.799615][ T897] ? lock_acquire+0x32/0xc0 [ 141.799618][ T897] ? fib6_purge_rt+0x14a/0x910 [ 141.799622][ T897] _raw_spin_lock+0x30/0x40 [ 141.799627][ T897] ? fib6_purge_rt+0x14a/0x910 [ 141.799629][ T897] fib6_purge_rt+0x14a/0x910 [ 141.799634][ T897] ? __pfx_fib6_purge_rt+0x10/0x10 [ 141.799638][ T897] ? nlmsg_notify+0x6e/0x1e0 [ 141.799645][ T897] fib6_add_rt2node+0x1425/0x2ab0 [ 141.799651][ T897] ? __pfx_fib6_add_rt2node+0x10/0x10 [ 141.799654][ T897] ? do_raw_spin_lock+0x131/0x270 [ 141.799658][ T897] ? lock_acquire+0x32/0xc0 [ 141.799661][ T897] ? fib6_add+0x177/0xb00 [ 141.799665][ T897] fib6_add+0x305/0xb00 [ 141.799670][ T897] ip6_route_add+0xed/0x250 [ 141.799673][ T897] ? __pfx_inet6_rtm_newroute+0x10/0x10 [ 141.799676][ T897] inet6_rtm_newroute+0x104/0x110 [ 141.799679][ T897] ? __pfx_inet6_rtm_newroute+0x10/0x10 [ 141.799686][ T897] ? rtnetlink_rcv_msg+0x6ef/0xc10 [ 141.799692][ T897] rtnetlink_rcv_msg+0x712/0xc10 [ 141.799695][ T897] ? __pfx_rtnetlink_rcv_msg+0x10/0x10 [ 141.799698][ T897] ? hlock_class+0x4e/0x130 [ 141.799700][ T897] ? mark_lock+0x38/0x3e0 [ 141.799704][ T897] ? __lock_acquire+0xb9a/0x1680 [ 141.799708][ T897] netlink_rcv_skb+0x130/0x360 [ 141.799711][ T897] ? __pfx_rtnetlink_rcv_msg+0x10/0x10 [ 141.799714][ T897] ? __pfx_netlink_rcv_skb+0x10/0x10 [ 141.799721][ T897] ? netlink_deliver_tap+0x13e/0x340 [ 141.799724][ T897] ? netlink_deliver_tap+0xc3/0x340 [ 141.799728][ T897] netlink_unicast+0x44b/0x710 [ 141.799731][ T897] ? __pfx_netlink_unicast+0x10/0x10 [ 141.799734][ T897] ? find_held_lock+0x2c/0x110 [ 141.799738][ T897] netlink_sendmsg+0x723/0xbe0 [ 141.799742][ T897] ? __pfx_netlink_sendmsg+0x10/0x10 [ 141.799748][ T897] ____sys_sendmsg+0x7ac/0xa10 [ 141.799754][ T897] ? __pfx_____sys_sendmsg+0x10/0x10 [ 141.799757][ T897] ? __pfx_copy_msghdr_from_user+0x10/0x10 [ 141.799763][ T897] ___sys_sendmsg+0xee/0x170 [ 141.799767][ T897] ? __pfx____sys_sendmsg+0x10/0x10 [ 141.799771][ T897] ? ___sys_recvmsg+0xe0/0x150 [ 141.799774][ T897] ? __pfx____sys_recvmsg+0x10/0x10 [ 141.799778][ T897] ? do_user_addr_fault+0x8fd/0xe30 [ 141.799783][ T897] ? do_user_addr_fault+0x8fd/0xe30 [ 141.799787][ T897] ? find_held_lock+0x2c/0x110 [ 141.799790][ T897] ? __lock_release+0x103/0x460 [ 141.799795][ T897] __sys_sendmsg+0x109/0x1a0 [ 141.799797][ T897] ? __pfx___sys_sendmsg+0x10/0x10 [ 141.799802][ T897] ? do_user_addr_fault+0x97c/0xe30 [ 141.799807][ T897] do_syscall_64+0xc1/0x1d0 [ 141.799813][ T897] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 141.799818][ T897] RIP: 0033:0x7f7f4782a9a7 [ 141.799823][ T897] Code: 0a 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b9 0f 1f 00 f3 0f 1e fa 64 8b 04 25 18 00 00 00 85 c0 75 10 b8 2e 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 51 c3 48 83 ec 28 89 54 24 1c 48 89 74 24 10 [ 141.799825][ T897] RSP: 002b:00007ffd079aef78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 141.799829][ T897] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f7f4782a9a7 [ 141.799831][ T897] RDX: 0000000000000000 RSI: 00007ffd079aefe0 RDI: 0000000000000005 [ 141.799833][ T897] RBP: 00007ffd079b1518 R08: 0000000000000004 R09: 0000000000000000 [ 141.799835][ T897] R10: 00007f7f47879ac0 R11: 0000000000000246 R12: 00007ffd079b02f0 [ 141.799837][ T897] R13: 0000000067dd3071 R14: 0000000000498600 R15: 0000000000000001 [ 141.799842][ T897]