[ 1494.611519][T18720] [ 1494.611637][T18720] ============================================ [ 1494.611840][T18720] WARNING: possible recursive locking detected [ 1494.612017][T18720] 6.14.0-rc7-virtme #1 Not tainted [ 1494.612170][T18720] -------------------------------------------- [ 1494.612345][T18720] ip/18720 is trying to acquire lock: [ 1494.612490][T18720] ffff88800a439980 (&nh->lock){+...}-{3:3}, at: fib6_purge_rt+0x14a/0x910 [ 1494.612719][T18720] [ 1494.612719][T18720] but task is already holding lock: [ 1494.612932][T18720] ffff88800a438180 (&nh->lock){+...}-{3:3}, at: fib6_add+0x177/0xb00 [ 1494.613149][T18720] [ 1494.613149][T18720] other info that might help us debug this: [ 1494.613350][T18720] Possible unsafe locking scenario: [ 1494.613350][T18720] [ 1494.613555][T18720] CPU0 [ 1494.613661][T18720] ---- [ 1494.613764][T18720] lock(&nh->lock); [ 1494.613869][T18720] lock(&nh->lock); [ 1494.613975][T18720] [ 1494.613975][T18720] *** DEADLOCK *** [ 1494.613975][T18720] [ 1494.614177][T18720] May be due to missing lock nesting notation [ 1494.614177][T18720] [ 1494.614393][T18720] 3 locks held by ip/18720: [ 1494.614550][T18720] #0: ffffffffba15b620 (rcu_read_lock){....}-{1:3}, at: ip6_route_add+0x3e/0x250 [ 1494.614800][T18720] #1: ffff888006227430 (&tb->tb6_lock){+.-.}-{3:3}, at: ip6_route_add+0xdb/0x250 [ 1494.615047][T18720] #2: ffff88800a438180 (&nh->lock){+...}-{3:3}, at: fib6_add+0x177/0xb00 [ 1494.615270][T18720] [ 1494.615270][T18720] stack backtrace: [ 1494.615443][T18720] CPU: 0 UID: 0 PID: 18720 Comm: ip Not tainted 6.14.0-rc7-virtme #1 [ 1494.615447][T18720] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 1494.615450][T18720] Call Trace: [ 1494.615452][T18720] [ 1494.615454][T18720] dump_stack_lvl+0x82/0xd0 [ 1494.615462][T18720] print_deadlock_bug+0x2e9/0x410 [ 1494.615470][T18720] validate_chain+0x5bf/0xae0 [ 1494.615476][T18720] ? __pfx_validate_chain+0x10/0x10 [ 1494.615480][T18720] ? hlock_class+0x4e/0x130 [ 1494.615483][T18720] ? mark_lock+0x38/0x3e0 [ 1494.615488][T18720] __lock_acquire+0xb9a/0x1680 [ 1494.615494][T18720] lock_acquire.part.0+0xeb/0x330 [ 1494.615498][T18720] ? fib6_purge_rt+0x14a/0x910 [ 1494.615502][T18720] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 1494.615506][T18720] ? trace_lock_acquire+0x14c/0x1f0 [ 1494.615509][T18720] ? lock_acquire+0x32/0xc0 [ 1494.615512][T18720] ? fib6_purge_rt+0x14a/0x910 [ 1494.615516][T18720] _raw_spin_lock+0x30/0x40 [ 1494.615520][T18720] ? fib6_purge_rt+0x14a/0x910 [ 1494.615523][T18720] fib6_purge_rt+0x14a/0x910 [ 1494.615527][T18720] ? __pfx_fib6_purge_rt+0x10/0x10 [ 1494.615531][T18720] ? nlmsg_notify+0x6e/0x1e0 [ 1494.615538][T18720] fib6_add_rt2node+0x1425/0x2ab0 [ 1494.615544][T18720] ? __pfx_fib6_add_rt2node+0x10/0x10 [ 1494.615547][T18720] ? do_raw_spin_lock+0x131/0x270 [ 1494.615551][T18720] ? lock_acquire+0x32/0xc0 [ 1494.615554][T18720] ? fib6_add+0x177/0xb00 [ 1494.615558][T18720] fib6_add+0x305/0xb00 [ 1494.615562][T18720] ip6_route_add+0xed/0x250 [ 1494.615565][T18720] ? __pfx_inet6_rtm_newroute+0x10/0x10 [ 1494.615568][T18720] inet6_rtm_newroute+0x104/0x110 [ 1494.615570][T18720] ? __pfx_inet6_rtm_newroute+0x10/0x10 [ 1494.615578][T18720] ? rtnetlink_rcv_msg+0x6ef/0xc10 [ 1494.615583][T18720] rtnetlink_rcv_msg+0x712/0xc10 [ 1494.615587][T18720] ? __pfx_rtnetlink_rcv_msg+0x10/0x10 [ 1494.615589][T18720] ? hlock_class+0x4e/0x130 [ 1494.615591][T18720] ? mark_lock+0x38/0x3e0 [ 1494.615596][T18720] ? __lock_acquire+0xb9a/0x1680 [ 1494.615600][T18720] netlink_rcv_skb+0x130/0x360 [ 1494.615603][T18720] ? __pfx_rtnetlink_rcv_msg+0x10/0x10 [ 1494.615606][T18720] ? __pfx_netlink_rcv_skb+0x10/0x10 [ 1494.615613][T18720] ? netlink_deliver_tap+0x13e/0x340 [ 1494.615616][T18720] ? netlink_deliver_tap+0xc3/0x340 [ 1494.615620][T18720] netlink_unicast+0x44b/0x710 [ 1494.615623][T18720] ? __pfx_netlink_unicast+0x10/0x10 [ 1494.615627][T18720] ? find_held_lock+0x2c/0x110 [ 1494.615631][T18720] netlink_sendmsg+0x723/0xbe0 [ 1494.615635][T18720] ? __pfx_netlink_sendmsg+0x10/0x10 [ 1494.615641][T18720] ____sys_sendmsg+0x7ac/0xa10 [ 1494.615649][T18720] ? __pfx_____sys_sendmsg+0x10/0x10 [ 1494.615652][T18720] ? __pfx_copy_msghdr_from_user+0x10/0x10 [ 1494.615658][T18720] ___sys_sendmsg+0xee/0x170 [ 1494.615662][T18720] ? __pfx____sys_sendmsg+0x10/0x10 [ 1494.615666][T18720] ? ___sys_recvmsg+0xe0/0x150 [ 1494.615669][T18720] ? __pfx____sys_recvmsg+0x10/0x10 [ 1494.615673][T18720] ? do_user_addr_fault+0x8fd/0xe30 [ 1494.615677][T18720] ? do_user_addr_fault+0x8fd/0xe30 [ 1494.615681][T18720] ? find_held_lock+0x2c/0x110 [ 1494.615684][T18720] ? __lock_release+0x103/0x460 [ 1494.615689][T18720] __sys_sendmsg+0x109/0x1a0 [ 1494.615691][T18720] ? __pfx___sys_sendmsg+0x10/0x10 [ 1494.615696][T18720] ? do_user_addr_fault+0x97c/0xe30 [ 1494.615701][T18720] do_syscall_64+0xc1/0x1d0 [ 1494.615705][T18720] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 1494.615710][T18720] RIP: 0033:0x7fb23daf99a7 [ 1494.615715][T18720] 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 [ 1494.615717][T18720] RSP: 002b:00007fff19aa9ea8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 1494.615721][T18720] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fb23daf99a7 [ 1494.615723][T18720] RDX: 0000000000000000 RSI: 00007fff19aa9f10 RDI: 0000000000000005 [ 1494.615725][T18720] RBP: 00007fff19aac448 R08: 0000000000000004 R09: 0000000000000000 [ 1494.615727][T18720] R10: 00007fb23db48ac0 R11: 0000000000000246 R12: 00007fff19aab220 [ 1494.615728][T18720] R13: 0000000067dd5d46 R14: 0000000000498600 R15: 0000000000000001 [ 1494.615734][T18720]