[ 11.885377][ T253] bond1: (slave dummy1): making interface the new active one [ 11.886411][ T253] bond1: (slave dummy1): Enslaving as an active interface with an up link [ 11.972332][ T255] bond1: (slave dummy2): Enslaving as a backup interface with an up link [ 12.097763][ T256] dummy1: entered promiscuous mode [ 12.141494][ T256] ip (256) used greatest stack depth: 24304 bytes left [ 12.613473][ T276] dummy1: left promiscuous mode [ 12.630464][ T276] ip (276) used greatest stack depth: 24032 bytes left [ 12.976680][ T277] [ 12.976877][ T277] ============================================ [ 12.977161][ T277] WARNING: possible recursive locking detected [ 12.977442][ T277] 6.13.0-rc5-virtme #1 Not tainted [ 12.977661][ T277] -------------------------------------------- [ 12.977941][ T277] ip/277 is trying to acquire lock: [ 12.978175][ T277] ffffffffbc5f0a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 12.978641][ T277] [ 12.978641][ T277] but task is already holding lock: [ 12.978975][ T277] ffffffffbc5f0a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 12.979418][ T277] [ 12.979418][ T277] other info that might help us debug this: [ 12.979735][ T277] Possible unsafe locking scenario: [ 12.979735][ T277] [ 12.980068][ T277] CPU0 [ 12.980232][ T277] ---- [ 12.980398][ T277] lock((netdev_chain).rwsem); [ 12.980622][ T277] lock((netdev_chain).rwsem); [ 12.980845][ T277] [ 12.980845][ T277] *** DEADLOCK *** [ 12.980845][ T277] [ 12.981177][ T277] May be due to missing lock nesting notation [ 12.981177][ T277] [ 12.981495][ T277] 2 locks held by ip/277: [ 12.981666][ T277] #0: ffffffffbc601dc8 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_dellink+0x228/0xa40 [ 12.982073][ T277] #1: ffffffffbc5f0a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 12.982568][ T277] [ 12.982568][ T277] stack backtrace: [ 12.982847][ T277] CPU: 3 UID: 0 PID: 277 Comm: ip Not tainted 6.13.0-rc5-virtme #1 [ 12.983186][ T277] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.983464][ T277] Call Trace: [ 12.983646][ T277] [ 12.983765][ T277] dump_stack_lvl+0x82/0xd0 [ 12.984002][ T277] print_deadlock_bug+0x40a/0x650 [ 12.984230][ T277] validate_chain+0x5bf/0xae0 [ 12.984447][ T277] ? __pfx_validate_chain+0x10/0x10 [ 12.984661][ T277] ? hlock_class+0x4e/0x130 [ 12.984889][ T277] ? mark_lock+0x38/0x3e0 [ 12.985079][ T277] __lock_acquire+0xb9a/0x1680 [ 12.985321][ T277] lock_acquire.part.0+0xeb/0x330 [ 12.985550][ T277] ? blocking_notifier_call_chain+0x50/0x90 [ 12.985832][ T277] ? __kasan_slab_free+0x38/0x50 [ 12.986060][ T277] ? kmem_cache_free+0xf8/0x330 [ 12.986275][ T277] ? remove_proc_entry+0x18d/0x3e0 [ 12.986503][ T277] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 12.986731][ T277] ? trace_lock_acquire+0x14c/0x1f0 [ 12.986968][ T277] ? lock_acquire+0x32/0xc0 [ 12.987197][ T277] ? blocking_notifier_call_chain+0x50/0x90 [ 12.987481][ T277] down_read+0x9f/0x340 [ 12.987658][ T277] ? blocking_notifier_call_chain+0x50/0x90 [ 12.987933][ T277] ? __pfx_down_read+0x10/0x10 [ 12.988161][ T277] ? __debug_check_no_obj_freed+0x253/0x520 [ 12.988456][ T277] blocking_notifier_call_chain+0x50/0x90 [ 12.988690][ T277] __netdev_upper_dev_unlink+0xd9/0x220 [ 12.988928][ T277] ? mark_held_locks+0x9e/0xe0 [ 12.989157][ T277] ? __pfx___netdev_upper_dev_unlink+0x10/0x10 [ 12.989439][ T277] ? unregister_netdevice_queue+0x70/0x410 [ 12.989725][ T277] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 12.990017][ T277] ? remove_proc_entry+0x18d/0x3e0 [ 12.990233][ T277] netdev_upper_dev_unlink+0x71/0xa0 [ 12.990437][ T277] ? __pfx_netdev_upper_dev_unlink+0x10/0x10 [ 12.990630][ T277] macvlan_device_event+0x51b/0x7e0 [ 12.990802][ T277] ? __pfx_macvlan_device_event+0x10/0x10 [ 12.990952][ T277] ? bond_remove_proc_entry+0x10f/0x1a0 [ 12.991110][ T277] notifier_call_chain+0xcd/0x150 [ 12.991258][ T277] blocking_notifier_call_chain+0x66/0x90 [ 12.991436][ T277] unregister_netdevice_many_notify+0xa7b/0x1580 [ 12.991625][ T277] ? __pfx_unregister_netdevice_many_notify+0x10/0x10 [ 12.991817][ T277] ? rtnl_dellink+0x228/0xa40 [ 12.991964][ T277] ? sock_def_readable+0x11e/0x300 [ 12.992126][ T277] ? __pfx___mutex_lock+0x10/0x10 [ 12.992274][ T277] ? rtnl_is_locked+0x15/0x20 [ 12.992419][ T277] ? unregister_netdevice_queue+0x70/0x410 [ 12.992604][ T277] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 12.992861][ T277] ? __nla_validate_parse+0x48/0x3d0 [ 12.993101][ T277] rtnl_dellink+0x348/0xa40 [ 12.993334][ T277] ? __pfx_rtnl_dellink+0x10/0x10 [ 12.993590][ T277] ? find_held_lock+0x2c/0x110 [ 12.993757][ T277] ? __lock_release+0x103/0x460 [ 12.993906][ T277] ? rtnetlink_rcv_msg+0x6ef/0xc10 [ 12.994056][ T277] ? __pfx___lock_release+0x10/0x10 [ 12.994207][ T277] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 12.994355][ T277] ? rtnetlink_rcv_msg+0x6ef/0xc10 [ 12.994503][ T277] ? __pfx_rtnl_dellink+0x10/0x10 [ 12.994648][ T277] rtnetlink_rcv_msg+0x712/0xc10 [ 12.994809][ T277] ? __pfx_rtnetlink_rcv_msg+0x10/0x10 [ 12.994956][ T277] ? hlock_class+0x4e/0x130 [ 12.995120][ T277] ? mark_lock+0x38/0x3e0 [ 12.995233][ T277] ? __lock_acquire+0xb9a/0x1680 [ 12.995381][ T277] netlink_rcv_skb+0x130/0x360 [ 12.995551][ T277] ? __pfx_rtnetlink_rcv_msg+0x10/0x10 [ 12.995717][ T277] ? __pfx_netlink_rcv_skb+0x10/0x10 [ 12.995870][ T277] ? netlink_deliver_tap+0x13e/0x340 [ 12.996021][ T277] ? netlink_deliver_tap+0xc3/0x340 [ 12.996166][ T277] netlink_unicast+0x44b/0x710 [ 12.996314][ T277] ? __pfx_netlink_unicast+0x10/0x10 [ 12.996468][ T277] ? find_held_lock+0x2c/0x110 [ 12.996617][ T277] netlink_sendmsg+0x723/0xbe0 [ 12.996781][ T277] ? __pfx_netlink_sendmsg+0x10/0x10 [ 12.996941][ T277] ____sys_sendmsg+0x7ac/0xa10 [ 12.997090][ T277] ? __pfx_____sys_sendmsg+0x10/0x10 [ 12.997236][ T277] ? __pfx_copy_msghdr_from_user+0x10/0x10 [ 12.997431][ T277] ___sys_sendmsg+0xee/0x170 [ 12.997578][ T277] ? __pfx____sys_sendmsg+0x10/0x10 [ 12.997764][ T277] ? kasan_save_stack+0x34/0x50 [ 12.997995][ T277] ? kasan_save_stack+0x24/0x50 [ 12.998233][ T277] ? __kasan_record_aux_stack+0x8e/0xa0 [ 12.998473][ T277] ? __call_rcu_common.constprop.0+0xa1/0x4b0 [ 12.998757][ T277] ? __x64_sys_close+0x7c/0xd0 [ 12.998988][ T277] ? do_syscall_64+0xc1/0x1d0 [ 12.999213][ T277] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 12.999500][ T277] ? __lock_acquire+0xb9a/0x1680 [ 12.999727][ T277] ? find_held_lock+0x2c/0x110 [ 12.999879][ T277] ? __lock_release+0x103/0x460 [ 13.000025][ T277] ? __virt_addr_valid+0x22b/0x430 [ 13.000176][ T277] ? __pfx___lock_release+0x10/0x10 [ 13.000321][ T277] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 13.000468][ T277] __sys_sendmsg+0x109/0x1a0 [ 13.000615][ T277] ? __pfx___sys_sendmsg+0x10/0x10 [ 13.000774][ T277] ? __pfx_slab_free_after_rcu_debug+0x10/0x10 [ 13.000974][ T277] do_syscall_64+0xc1/0x1d0 [ 13.001122][ T277] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 13.001305][ T277] RIP: 0033:0x7fd7bd7039a7 [ 13.001460][ T277] 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 [ 13.002060][ T277] RSP: 002b:00007ffd48814528 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 13.002281][ T277] RAX: ffffffffffffffda RBX: 00007ffd48814c50 RCX: 00007fd7bd7039a7 [ 13.002502][ T277] RDX: 0000000000000000 RSI: 00007ffd48814590 RDI: 0000000000000005 [ 13.002736][ T277] RBP: 0000000000000001 R08: 0000000000000003 R09: 0000000000000078 [ 13.002957][ T277] R10: 00007fd7bd5c1ef8 R11: 0000000000000246 R12: 0000000000000001 [ 13.003185][ T277] R13: 00000000677928e2 R14: 0000000000498600 R15: 0000000000000000 [ 13.003414][ T277] [ 13.027835][ T277] bond1 (unregistering): (slave dummy1): Releasing backup interface [ 13.037703][ T277] bond1 (unregistering): (slave dummy2): Releasing backup interface [ 13.056600][ T277] bond1 (unregistering): Released all slaves [ 13.086664][ T277] ip (277) used greatest stack depth: 23872 bytes left [ 14.128261][ T308] bond1: (slave dummy1): Enslaving as a backup interface with an up link [ 14.132580][ T67] bond1: Warning: No 802.3ad response from the link partner for any adapters in the bond [ 14.236825][ T67] bond1: Warning: No 802.3ad response from the link partner for any adapters in the bond [ 14.252518][ T310] bond1: (slave dummy2): Enslaving as a backup interface with an up link [ 14.337438][ T311] dummy1: entered promiscuous mode [ 14.337693][ T311] dummy2: entered promiscuous mode [ 14.708642][ T324] dummy1: left promiscuous mode [ 14.708958][ T324] dummy2: left promiscuous mode [ 14.948760][ T325] bond1 (unregistering): (slave dummy1): Removing an active aggregator [ 14.949006][ T325] bond1: Warning: No 802.3ad response from the link partner for any adapters in the bond [ 14.949485][ T325] bond1 (unregistering): (slave dummy1): Releasing backup interface [ 14.965902][ T325] bond1 (unregistering): (slave dummy2): Removing an active aggregator [ 14.966410][ T325] bond1 (unregistering): (slave dummy2): Releasing backup interface [ 14.984268][ T325] bond1 (unregistering): Released all slaves [ 15.944750][ T353] bond1: (slave dummy1): Enslaving as a backup interface with an up link [ 16.007876][ T67] bond1: Warning: No 802.3ad response from the link partner for any adapters in the bond [ 16.115481][ T67] bond1: Warning: No 802.3ad response from the link partner for any adapters in the bond [ 16.487070][ T367] bond1: (slave dummy1): Removing an active aggregator [ 16.487482][ T367] bond1: (slave dummy1): Releasing backup interface [ 16.954962][ T372] bond1 (unregistering): Released all slaves [ 17.477547][ T389] bond1: (slave dummy1): Enslaving as a backup interface with an up link [ 17.500671][ T67] bond1: Warning: No 802.3ad response from the link partner for any adapters in the bond [ 17.603474][ T67] bond1: Warning: No 802.3ad response from the link partner for any adapters in the bond [ 17.969063][ T402] bond1: (slave dummy1): Removing an active aggregator [ 17.969500][ T402] bond1: (slave dummy1): Releasing backup interface [ 18.402035][ T406] bond1 (unregistering): Released all slaves