[ 857.200399][ T9639] bond0: (slave eth0): making interface the new active one
[ 857.206683][ T9639] bond0: (slave eth0): Enslaving as an active interface with an up link
[ 857.309412][ T9640] bond0: (slave eth1): Enslaving as a backup interface with an up link
[ 857.492019][ T9642] Initializing XFRM netlink socket
[ 858.537529][ T9644] bond_xfrm_update_stats: eth0 doesn't support xdo_dev_state_update_stats
[ 858.672687][ T9660] bond_xfrm_update_stats: eth0 doesn't support xdo_dev_state_update_stats
[ 858.798427][ T9662] bond_xfrm_update_stats: eth0 doesn't support xdo_dev_state_update_stats
[ 858.799266][ T9662] bond_xfrm_update_stats: eth0 doesn't support xdo_dev_state_update_stats
[ 859.053069][ T9665] bond_xfrm_update_stats: eth0 doesn't support xdo_dev_state_update_stats
[ 859.065645][ T9665] bond_xfrm_update_stats: eth0 doesn't support xdo_dev_state_update_stats
[ 859.076540][ T9665] bond_xfrm_update_stats: eth0 doesn't support xdo_dev_state_update_stats
[ 859.537277][ C2] bond_xfrm_update_stats: eth0 doesn't support xdo_dev_state_update_stats
[ 859.672652][ C3] bond_xfrm_update_stats: eth0 doesn't support xdo_dev_state_update_stats
[ 860.467189][ T8677] bond0: (slave eth0): link status definitely down, disabling slave
[ 860.467664][ T8677] bond0: (slave eth1): making interface the new active one
[ 860.831042][ T9677] bond_xfrm_update_stats: eth1 doesn't support xdo_dev_state_update_stats
[ 862.195271][ T9683] BUG: sleeping function called from invalid context at kernel/locking/mutex.c:562
[ 862.195880][ T9683] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 9683, name: ip
[ 862.196189][ T9683] preempt_count: 201, expected: 0
[ 862.196396][ T9683] RCU nest depth: 0, expected: 0
[ 862.196591][ T9683] 2 locks held by ip/9683:
[ 862.196818][ T9683] #0: ffff88800a829558 (&net->xfrm.xfrm_cfg_mutex){+.+.}-{4:4}, at: xfrm_netlink_rcv+0x65/0x90 [xfrm_user]
[ 862.197264][ T9683] #1: ffff88800f460548 (&x->lock){+.-.}-{3:3}, at: xfrm_state_flush+0x1b3/0x3a0
[ 862.197629][ T9683] CPU: 3 UID: 0 PID: 9683 Comm: ip Not tainted 6.13.0-rc1-virtme #1
[ 862.197967][ T9683] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
[ 862.198204][ T9683] Call Trace:
[ 862.198352][ T9683]
[ 862.198458][ T9683] dump_stack_lvl+0xb0/0xd0
[ 862.198659][ T9683] __might_resched+0x2f8/0x530
[ 862.198852][ T9683] ? kfree+0x2d/0x330
[ 862.199005][ T9683] __mutex_lock+0xd9/0xbc0
[ 862.199202][ T9683] ? ref_tracker_free+0x35e/0x910
[ 862.199401][ T9683] ? bond_ipsec_del_sa+0x2c1/0x790
[ 862.199937][ T9683] ? find_held_lock+0x2c/0x110
[ 862.200133][ T9683] ? __pfx___mutex_lock+0x10/0x10
[ 862.200329][ T9683] ? bond_ipsec_del_sa+0x280/0x790
[ 862.200519][ T9683] ? xfrm_dev_state_delete+0x97/0x170
[ 862.200711][ T9683] ? __xfrm_state_delete+0x681/0x8e0
[ 862.200907][ T9683] ? xfrm_user_rcv_msg+0x4f8/0x920 [xfrm_user]
[ 862.201151][ T9683] ? netlink_rcv_skb+0x130/0x360
[ 862.201347][ T9683] ? xfrm_netlink_rcv+0x74/0x90 [xfrm_user]
[ 862.201587][ T9683] ? netlink_unicast+0x44b/0x710
[ 862.201780][ T9683] ? netlink_sendmsg+0x723/0xbe0
[ 862.201973][ T9683] ? ____sys_sendmsg+0x7ac/0xa10
[ 862.202164][ T9683] ? ___sys_sendmsg+0xee/0x170
[ 862.202355][ T9683] ? __sys_sendmsg+0x109/0x1a0
[ 862.202546][ T9683] ? do_syscall_64+0xc1/0x1d0
[ 862.202738][ T9683] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 862.202986][ T9683] ? __pfx_nsim_ipsec_del_sa+0x10/0x10 [netdevsim]
[ 862.203251][ T9683] ? bond_ipsec_del_sa+0x2c1/0x790
[ 862.203457][ T9683] bond_ipsec_del_sa+0x2c1/0x790
[ 862.203648][ T9683] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 862.203845][ T9683] ? __pfx_bond_ipsec_del_sa+0x10/0x10
[ 862.204034][ T9683] ? do_raw_spin_lock+0x131/0x270
[ 862.204225][ T9683] ? __pfx_do_raw_spin_lock+0x10/0x10
[ 862.204468][ T9683] xfrm_dev_state_delete+0x97/0x170
[ 862.204665][ T9683] __xfrm_state_delete+0x681/0x8e0
[ 862.204858][ T9683] xfrm_state_flush+0x1bb/0x3a0
[ 862.205057][ T9683] xfrm_flush_sa+0xf0/0x270 [xfrm_user]
[ 862.205290][ T9683] ? __pfx_xfrm_flush_sa+0x10/0x10 [xfrm_user]
[ 862.205537][ T9683] ? __nla_validate_parse+0x48/0x3d0
[ 862.205744][ T9683] xfrm_user_rcv_msg+0x4f8/0x920 [xfrm_user]
[ 862.205985][ T9683] ? __pfx___lock_release+0x10/0x10
[ 862.206174][ T9683] ? __pfx_xfrm_user_rcv_msg+0x10/0x10 [xfrm_user]
[ 862.206412][ T9683] ? __pfx_validate_chain+0x10/0x10
[ 862.206614][ T9683] ? hlock_class+0x4e/0x130
[ 862.206807][ T9683] ? mark_lock+0x38/0x3e0
[ 862.206986][ T9683] ? __mutex_trylock_common+0xfa/0x260
[ 862.207181][ T9683] ? __pfx___mutex_trylock_common+0x10/0x10
[ 862.207425][ T9683] netlink_rcv_skb+0x130/0x360
[ 862.207615][ T9683] ? __pfx_xfrm_user_rcv_msg+0x10/0x10 [xfrm_user]
[ 862.207857][ T9683] ? __pfx_netlink_rcv_skb+0x10/0x10
[ 862.208061][ T9683] ? __netlink_lookup+0x123/0x220
[ 862.208265][ T9683] xfrm_netlink_rcv+0x74/0x90 [xfrm_user]
[ 862.208462][ T9683] netlink_unicast+0x44b/0x710
[ 862.208659][ T9683] ? __pfx_netlink_unicast+0x10/0x10
[ 862.208852][ T9683] ? find_held_lock+0x2c/0x110
[ 862.209050][ T9683] netlink_sendmsg+0x723/0xbe0
[ 862.209246][ T9683] ? __pfx_netlink_sendmsg+0x10/0x10
[ 862.209458][ T9683] ____sys_sendmsg+0x7ac/0xa10
[ 862.209649][ T9683] ? __pfx_____sys_sendmsg+0x10/0x10
[ 862.209842][ T9683] ? __pfx_copy_msghdr_from_user+0x10/0x10
[ 862.210076][ T9683] ? hlock_class+0x4e/0x130
[ 862.210274][ T9683] ? __lock_acquire+0xb9a/0x1680
[ 862.210465][ T9683] ___sys_sendmsg+0xee/0x170
[ 862.210668][ T9683] ? __pfx____sys_sendmsg+0x10/0x10
[ 862.210871][ T9683] ? __lock_release+0x103/0x460
[ 862.211057][ T9683] ? __might_fault+0x11b/0x170
[ 862.211248][ T9683] ? __pfx___lock_release+0x10/0x10
[ 862.211437][ T9683] ? trace_lock_acquire+0x14c/0x1f0
[ 862.211633][ T9683] ? __might_fault+0xc3/0x170
[ 862.211825][ T9683] ? __might_fault+0x11b/0x170
[ 862.212017][ T9683] ? _copy_to_user+0x5c/0x80
[ 862.212217][ T9683] ? move_addr_to_user+0x56/0x90
[ 862.212415][ T9683] __sys_sendmsg+0x109/0x1a0
[ 862.212603][ T9683] ? __pfx___sys_sendmsg+0x10/0x10
[ 862.212814][ T9683] do_syscall_64+0xc1/0x1d0
[ 862.213010][ T9683] entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 862.213245][ T9683] RIP: 0033:0x7f27528f39a7
[ 862.213449][ T9683] 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
[ 862.214138][ T9683] RSP: 002b:00007ffca61078a8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
[ 862.214429][ T9683] RAX: ffffffffffffffda RBX: 00007ffca6107c78 RCX: 00007f27528f39a7
[ 862.214720][ T9683] RDX: 0000000000000000 RSI: 00007ffca6107910 RDI: 0000000000000006
[ 862.215010][ T9683] RBP: 0000000000000000 R08: 0000000000000004 R09: 00007ffca6104990
[ 862.215296][ T9683] R10: 00007f27527ac708 R11: 0000000000000246 R12: 00007ffca6107c60
[ 862.215581][ T9683] R13: 00000000675ad6a6 R14: 00007ffca6107a00 R15: 0000000000000000
[ 862.215882][ T9683]
[ 862.216057][ T9683]
[ 862.216140][ T9683] =============================
[ 862.216299][ T9683] [ BUG: Invalid wait context ]
[ 862.216460][ T9683] 6.13.0-rc1-virtme #1 Tainted: G W
[ 862.216659][ T9683] -----------------------------
[ 862.216813][ T9683] ip/9683 is trying to lock:
[ 862.216967][ T9683] ffff88800ba0b5a0 (&bond->ipsec_lock){+.+.}-{4:4}, at: bond_ipsec_del_sa+0x2c1/0x790
[ 862.217244][ T9683] other info that might help us debug this:
[ 862.217444][ T9683] context-{5:5}
[ 862.217563][ T9683] 2 locks held by ip/9683:
[ 862.217721][ T9683] #0: ffff88800a829558 (&net->xfrm.xfrm_cfg_mutex){+.+.}-{4:4}, at: xfrm_netlink_rcv+0x65/0x90 [xfrm_user]
[ 862.218081][ T9683] #1: ffff88800f460548 (&x->lock){+.-.}-{3:3}, at: xfrm_state_flush+0x1b3/0x3a0
[ 862.218353][ T9683] stack backtrace:
[ 862.218472][ T9683] CPU: 3 UID: 0 PID: 9683 Comm: ip Tainted: G W 6.13.0-rc1-virtme #1
[ 862.218762][ T9683] Tainted: [W]=WARN
[ 862.218892][ T9683] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
[ 862.219103][ T9683] Call Trace:
[ 862.219232][ T9683]
[ 862.219319][ T9683] dump_stack_lvl+0x82/0xd0
[ 862.219494][ T9683] __lock_acquire+0x819/0x1680
[ 862.219667][ T9683] ? mark_held_locks+0x9e/0xe0
[ 862.219850][ T9683] lock_acquire.part.0+0xeb/0x330
[ 862.220021][ T9683] ? bond_ipsec_del_sa+0x2c1/0x790
[ 862.220193][ T9683] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 862.220362][ T9683] ? trace_lock_acquire+0x14c/0x1f0
[ 862.220531][ T9683] ? dump_stack_lvl+0xba/0xd0
[ 862.220702][ T9683] ? lock_acquire+0x32/0xc0
[ 862.220870][ T9683] ? bond_ipsec_del_sa+0x2c1/0x790
[ 862.221044][ T9683] __mutex_lock+0x169/0xbc0
[ 862.221216][ T9683] ? bond_ipsec_del_sa+0x2c1/0x790
[ 862.221385][ T9683] ? ref_tracker_free+0x35e/0x910
[ 862.221557][ T9683] ? bond_ipsec_del_sa+0x2c1/0x790
[ 862.221726][ T9683] ? find_held_lock+0x2c/0x110
[ 862.221898][ T9683] ? __pfx___mutex_lock+0x10/0x10
[ 862.222068][ T9683] ? bond_ipsec_del_sa+0x280/0x790
[ 862.222243][ T9683] ? xfrm_dev_state_delete+0x97/0x170
[ 862.222414][ T9683] ? __xfrm_state_delete+0x681/0x8e0
[ 862.222587][ T9683] ? xfrm_user_rcv_msg+0x4f8/0x920 [xfrm_user]
[ 862.222800][ T9683] ? netlink_rcv_skb+0x130/0x360
[ 862.222970][ T9683] ? xfrm_netlink_rcv+0x74/0x90 [xfrm_user]
[ 862.223206][ T9683] ? netlink_unicast+0x44b/0x710
[ 862.223375][ T9683] ? netlink_sendmsg+0x723/0xbe0
[ 862.223548][ T9683] ? ____sys_sendmsg+0x7ac/0xa10
[ 862.223719][ T9683] ? ___sys_sendmsg+0xee/0x170
[ 862.223888][ T9683] ? __sys_sendmsg+0x109/0x1a0
[ 862.224058][ T9683] ? do_syscall_64+0xc1/0x1d0
[ 862.224233][ T9683] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 862.224447][ T9683] ? __pfx_nsim_ipsec_del_sa+0x10/0x10 [netdevsim]
[ 862.224674][ T9683] ? bond_ipsec_del_sa+0x2c1/0x790
[ 862.224850][ T9683] bond_ipsec_del_sa+0x2c1/0x790
[ 862.225019][ T9683] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 862.225189][ T9683] ? __pfx_bond_ipsec_del_sa+0x10/0x10
[ 862.225359][ T9683] ? do_raw_spin_lock+0x131/0x270
[ 862.225530][ T9683] ? __pfx_do_raw_spin_lock+0x10/0x10
[ 862.225702][ T9683] xfrm_dev_state_delete+0x97/0x170
[ 862.225870][ T9683] __xfrm_state_delete+0x681/0x8e0
[ 862.226048][ T9683] xfrm_state_flush+0x1bb/0x3a0
[ 862.226221][ T9683] xfrm_flush_sa+0xf0/0x270 [xfrm_user]
[ 862.226394][ T9683] ? __pfx_xfrm_flush_sa+0x10/0x10 [xfrm_user]
[ 862.226618][ T9683] ? __nla_validate_parse+0x48/0x3d0
[ 862.226792][ T9683] xfrm_user_rcv_msg+0x4f8/0x920 [xfrm_user]
[ 862.227002][ T9683] ? __pfx___lock_release+0x10/0x10
[ 862.227172][ T9683] ? __pfx_xfrm_user_rcv_msg+0x10/0x10 [xfrm_user]
[ 862.227385][ T9683] ? __pfx_validate_chain+0x10/0x10
[ 862.227551][ T9683] ? hlock_class+0x4e/0x130
[ 862.227720][ T9683] ? mark_lock+0x38/0x3e0
[ 862.227855][ T9683] ? __mutex_trylock_common+0xfa/0x260
[ 862.228026][ T9683] ? __pfx___mutex_trylock_common+0x10/0x10
[ 862.228238][ T9683] netlink_rcv_skb+0x130/0x360
[ 862.228410][ T9683] ? __pfx_xfrm_user_rcv_msg+0x10/0x10 [xfrm_user]
[ 862.228623][ T9683] ? __pfx_netlink_rcv_skb+0x10/0x10
[ 862.228794][ T9683] ? __netlink_lookup+0x123/0x220
[ 862.228962][ T9683] xfrm_netlink_rcv+0x74/0x90 [xfrm_user]
[ 862.229133][ T9683] netlink_unicast+0x44b/0x710
[ 862.229302][ T9683] ? __pfx_netlink_unicast+0x10/0x10
[ 862.229473][ T9683] ? find_held_lock+0x2c/0x110
[ 862.229646][ T9683] netlink_sendmsg+0x723/0xbe0
[ 862.229813][ T9683] ? __pfx_netlink_sendmsg+0x10/0x10
[ 862.229986][ T9683] ____sys_sendmsg+0x7ac/0xa10
[ 862.230153][ T9683] ? __pfx_____sys_sendmsg+0x10/0x10
[ 862.230323][ T9683] ? __pfx_copy_msghdr_from_user+0x10/0x10
[ 862.230533][ T9683] ? hlock_class+0x4e/0x130
[ 862.230702][ T9683] ? __lock_acquire+0xb9a/0x1680
[ 862.230872][ T9683] ___sys_sendmsg+0xee/0x170
[ 862.231042][ T9683] ? __pfx____sys_sendmsg+0x10/0x10
[ 862.231213][ T9683] ? __lock_release+0x103/0x460
[ 862.231380][ T9683] ? __might_fault+0x11b/0x170
[ 862.231551][ T9683] ? __pfx___lock_release+0x10/0x10
[ 862.231718][ T9683] ? trace_lock_acquire+0x14c/0x1f0
[ 862.231888][ T9683] ? __might_fault+0xc3/0x170
[ 862.232059][ T9683] ? __might_fault+0x11b/0x170
[ 862.232228][ T9683] ? _copy_to_user+0x5c/0x80
[ 862.232395][ T9683] ? move_addr_to_user+0x56/0x90
[ 862.232564][ T9683] __sys_sendmsg+0x109/0x1a0
[ 862.232730][ T9683] ? __pfx___sys_sendmsg+0x10/0x10
[ 862.232904][ T9683] do_syscall_64+0xc1/0x1d0
[ 862.233073][ T9683] entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 862.233279][ T9683] RIP: 0033:0x7f27528f39a7
[ 862.233484][ T9683] 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
[ 862.234084][ T9683] RSP: 002b:00007ffca61078a8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
[ 862.234343][ T9683] RAX: ffffffffffffffda RBX: 00007ffca6107c78 RCX: 00007f27528f39a7
[ 862.234612][ T9683] RDX: 0000000000000000 RSI: 00007ffca6107910 RDI: 0000000000000006
[ 862.234959][ T9683] RBP: 0000000000000000 R08: 0000000000000004 R09: 00007ffca6104990
[ 862.235214][ T9683] R10: 00007f27527ac708 R11: 0000000000000246 R12: 00007ffca6107c60
[ 862.235470][ T9683] R13: 00000000675ad6a6 R14: 00007ffca6107a00 R15: 0000000000000000
[ 862.235817][ T9683]
[ 862.490699][ T9687] bond0: (slave eth1): Releasing backup interface
[ 862.549651][ T9687] bond0: (slave eth0): Releasing backup interface
[ 863.058502][ T8677] bond0 (unregistering): Released all slaves