[ 10.963465][ T249] ip (249) used greatest stack depth: 23792 bytes left [ 12.303839][ T278] 8021q: 802.1Q VLAN Support v1.8 [ 28.625621][ T445] [ 28.625773][ T445] ============================================ [ 28.625980][ T445] WARNING: possible recursive locking detected [ 28.626190][ T445] 6.13.0-rc5-virtme #1 Not tainted [ 28.626357][ T445] -------------------------------------------- [ 28.626565][ T445] ip/445 is trying to acquire lock: [ 28.626728][ T445] ffffffff9f7d6630 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 28.627073][ T445] [ 28.627073][ T445] but task is already holding lock: [ 28.627323][ T445] ffffffff9f7d6630 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 28.627647][ T445] [ 28.627647][ T445] other info that might help us debug this: [ 28.627889][ T445] Possible unsafe locking scenario: [ 28.627889][ T445] [ 28.628135][ T445] CPU0 [ 28.628271][ T445] ---- [ 28.628394][ T445] lock((netdev_chain).rwsem); [ 28.628560][ T445] lock((netdev_chain).rwsem); [ 28.628729][ T445] [ 28.628729][ T445] *** DEADLOCK *** [ 28.628729][ T445] [ 28.628975][ T445] May be due to missing lock nesting notation [ 28.628975][ T445] [ 28.629226][ T445] 2 locks held by ip/445: [ 28.629354][ T445] #0: ffffffff9f7e7a48 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0x653/0xa70 [ 28.629665][ T445] #1: ffffffff9f7d6630 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 28.630000][ T445] [ 28.630000][ T445] stack backtrace: [ 28.630209][ T445] CPU: 3 UID: 0 PID: 445 Comm: ip Not tainted 6.13.0-rc5-virtme #1 [ 28.630460][ T445] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 28.630676][ T445] Call Trace: [ 28.630806][ T445] [ 28.630892][ T445] dump_stack_lvl+0x82/0xd0 [ 28.631062][ T445] print_deadlock_bug+0x40a/0x650 [ 28.631244][ T445] validate_chain+0x5bf/0xae0 [ 28.631410][ T445] ? __pfx_validate_chain+0x10/0x10 [ 28.631579][ T445] ? hlock_class+0x4e/0x130 [ 28.631745][ T445] ? mark_lock+0x38/0x3e0 [ 28.631871][ T445] __lock_acquire+0xb9a/0x1680 [ 28.632039][ T445] ? validate_chain+0x1f1/0xae0 [ 28.632223][ T445] lock_acquire.part.0+0xeb/0x330 [ 28.632391][ T445] ? blocking_notifier_call_chain+0x50/0x90 [ 28.632601][ T445] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 28.632766][ T445] ? trace_lock_acquire+0x14c/0x1f0 [ 28.632928][ T445] ? lock_acquire+0x32/0xc0 [ 28.633097][ T445] ? blocking_notifier_call_chain+0x50/0x90 [ 28.633310][ T445] down_read+0x9f/0x340 [ 28.633437][ T445] ? blocking_notifier_call_chain+0x50/0x90 [ 28.633643][ T445] ? __pfx_down_read+0x10/0x10 [ 28.633805][ T445] blocking_notifier_call_chain+0x50/0x90 [ 28.633972][ T445] dev_set_mtu_ext+0x18c/0x510 [ 28.634143][ T445] ? find_held_lock+0x2c/0x110 [ 28.634312][ T445] ? __pfx_dev_set_mtu_ext+0x10/0x10 [ 28.634479][ T445] ? __lock_release+0x103/0x460 [ 28.634646][ T445] ? __pfx___lock_release+0x10/0x10 [ 28.634818][ T445] ? mark_lock+0x38/0x3e0 [ 28.634948][ T445] ? mark_held_locks+0x9e/0xe0 [ 28.635120][ T445] dev_set_mtu+0xa1/0x130 [ 28.635256][ T445] ? __pfx_dev_set_mtu+0x10/0x10 [ 28.635423][ T445] ? __timer_delete_sync+0xa7/0x110 [ 28.635588][ T445] vlan_device_event+0xac1/0x2130 [8021q] [ 28.635759][ T445] ? __pfx_vlan_device_event+0x10/0x10 [8021q] [ 28.635966][ T445] ? packet_notifier+0x3b0/0x810 [ 28.636147][ T445] notifier_call_chain+0xcd/0x150 [ 28.636320][ T445] blocking_notifier_call_chain+0x66/0x90 [ 28.636484][ T445] dev_set_mtu_ext+0x2b6/0x510 [ 28.636660][ T445] ? __pfx_dev_set_mtu_ext+0x10/0x10 [ 28.636819][ T445] ? __pfx_stack_trace_consume_entry+0x10/0x10 [ 28.637015][ T445] ? __pfx_validate_chain+0x10/0x10 [ 28.637187][ T445] ? mark_lock+0x38/0x3e0 [ 28.637317][ T445] do_setlink.constprop.0+0x4b3/0x2300 [ 28.637481][ T445] ? __pfx_do_setlink.constprop.0+0x10/0x10 [ 28.637683][ T445] ? lock_acquire.part.0+0xeb/0x330 [ 28.637846][ T445] ? rtnl_newlink+0x653/0xa70 [ 28.638008][ T445] ? rtnl_newlink+0xb9/0xa70 [ 28.638179][ T445] ? rtnetlink_rcv_msg+0x712/0xc10 [ 28.638343][ T445] ? __mutex_trylock_common+0xfa/0x260 [ 28.638513][ T445] ? __pfx___mutex_trylock_common+0x10/0x10 [ 28.638717][ T445] ? lock_acquire+0x32/0xc0 [ 28.638879][ T445] ? trace_contention_end+0xef/0x150 [ 28.639042][ T445] ? __mutex_lock+0x190/0xbc0 [ 28.639215][ T445] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 28.639386][ T445] ? rtnl_newlink+0x653/0xa70 [ 28.639548][ T445] ? __pfx___mutex_lock+0x10/0x10 [ 28.639722][ T445] ? __rtnl_newlink+0x3f2/0xa80 [ 28.639887][ T445] rtnl_newlink+0x69c/0xa70 [ 28.640054][ T445] ? __pfx_rtnl_newlink+0x10/0x10 [ 28.640237][ T445] ? find_held_lock+0x2c/0x110 [ 28.640402][ T445] ? __pfx___lock_release+0x10/0x10 [ 28.640564][ T445] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 28.640727][ T445] ? rtnetlink_rcv_msg+0x6ef/0xc10 [ 28.640895][ T445] ? __pfx_rtnl_newlink+0x10/0x10 [ 28.641059][ T445] rtnetlink_rcv_msg+0x712/0xc10 [ 28.641236][ T445] ? __pfx_rtnetlink_rcv_msg+0x10/0x10 [ 28.641400][ T445] ? hlock_class+0x4e/0x130 [ 28.641558][ T445] ? mark_lock+0x38/0x3e0 [ 28.641682][ T445] ? __lock_acquire+0xb9a/0x1680 [ 28.641846][ T445] netlink_rcv_skb+0x130/0x360 [ 28.642009][ T445] ? __pfx_rtnetlink_rcv_msg+0x10/0x10 [ 28.642184][ T445] ? __pfx_netlink_rcv_skb+0x10/0x10 [ 28.642349][ T445] ? netlink_deliver_tap+0x13e/0x340 [ 28.642513][ T445] ? netlink_deliver_tap+0xc3/0x340 [ 28.642678][ T445] netlink_unicast+0x44b/0x710 [ 28.642838][ T445] ? __pfx_netlink_unicast+0x10/0x10 [ 28.642999][ T445] ? find_held_lock+0x2c/0x110 [ 28.643170][ T445] netlink_sendmsg+0x723/0xbe0 [ 28.643339][ T445] ? __pfx_netlink_sendmsg+0x10/0x10 [ 28.643502][ T445] ____sys_sendmsg+0x7ac/0xa10 [ 28.643666][ T445] ? __pfx_____sys_sendmsg+0x10/0x10 [ 28.643826][ T445] ? __pfx_copy_msghdr_from_user+0x10/0x10 [ 28.644034][ T445] ___sys_sendmsg+0xee/0x170 [ 28.644208][ T445] ? __pfx____sys_sendmsg+0x10/0x10 [ 28.644370][ T445] ? kasan_save_stack+0x34/0x50 [ 28.644538][ T445] ? kasan_save_stack+0x24/0x50 [ 28.644698][ T445] ? __kasan_record_aux_stack+0x8e/0xa0 [ 28.644862][ T445] ? __call_rcu_common.constprop.0+0xa1/0x4b0 [ 28.645064][ T445] ? __x64_sys_close+0x7c/0xd0 [ 28.645231][ T445] ? do_syscall_64+0xc1/0x1d0 [ 28.645394][ T445] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 28.645598][ T445] ? __lock_acquire+0xb9a/0x1680 [ 28.645773][ T445] ? find_held_lock+0x2c/0x110 [ 28.645935][ T445] ? __lock_release+0x103/0x460 [ 28.646098][ T445] ? __virt_addr_valid+0x22b/0x430 [ 28.646268][ T445] ? __pfx___lock_release+0x10/0x10 [ 28.646432][ T445] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 28.646600][ T445] __sys_sendmsg+0x109/0x1a0 [ 28.646751][ T445] ? __pfx___sys_sendmsg+0x10/0x10 [ 28.646907][ T445] ? __pfx_slab_free_after_rcu_debug+0x10/0x10 [ 28.647100][ T445] do_syscall_64+0xc1/0x1d0 [ 28.647258][ T445] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 28.647444][ T445] RIP: 0033:0x7fdf8ee899a7 [ 28.647601][ T445] 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 [ 28.648127][ T445] RSP: 002b:00007fff21cfb968 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 28.648360][ T445] RAX: ffffffffffffffda RBX: 00007fff21cfc090 RCX: 00007fdf8ee899a7 [ 28.648585][ T445] RDX: 0000000000000000 RSI: 00007fff21cfb9d0 RDI: 0000000000000005 [ 28.648813][ T445] RBP: 0000000000000004 R08: 0000000000000003 R09: 0000000000000078 [ 28.649044][ T445] R10: 00007fdf8ed47ef8 R11: 0000000000000246 R12: 0000000000000004 [ 28.649282][ T445] R13: 0000000067792be7 R14: 0000000000498600 R15: 0000000000000000 [ 28.649524][ T445] [ 28.670953][ T445] ip (445) used greatest stack depth: 23616 bytes left