[ 1502.915815][T19322] [ 1502.915944][T19322] ============================================ [ 1502.916144][T19322] WARNING: possible recursive locking detected [ 1502.916338][T19322] 6.14.0-rc7-virtme #1 Not tainted [ 1502.916490][T19322] -------------------------------------------- [ 1502.916677][T19322] ip/19322 is trying to acquire lock: [ 1502.916827][T19322] ffff888011524a80 (&nh->lock){+...}-{3:3}, at: fib6_purge_rt+0x14a/0x910 [ 1502.917073][T19322] [ 1502.917073][T19322] but task is already holding lock: [ 1502.917299][T19322] ffff8880106ed680 (&nh->lock){+...}-{3:3}, at: fib6_add+0x177/0xb00 [ 1502.917539][T19322] [ 1502.917539][T19322] other info that might help us debug this: [ 1502.917767][T19322] Possible unsafe locking scenario: [ 1502.917767][T19322] [ 1502.917988][T19322] CPU0 [ 1502.918103][T19322] ---- [ 1502.918218][T19322] lock(&nh->lock); [ 1502.918336][T19322] lock(&nh->lock); [ 1502.918451][T19322] [ 1502.918451][T19322] *** DEADLOCK *** [ 1502.918451][T19322] [ 1502.918676][T19322] May be due to missing lock nesting notation [ 1502.918676][T19322] [ 1502.918896][T19322] 3 locks held by ip/19322: [ 1502.919048][T19322] #0: ffffffff9a55b620 (rcu_read_lock){....}-{1:3}, at: ip6_route_add+0x3e/0x250 [ 1502.919325][T19322] #1: ffff88800a70ac30 (&tb->tb6_lock){+.-.}-{3:3}, at: ip6_route_add+0xdb/0x250 [ 1502.919594][T19322] #2: ffff8880106ed680 (&nh->lock){+...}-{3:3}, at: fib6_add+0x177/0xb00 [ 1502.919832][T19322] [ 1502.919832][T19322] stack backtrace: [ 1502.920019][T19322] CPU: 3 UID: 0 PID: 19322 Comm: ip Not tainted 6.14.0-rc7-virtme #1 [ 1502.920024][T19322] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 1502.920026][T19322] Call Trace: [ 1502.920027][T19322] [ 1502.920029][T19322] dump_stack_lvl+0x82/0xd0 [ 1502.920035][T19322] print_deadlock_bug+0x2e9/0x410 [ 1502.920042][T19322] validate_chain+0x5bf/0xae0 [ 1502.920048][T19322] ? __pfx_validate_chain+0x10/0x10 [ 1502.920051][T19322] ? hlock_class+0x4e/0x130 [ 1502.920054][T19322] ? mark_lock+0x38/0x3e0 [ 1502.920059][T19322] __lock_acquire+0xb9a/0x1680 [ 1502.920065][T19322] lock_acquire.part.0+0xeb/0x330 [ 1502.920069][T19322] ? fib6_purge_rt+0x14a/0x910 [ 1502.920073][T19322] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 1502.920077][T19322] ? trace_lock_acquire+0x14c/0x1f0 [ 1502.920081][T19322] ? lock_acquire+0x32/0xc0 [ 1502.920084][T19322] ? fib6_purge_rt+0x14a/0x910 [ 1502.920088][T19322] _raw_spin_lock+0x30/0x40 [ 1502.920091][T19322] ? fib6_purge_rt+0x14a/0x910 [ 1502.920094][T19322] fib6_purge_rt+0x14a/0x910 [ 1502.920099][T19322] ? __pfx_fib6_purge_rt+0x10/0x10 [ 1502.920103][T19322] ? nlmsg_notify+0x6e/0x1e0 [ 1502.920108][T19322] fib6_add_rt2node+0x1425/0x2ab0 [ 1502.920115][T19322] ? __pfx_fib6_add_rt2node+0x10/0x10 [ 1502.920118][T19322] ? do_raw_spin_lock+0x131/0x270 [ 1502.920121][T19322] ? lock_acquire+0x32/0xc0 [ 1502.920124][T19322] ? fib6_add+0x177/0xb00 [ 1502.920128][T19322] fib6_add+0x305/0xb00 [ 1502.920133][T19322] ip6_route_add+0xed/0x250 [ 1502.920135][T19322] ? __pfx_inet6_rtm_newroute+0x10/0x10 [ 1502.920138][T19322] inet6_rtm_newroute+0x104/0x110 [ 1502.920141][T19322] ? __pfx_inet6_rtm_newroute+0x10/0x10 [ 1502.920149][T19322] ? rtnetlink_rcv_msg+0x6ef/0xc10 [ 1502.920153][T19322] rtnetlink_rcv_msg+0x712/0xc10 [ 1502.920156][T19322] ? __pfx_rtnetlink_rcv_msg+0x10/0x10 [ 1502.920159][T19322] ? hlock_class+0x4e/0x130 [ 1502.920161][T19322] ? mark_lock+0x38/0x3e0 [ 1502.920166][T19322] ? __lock_acquire+0xb9a/0x1680 [ 1502.920170][T19322] netlink_rcv_skb+0x130/0x360 [ 1502.920173][T19322] ? __pfx_rtnetlink_rcv_msg+0x10/0x10 [ 1502.920176][T19322] ? __pfx_netlink_rcv_skb+0x10/0x10 [ 1502.920183][T19322] ? netlink_deliver_tap+0x13e/0x340 [ 1502.920186][T19322] ? netlink_deliver_tap+0xc3/0x340 [ 1502.920189][T19322] netlink_unicast+0x44b/0x710 [ 1502.920193][T19322] ? __pfx_netlink_unicast+0x10/0x10 [ 1502.920196][T19322] ? find_held_lock+0x2c/0x110 [ 1502.920200][T19322] netlink_sendmsg+0x723/0xbe0 [ 1502.920204][T19322] ? __pfx_netlink_sendmsg+0x10/0x10 [ 1502.920209][T19322] ____sys_sendmsg+0x7ac/0xa10 [ 1502.920215][T19322] ? __pfx_____sys_sendmsg+0x10/0x10 [ 1502.920218][T19322] ? __pfx_copy_msghdr_from_user+0x10/0x10 [ 1502.920225][T19322] ___sys_sendmsg+0xee/0x170 [ 1502.920229][T19322] ? __pfx____sys_sendmsg+0x10/0x10 [ 1502.920233][T19322] ? ___sys_recvmsg+0xe0/0x150 [ 1502.920236][T19322] ? __pfx____sys_recvmsg+0x10/0x10 [ 1502.920239][T19322] ? do_user_addr_fault+0x8fd/0xe30 [ 1502.920243][T19322] ? do_user_addr_fault+0x8fd/0xe30 [ 1502.920248][T19322] ? find_held_lock+0x2c/0x110 [ 1502.920251][T19322] ? __lock_release+0x103/0x460 [ 1502.920255][T19322] __sys_sendmsg+0x109/0x1a0 [ 1502.920258][T19322] ? __pfx___sys_sendmsg+0x10/0x10 [ 1502.920263][T19322] ? do_user_addr_fault+0x97c/0xe30 [ 1502.920267][T19322] do_syscall_64+0xc1/0x1d0 [ 1502.920272][T19322] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 1502.920277][T19322] RIP: 0033:0x7f0c983759a7 [ 1502.920280][T19322] 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 [ 1502.920283][T19322] RSP: 002b:00007ffe1b387e38 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 1502.920287][T19322] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f0c983759a7 [ 1502.920289][T19322] RDX: 0000000000000000 RSI: 00007ffe1b387ea0 RDI: 0000000000000005 [ 1502.920290][T19322] RBP: 00007ffe1b38a3d8 R08: 0000000000000004 R09: 0000000000000000 [ 1502.920292][T19322] R10: 00007f0c983c4ac0 R11: 0000000000000246 R12: 00007ffe1b3891b0 [ 1502.920294][T19322] R13: 0000000067dd3412 R14: 0000000000498600 R15: 0000000000000001 [ 1502.920299][T19322]