[ 10.199742][ T187] team0: Port device dummy0 added [ 10.199810][ T187] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.199812][ T187] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 187, name: ip [ 10.199814][ T187] preempt_count: 1, expected: 0 [ 10.199815][ T187] RCU nest depth: 0, expected: 0 [ 10.199816][ T187] locks held by ip/187: 5, last CPU#2: [ 10.199818][ T187] #0: ffffffffacb22700 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0x9a8/0x11b0 [ 10.199830][ T187] #1: ffffffffac399cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.199836][ T187] #2: ffffffffac399d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.199839][ T187] #3: ffffffffac289660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.199842][ T187] #4: ffffffffac289560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 10.199846][ T187] irq event stamp: 22536 [ 10.199847][ T187] hardirqs last enabled at (22535): [] __down_trylock_console_sem+0x86/0xa0 [ 10.199850][ T187] hardirqs last disabled at (22536): [] console_emit_next_record+0x3f8/0x4f0 [ 10.199852][ T187] softirqs last enabled at (19738): [] handle_softirqs+0x67c/0x900 [ 10.199855][ T187] softirqs last disabled at (19627): [] __irq_exit_rcu+0x145/0x1c0 [ 10.199858][ T187] Preemption disabled at: [ 10.199859][ T187] [] vprintk_emit+0x31b/0x3e0 [ 10.199864][ T187] CPU: 2 UID: 0 PID: 187 Comm: ip Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.199868][ T187] Tainted: [W]=WARN [ 10.199869][ T187] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.199870][ T187] Call Trace: [ 10.199872][ T187] [ 10.199873][ T187] dump_stack_lvl+0x6f/0xa0 [ 10.199879][ T187] ? vprintk_emit+0x31b/0x3e0 [ 10.199881][ T187] __might_resched.cold+0x1fe/0x2c1 [ 10.199885][ T187] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.199889][ T187] ? __kmalloc_noprof+0xdb/0x760 [ 10.199894][ T187] __kmalloc_noprof+0x443/0x760 [ 10.199897][ T187] ? alloc_buf.isra.0+0x4b/0x260 [ 10.199903][ T187] ? do_raw_spin_unlock+0x59/0x250 [ 10.199905][ T187] alloc_buf.isra.0+0x4b/0x260 [ 10.199909][ T187] put_chars+0x1e1/0x2f0 [ 10.199912][ T187] ? __send_to_port+0x420/0x420 [ 10.199916][ T187] ? validate_chain+0x34a/0xc20 [ 10.199921][ T187] hvc_console_print+0x292/0x780 [ 10.199931][ T187] ? __lock_acquire+0x518/0xc20 [ 10.199936][ T187] ? hvc_write+0x3a0/0x3a0 [ 10.199939][ T187] ? rcu_is_watching+0x16/0xd0 [ 10.199945][ T187] console_emit_next_record+0x252/0x4f0 [ 10.199948][ T187] ? devkmsg_read+0x4e0/0x4e0 [ 10.199952][ T187] ? rcu_is_watching+0x16/0xd0 [ 10.199954][ T187] ? lock_acquire+0x13c/0x160 [ 10.199958][ T187] console_flush_one_record+0x46f/0x710 [ 10.199962][ T187] ? console_emit_next_record+0x4f0/0x4f0 [ 10.199963][ T187] ? __lock_acquire+0x518/0xc20 [ 10.199969][ T187] console_unlock+0xee/0x1f0 [ 10.199971][ T187] ? console_flush_one_record+0x710/0x710 [ 10.199973][ T187] ? rcu_is_watching+0x16/0xd0 [ 10.199974][ T187] ? lock_acquire+0x60/0x160 [ 10.199978][ T187] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.199980][ T187] ? vprintk_emit+0x320/0x3e0 [ 10.199983][ T187] vprintk_emit+0x37c/0x3e0 [ 10.199986][ T187] ? wake_up_klogd_work_func+0x90/0x90 [ 10.199989][ T187] ? __nlmsg_put+0x144/0x190 [ 10.199994][ T187] _printk+0xc7/0x100 [ 10.199998][ T187] ? snapshot_read.cold+0x21/0x21 [ 10.200002][ T187] ? netdev_name+0x43/0x60 [ 10.200005][ T187] ? __netdev_printk+0x17f/0x1d0 [ 10.200008][ T187] netdev_info+0xe2/0x116 [ 10.200010][ T187] ? netdev_notice+0x120/0x120 [ 10.200014][ T187] ? _mutex_trylock_nest_lock+0x390/0x390 [ 10.200018][ T187] ? team_nl_send_options_get+0x650/0x650 [ 10.200023][ T187] ? lockdep_hardirqs_on+0x91/0x130 [ 10.200027][ T187] team_port_add+0xfc9/0x17b0 [ 10.200033][ T187] ? team_port_enable+0xc0/0xc0 [ 10.200034][ T187] ? is_bpf_text_address+0x72/0x110 [ 10.200041][ T187] do_set_master+0x3b2/0x780 [ 10.200045][ T187] do_setlink.isra.0+0x9ec/0x2a60 [ 10.200049][ T187] ? stack_trace_save+0x93/0xc0 [ 10.200052][ T187] ? rtnl_link_get_size+0x350/0x350 [ 10.200054][ T187] ? rcu_read_lock_any_held+0x66/0x90 [ 10.200057][ T187] ? stack_depot_save_flags+0x38e/0x790 [ 10.200061][ T187] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.200063][ T187] ? rcu_read_lock_any_held+0x3c/0x90 [ 10.200065][ T187] ? validate_chain+0x38b/0xc20 [ 10.200068][ T187] ? kasan_save_stack+0x3d/0x50 [ 10.200070][ T187] ? kasan_save_stack+0x2f/0x50 [ 10.200072][ T187] ? kasan_save_track+0x14/0x30 [ 10.200074][ T187] ? __lock_acquire+0x518/0xc20 [ 10.200077][ T187] ? netlink_seq_next+0x5e/0x60 [ 10.200079][ T187] ? ___sys_sendmsg+0xc0/0x1d0 [ 10.200083][ T187] ? lock_acquire.part.0+0xd4/0x280 [ 10.200086][ T187] ? rtnl_newlink+0x9a8/0x11b0 [ 10.200089][ T187] ? rcu_is_watching+0x16/0xd0 [ 10.200091][ T187] ? lock_acquire+0x13c/0x160 [ 10.200092][ T187] ? rcu_is_watching+0x16/0xd0 [ 10.200094][ T187] ? rcu_is_watching+0x16/0xd0 [ 10.200096][ T187] ? trace_contention_end+0xb3/0x180 [ 10.200098][ T187] ? __mutex_lock+0x1db/0x1ea0 [ 10.200099][ T187] ? __mutex_lock+0x9a3/0x1ea0 [ 10.200101][ T187] ? rtnl_newlink+0x9a8/0x11b0 [ 10.200105][ T187] ? ww_mutex_lock+0x160/0x160 [ 10.200107][ T187] ? nla_get_range_signed+0x3d0/0x3d0 [ 10.200113][ T187] ? __rtnl_newlink+0x3fa/0xa50 [ 10.200119][ T187] rtnl_newlink+0x9f1/0x11b0 [ 10.200124][ T187] ? rtnl_bridge_getlink+0x850/0x850 [ 10.200127][ T187] ? __lock_acquire+0x518/0xc20 [ 10.200132][ T187] ? lock_acquire.part.0+0xd4/0x280 [ 10.200134][ T187] ? find_held_lock+0x2b/0x80 [ 10.200136][ T187] ? rtnl_bridge_getlink+0x850/0x850 [ 10.200138][ T187] ? __lock_release.isra.0+0x69/0x1a0 [ 10.200142][ T187] ? rtnl_bridge_getlink+0x850/0x850 [ 10.200145][ T187] rtnetlink_rcv_msg+0x6fd/0xbd0 [ 10.200148][ T187] ? rtnl_link_fill+0x900/0x900 [ 10.200150][ T187] ? __lock_acquire+0x518/0xc20 [ 10.200155][ T187] ? lock_acquire.part.0+0xd4/0x280 [ 10.200157][ T187] ? find_held_lock+0x2b/0x80 [ 10.200161][ T187] netlink_rcv_skb+0x14e/0x3a0 [ 10.200163][ T187] ? rtnl_link_fill+0x900/0x900 [ 10.200168][ T187] ? netlink_ack+0xcd0/0xcd0 [ 10.200174][ T187] ? netlink_deliver_tap+0xc5/0x330 [ 10.200176][ T187] ? netlink_deliver_tap+0x13c/0x330 [ 10.200180][ T187] netlink_unicast+0x486/0x750 [ 10.200184][ T187] ? netlink_attachskb+0x810/0x810 [ 10.200187][ T187] ? __lock_acquire+0x518/0xc20 [ 10.200191][ T187] netlink_sendmsg+0x735/0xc60 [ 10.200195][ T187] ? netlink_unicast+0x750/0x750 [ 10.200199][ T187] ? __might_fault+0x97/0x140 [ 10.200205][ T187] ____sys_sendmsg+0x415/0x880 [ 10.200207][ T187] ? copy_msghdr_from_user+0x279/0x420 [ 10.200209][ T187] ? get_timestamp.constprop.0+0x3a0/0x3a0 [ 10.200210][ T187] ? move_addr_to_kernel+0x40/0x40 [ 10.200217][ T187] ___sys_sendmsg+0x14e/0x1d0 [ 10.200220][ T187] ? copy_msghdr_from_user+0x420/0x420 [ 10.200235][ T187] __sys_sendmsg+0x12c/0x1d0 [ 10.200238][ T187] ? __sys_sendmsg_sock+0x20/0x20 [ 10.200244][ T187] ? rcu_is_watching+0x16/0xd0 [ 10.200247][ T187] do_syscall_64+0xff/0x530 [ 10.200249][ T187] ? exc_page_fault+0xee/0x100 [ 10.200251][ T187] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.200254][ T187] RIP: 0033:0x7f07afaa954e [ 10.200258][ T187] Code: 4d 89 d8 e8 b4 bd 00 00 4c 8b 5d f8 41 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 11 c9 c3 0f 1f 80 00 00 00 00 48 8b 45 10 0f 05 c3 83 e2 39 83 fa 08 75 e7 e8 03 ff ff ff 0f 1f 00 f3 0f 1e fa [ 10.200260][ T187] RSP: 002b:00007ffc24937420 EFLAGS: 00000202 ORIG_RAX: 000000000000002e [ 10.200262][ T187] RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 00007f07afaa954e [ 10.200264][ T187] RDX: 0000000000000000 RSI: 00007ffc249374d0 RDI: 0000000000000005 [ 10.200265][ T187] RBP: 00007ffc24937430 R08: 0000000000000000 R09: 0000000000000000 [ 10.200266][ T187] R10: 0000000000000000 R11: 0000000000000202 R12: 000000006a910c9a [ 10.200267][ T187] R13: 00000000004a1620 R14: 0000000000000000 R15: 00007ffc24937b90 [ 10.200273][ T187] [ 10.247545][ T187] ip (187) used greatest stack depth: 23144 bytes left [ 10.342421][ T190] team0: Port device dummy0 removed [ 10.388130][ T193] team0: Mode changed to "activebackup" [ 10.464424][ T195] team0: Mode changed to "loadbalance" [ 10.540389][ T197] team0: Mode changed to "activebackup" [ 11.464507][ T232] team0: Port device dummy0 added [ 11.464527][ T232] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 11.464530][ T232] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 232, name: ip [ 11.464532][ T232] preempt_count: 1, expected: 0 [ 11.464533][ T232] RCU nest depth: 0, expected: 0 [ 11.464534][ T232] locks held by ip/232: 5, last CPU#3: [ 11.464536][ T232] #0: ffffffffacb22700 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0x9a8/0x11b0 [ 11.464548][ T232] #1: ffffffffac399cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 11.464554][ T232] #2: ffffffffac399d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 11.464558][ T232] #3: ffffffffac289660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 11.464561][ T232] #4: ffffffffac289560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 11.464565][ T232] irq event stamp: 14170 [ 11.464566][ T232] hardirqs last enabled at (14169): [] __down_trylock_console_sem+0x86/0xa0 [ 11.464570][ T232] hardirqs last disabled at (14170): [] console_emit_next_record+0x3f8/0x4f0 [ 11.464572][ T232] softirqs last enabled at (14100): [] __alloc_skb+0x4c5/0x5f0 [ 11.464575][ T232] softirqs last disabled at (14098): [] __alloc_skb+0x4c5/0x5f0 [ 11.464577][ T232] Preemption disabled at: [ 11.464578][ T232] [] vprintk_emit+0x31b/0x3e0 [ 11.464584][ T232] CPU: 3 UID: 0 PID: 232 Comm: ip Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 11.464588][ T232] Tainted: [W]=WARN [ 11.464589][ T232] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 11.464590][ T232] Call Trace: [ 11.464592][ T232] [ 11.464594][ T232] dump_stack_lvl+0x6f/0xa0 [ 11.464599][ T232] ? vprintk_emit+0x31b/0x3e0 [ 11.464601][ T232] __might_resched.cold+0x1fe/0x2c1 [ 11.464606][ T232] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 11.464610][ T232] ? __kmalloc_noprof+0xdb/0x760 [ 11.464615][ T232] __kmalloc_noprof+0x443/0x760 [ 11.464618][ T232] ? alloc_buf.isra.0+0x4b/0x260 [ 11.464624][ T232] ? do_raw_spin_unlock+0x59/0x250 [ 11.464626][ T232] alloc_buf.isra.0+0x4b/0x260 [ 11.464630][ T232] put_chars+0x1e1/0x2f0 [ 11.464634][ T232] ? __send_to_port+0x420/0x420 [ 11.464636][ T232] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 11.464640][ T232] ? rcu_read_lock_any_held+0x3c/0x90 [ 11.464643][ T232] ? validate_chain+0x38b/0xc20 [ 11.464649][ T232] hvc_console_print+0x292/0x780 [ 11.464653][ T232] ? __lock_acquire+0x518/0xc20 [ 11.464658][ T232] ? hvc_write+0x3a0/0x3a0 [ 11.464662][ T232] ? rcu_is_watching+0x16/0xd0 [ 11.464667][ T232] console_emit_next_record+0x252/0x4f0 [ 11.464670][ T232] ? devkmsg_read+0x4e0/0x4e0 [ 11.464675][ T232] ? rcu_is_watching+0x16/0xd0 [ 11.464677][ T232] ? lock_acquire+0x13c/0x160 [ 11.464681][ T232] console_flush_one_record+0x46f/0x710 [ 11.464685][ T232] ? console_emit_next_record+0x4f0/0x4f0 [ 11.464686][ T232] ? __lock_acquire+0x518/0xc20 [ 11.464692][ T232] console_unlock+0xee/0x1f0 [ 11.464695][ T232] ? console_flush_one_record+0x710/0x710 [ 11.464696][ T232] ? rcu_is_watching+0x16/0xd0 [ 11.464698][ T232] ? lock_acquire+0x60/0x160 [ 11.464702][ T232] ? __down_trylock_console_sem+0x5e/0xa0 [ 11.464704][ T232] ? vprintk_emit+0x320/0x3e0 [ 11.464707][ T232] vprintk_emit+0x37c/0x3e0 [ 11.464711][ T232] ? wake_up_klogd_work_func+0x90/0x90 [ 11.464714][ T232] ? __nlmsg_put+0x144/0x190 [ 11.464719][ T232] _printk+0xc7/0x100 [ 11.464723][ T232] ? snapshot_read.cold+0x21/0x21 [ 11.464727][ T232] ? netdev_name+0x43/0x60 [ 11.464731][ T232] ? __netdev_printk+0x17f/0x1d0 [ 11.464734][ T232] netdev_info+0xe2/0x116 [ 11.464737][ T232] ? netdev_notice+0x120/0x120 [ 11.464741][ T232] ? _mutex_trylock_nest_lock+0x390/0x390 [ 11.464744][ T232] ? team_nl_send_options_get+0x650/0x650 [ 11.464749][ T232] ? lockdep_hardirqs_on+0x91/0x130 [ 11.464753][ T232] team_port_add+0xfc9/0x17b0 [ 11.464760][ T232] ? team_port_enable+0xc0/0xc0 [ 11.464761][ T232] ? is_bpf_text_address+0x72/0x110 [ 11.464768][ T232] do_set_master+0x3b2/0x780 [ 11.464773][ T232] do_setlink.isra.0+0x9ec/0x2a60 [ 11.464777][ T232] ? stack_trace_save+0x93/0xc0 [ 11.464780][ T232] ? rtnl_link_get_size+0x350/0x350 [ 11.464783][ T232] ? rcu_read_lock_any_held+0x66/0x90 [ 11.464785][ T232] ? stack_depot_save_flags+0x38e/0x790 [ 11.464788][ T232] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 11.464790][ T232] ? rcu_read_lock_any_held+0x3c/0x90 [ 11.464792][ T232] ? validate_chain+0x38b/0xc20 [ 11.464795][ T232] ? kasan_save_stack+0x3d/0x50 [ 11.464798][ T232] ? kasan_save_stack+0x2f/0x50 [ 11.464799][ T232] ? kasan_save_track+0x14/0x30 [ 11.464801][ T232] ? __lock_acquire+0x518/0xc20 [ 11.464803][ T232] ? netlink_seq_next+0x5e/0x60 [ 11.464805][ T232] ? ___sys_sendmsg+0xc0/0x1d0 [ 11.464809][ T232] ? lock_acquire.part.0+0xd4/0x280 [ 11.464812][ T232] ? rtnl_newlink+0x9a8/0x11b0 [ 11.464815][ T232] ? rcu_is_watching+0x16/0xd0 [ 11.464817][ T232] ? lock_acquire+0x13c/0x160 [ 11.464819][ T232] ? rcu_is_watching+0x16/0xd0 [ 11.464820][ T232] ? rcu_is_watching+0x16/0xd0 [ 11.464822][ T232] ? trace_contention_end+0xb3/0x180 [ 11.464825][ T232] ? __mutex_lock+0x1db/0x1ea0 [ 11.464826][ T232] ? __mutex_lock+0x9a3/0x1ea0 [ 11.464828][ T232] ? rtnl_newlink+0x9a8/0x11b0 [ 11.464832][ T232] ? ww_mutex_lock+0x160/0x160 [ 11.464834][ T232] ? nla_get_range_signed+0x3d0/0x3d0 [ 11.464840][ T232] ? __rtnl_newlink+0x3fa/0xa50 [ 11.464846][ T232] rtnl_newlink+0x9f1/0x11b0 [ 11.464853][ T232] ? rtnl_bridge_getlink+0x850/0x850 [ 11.464855][ T232] ? __lock_acquire+0x518/0xc20 [ 11.464860][ T232] ? lock_acquire.part.0+0xd4/0x280 [ 11.464862][ T232] ? find_held_lock+0x2b/0x80 [ 11.464865][ T232] ? rtnl_bridge_getlink+0x850/0x850 [ 11.464867][ T232] ? __lock_release.isra.0+0x69/0x1a0 [ 11.464871][ T232] ? rtnl_bridge_getlink+0x850/0x850 [ 11.464874][ T232] rtnetlink_rcv_msg+0x6fd/0xbd0 [ 11.464878][ T232] ? rtnl_link_fill+0x900/0x900 [ 11.464879][ T232] ? __lock_acquire+0x518/0xc20 [ 11.464884][ T232] ? lock_acquire.part.0+0xd4/0x280 [ 11.464886][ T232] ? find_held_lock+0x2b/0x80 [ 11.464890][ T232] netlink_rcv_skb+0x14e/0x3a0 [ 11.464892][ T232] ? rtnl_link_fill+0x900/0x900 [ 11.464896][ T232] ? netlink_ack+0xcd0/0xcd0 [ 11.464902][ T232] ? netlink_deliver_tap+0xc5/0x330 [ 11.464904][ T232] ? netlink_deliver_tap+0x13c/0x330 [ 11.464908][ T232] netlink_unicast+0x486/0x750 [ 11.464912][ T232] ? netlink_attachskb+0x810/0x810 [ 11.464915][ T232] ? __lock_acquire+0x518/0xc20 [ 11.464919][ T232] netlink_sendmsg+0x735/0xc60 [ 11.464923][ T232] ? netlink_unicast+0x750/0x750 [ 11.464932][ T232] ? __might_fault+0x97/0x140 [ 11.464938][ T232] ____sys_sendmsg+0x415/0x880 [ 11.464941][ T232] ? copy_msghdr_from_user+0x279/0x420 [ 11.464943][ T232] ? get_timestamp.constprop.0+0x3a0/0x3a0 [ 11.464944][ T232] ? move_addr_to_kernel+0x40/0x40 [ 11.464952][ T232] ___sys_sendmsg+0x14e/0x1d0 [ 11.464954][ T232] ? copy_msghdr_from_user+0x420/0x420 [ 11.464971][ T232] __sys_sendmsg+0x12c/0x1d0 [ 11.464973][ T232] ? __sys_sendmsg_sock+0x20/0x20 [ 11.464980][ T232] ? rcu_is_watching+0x16/0xd0 [ 11.464983][ T232] do_syscall_64+0xff/0x530 [ 11.464985][ T232] ? exc_page_fault+0xee/0x100 [ 11.464988][ T232] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 11.464990][ T232] RIP: 0033:0x7f922c8b054e [ 11.464994][ T232] Code: 4d 89 d8 e8 b4 bd 00 00 4c 8b 5d f8 41 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 11 c9 c3 0f 1f 80 00 00 00 00 48 8b 45 10 0f 05 c3 83 e2 39 83 fa 08 75 e7 e8 03 ff ff ff 0f 1f 00 f3 0f 1e fa [ 11.464996][ T232] RSP: 002b:00007ffceb8945b0 EFLAGS: 00000202 ORIG_RAX: 000000000000002e [ 11.464999][ T232] RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 00007f922c8b054e [ 11.465000][ T232] RDX: 0000000000000000 RSI: 00007ffceb894660 RDI: 0000000000000005 [ 11.465001][ T232] RBP: 00007ffceb8945c0 R08: 0000000000000000 R09: 0000000000000000 [ 11.465002][ T232] R10: 0000000000000000 R11: 0000000000000202 R12: 000000006a910c9b [ 11.465003][ T232] R13: 00000000004a1620 R14: 0000000000000000 R15: 00007ffceb894d20 [ 11.465010][ T232] [ 11.776389][ T240] team0: Port device dummy0 removed [ 11.814014][ T242] team0: Port device dummy0 added [ 12.024960][ T250] team0: Port device dummy0 removed [ 12.060075][ T252] team0: Port device dummy0 added [ 12.250440][ T260] team0: Port device dummy0 removed [ 12.293288][ T262] team0: Port device dummy0 added [ 12.479021][ T270] team0: Port device dummy0 removed [ 12.479040][ T270] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 12.479042][ T270] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 270, name: ip [ 12.479044][ T270] preempt_count: 1, expected: 0 [ 12.479045][ T270] RCU nest depth: 0, expected: 0 [ 12.479046][ T270] locks held by ip/270: 5, last CPU#0: [ 12.479048][ T270] #0: ffffffffacb22700 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0x9a8/0x11b0 [ 12.479060][ T270] #1: ffffffffac399cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 12.479066][ T270] #2: ffffffffac399d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 12.479069][ T270] #3: ffffffffac289660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 12.479072][ T270] #4: ffffffffac289560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 12.479076][ T270] irq event stamp: 12982 [ 12.479077][ T270] hardirqs last enabled at (12981): [] __down_trylock_console_sem+0x86/0xa0 [ 12.479081][ T270] hardirqs last disabled at (12982): [] console_emit_next_record+0x3f8/0x4f0 [ 12.479082][ T270] softirqs last enabled at (12968): [] fib6_run_gc+0x162/0x250 [ 12.479086][ T270] softirqs last disabled at (12962): [] fib6_run_gc+0x1ac/0x250 [ 12.479088][ T270] Preemption disabled at: [ 12.479088][ T270] [] vprintk_emit+0x31b/0x3e0 [ 12.479094][ T270] CPU: 0 UID: 0 PID: 270 Comm: ip Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 12.479098][ T270] Tainted: [W]=WARN [ 12.479099][ T270] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.479101][ T270] Call Trace: [ 12.479102][ T270] [ 12.479104][ T270] dump_stack_lvl+0x6f/0xa0 [ 12.479109][ T270] ? vprintk_emit+0x31b/0x3e0 [ 12.479111][ T270] __might_resched.cold+0x1fe/0x2c1 [ 12.479115][ T270] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 12.479119][ T270] ? __kmalloc_noprof+0xdb/0x760 [ 12.479124][ T270] __kmalloc_noprof+0x443/0x760 [ 12.479127][ T270] ? alloc_buf.isra.0+0x4b/0x260 [ 12.479133][ T270] ? do_raw_spin_unlock+0x59/0x250 [ 12.479135][ T270] alloc_buf.isra.0+0x4b/0x260 [ 12.479139][ T270] put_chars+0x1e1/0x2f0 [ 12.479143][ T270] ? __send_to_port+0x420/0x420 [ 12.479146][ T270] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 12.479150][ T270] ? rcu_read_lock_any_held+0x3c/0x90 [ 12.479153][ T270] ? validate_chain+0x38b/0xc20 [ 12.479157][ T270] hvc_console_print+0x292/0x780 [ 12.479162][ T270] ? mark_usage+0x61/0x170 [ 12.479166][ T270] ? __lock_acquire+0x518/0xc20 [ 12.479168][ T270] ? __lock_acquire+0x518/0xc20 [ 12.479172][ T270] ? hvc_write+0x3a0/0x3a0 [ 12.479175][ T270] ? console_emit_next_record+0x202/0x4f0 [ 12.479178][ T270] ? rcu_is_watching+0x16/0xd0 [ 12.479180][ T270] ? lock_acquire+0x13c/0x160 [ 12.479184][ T270] console_emit_next_record+0x252/0x4f0 [ 12.479188][ T270] ? devkmsg_read+0x4e0/0x4e0 [ 12.479192][ T270] ? rcu_is_watching+0x16/0xd0 [ 12.479194][ T270] ? lock_acquire+0x13c/0x160 [ 12.479198][ T270] console_flush_one_record+0x46f/0x710 [ 12.479202][ T270] ? console_emit_next_record+0x4f0/0x4f0 [ 12.479203][ T270] ? __lock_acquire+0x518/0xc20 [ 12.479209][ T270] console_unlock+0xee/0x1f0 [ 12.479211][ T270] ? console_flush_one_record+0x710/0x710 [ 12.479213][ T270] ? rcu_is_watching+0x16/0xd0 [ 12.479215][ T270] ? lock_acquire+0x60/0x160 [ 12.479219][ T270] ? __down_trylock_console_sem+0x5e/0xa0 [ 12.479221][ T270] ? vprintk_emit+0x320/0x3e0 [ 12.479224][ T270] vprintk_emit+0x37c/0x3e0 [ 12.479227][ T270] ? wake_up_klogd_work_func+0x90/0x90 [ 12.479229][ T270] ? rtnl_newlink+0x9f1/0x11b0 [ 12.479231][ T270] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 12.479233][ T270] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 12.479234][ T270] ? look_up_lock_class+0x65/0x150 [ 12.479237][ T270] ? rcu_read_lock_any_held+0x3c/0x90 [ 12.479241][ T270] _printk+0xc7/0x100 [ 12.479245][ T270] ? snapshot_read.cold+0x21/0x21 [ 12.479248][ T270] ? __lock_acquire+0x518/0xc20 [ 12.479251][ T270] ? netdev_name+0x43/0x60 [ 12.479254][ T270] ? __netdev_printk+0x17f/0x1d0 [ 12.479257][ T270] netdev_info+0xe2/0x116 [ 12.479260][ T270] ? netdev_notice+0x120/0x120 [ 12.479264][ T270] ? lockdep_hardirqs_on_prepare.part.0+0x9a/0x160 [ 12.479266][ T270] ? lockdep_hardirqs_on+0x91/0x130 [ 12.479268][ T270] ? _raw_spin_unlock_irqrestore+0x53/0x80 [ 12.479271][ T270] ? _raw_spin_unlock_irqrestore+0x40/0x80 [ 12.479273][ T270] ? kvfree_call_rcu+0x23b/0x2e0 [ 12.479278][ T270] team_port_del+0x61d/0xaa0 [ 12.479284][ T270] do_set_master+0x15c/0x780 [ 12.479288][ T270] do_setlink.isra.0+0x9ec/0x2a60 [ 12.479292][ T270] ? stack_trace_save+0x93/0xc0 [ 12.479296][ T270] ? rtnl_link_get_size+0x350/0x350 [ 12.479297][ T270] ? rcu_read_lock_any_held+0x66/0x90 [ 12.479300][ T270] ? stack_depot_save_flags+0x38e/0x790 [ 12.479303][ T270] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 12.479305][ T270] ? rcu_read_lock_any_held+0x3c/0x90 [ 12.479307][ T270] ? validate_chain+0x38b/0xc20 [ 12.479310][ T270] ? kasan_save_stack+0x3d/0x50 [ 12.479312][ T270] ? kasan_save_stack+0x2f/0x50 [ 12.479313][ T270] ? kasan_save_track+0x14/0x30 [ 12.479316][ T270] ? __lock_acquire+0x518/0xc20 [ 12.479318][ T270] ? netlink_seq_next+0x5e/0x60 [ 12.479321][ T270] ? ___sys_sendmsg+0xc0/0x1d0 [ 12.479325][ T270] ? lock_acquire.part.0+0xd4/0x280 [ 12.479327][ T270] ? rtnl_newlink+0x9a8/0x11b0 [ 12.479331][ T270] ? rcu_is_watching+0x16/0xd0 [ 12.479333][ T270] ? lock_acquire+0x13c/0x160 [ 12.479334][ T270] ? rcu_is_watching+0x16/0xd0 [ 12.479336][ T270] ? rcu_is_watching+0x16/0xd0 [ 12.479338][ T270] ? trace_contention_end+0xb3/0x180 [ 12.479340][ T270] ? __mutex_lock+0x1db/0x1ea0 [ 12.479342][ T270] ? __mutex_lock+0x9a3/0x1ea0 [ 12.479344][ T270] ? rtnl_newlink+0x9a8/0x11b0 [ 12.479348][ T270] ? ww_mutex_lock+0x160/0x160 [ 12.479350][ T270] ? nla_get_range_signed+0x3d0/0x3d0 [ 12.479356][ T270] ? __rtnl_newlink+0x3fa/0xa50 [ 12.479361][ T270] rtnl_newlink+0x9f1/0x11b0 [ 12.479367][ T270] ? rtnl_bridge_getlink+0x850/0x850 [ 12.479369][ T270] ? __lock_acquire+0x518/0xc20 [ 12.479374][ T270] ? lock_acquire.part.0+0xd4/0x280 [ 12.479376][ T270] ? find_held_lock+0x2b/0x80 [ 12.479379][ T270] ? rtnl_bridge_getlink+0x850/0x850 [ 12.479381][ T270] ? __lock_release.isra.0+0x69/0x1a0 [ 12.479385][ T270] ? rtnl_bridge_getlink+0x850/0x850 [ 12.479388][ T270] rtnetlink_rcv_msg+0x6fd/0xbd0 [ 12.479391][ T270] ? rtnl_link_fill+0x900/0x900 [ 12.479393][ T270] ? __lock_acquire+0x518/0xc20 [ 12.479398][ T270] ? lock_acquire.part.0+0xd4/0x280 [ 12.479400][ T270] ? find_held_lock+0x2b/0x80 [ 12.479404][ T270] netlink_rcv_skb+0x14e/0x3a0 [ 12.479406][ T270] ? rtnl_link_fill+0x900/0x900 [ 12.479409][ T270] ? netlink_ack+0xcd0/0xcd0 [ 12.479416][ T270] ? netlink_deliver_tap+0xc5/0x330 [ 12.479417][ T270] ? netlink_deliver_tap+0x13c/0x330 [ 12.479422][ T270] netlink_unicast+0x486/0x750 [ 12.479425][ T270] ? netlink_attachskb+0x810/0x810 [ 12.479428][ T270] ? __lock_acquire+0x518/0xc20 [ 12.479432][ T270] netlink_sendmsg+0x735/0xc60 [ 12.479436][ T270] ? netlink_unicast+0x750/0x750 [ 12.479440][ T270] ? __might_fault+0x97/0x140 [ 12.479446][ T270] ____sys_sendmsg+0x415/0x880 [ 12.479448][ T270] ? copy_msghdr_from_user+0x279/0x420 [ 12.479450][ T270] ? get_timestamp.constprop.0+0x3a0/0x3a0 [ 12.479452][ T270] ? move_addr_to_kernel+0x40/0x40 [ 12.479459][ T270] ___sys_sendmsg+0x14e/0x1d0 [ 12.479461][ T270] ? copy_msghdr_from_user+0x420/0x420 [ 12.479477][ T270] __sys_sendmsg+0x12c/0x1d0 [ 12.479480][ T270] ? __sys_sendmsg_sock+0x20/0x20 [ 12.479486][ T270] ? rcu_is_watching+0x16/0xd0 [ 12.479489][ T270] do_syscall_64+0xff/0x530 [ 12.479491][ T270] ? exc_page_fault+0xee/0x100 [ 12.479494][ T270] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 12.479496][ T270] RIP: 0033:0x7f900da9554e [ 12.479500][ T270] Code: 4d 89 d8 e8 b4 bd 00 00 4c 8b 5d f8 41 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 11 c9 c3 0f 1f 80 00 00 00 00 48 8b 45 10 0f 05 c3 83 e2 39 83 fa 08 75 e7 e8 03 ff ff ff 0f 1f 00 f3 0f 1e fa [ 12.479502][ T270] RSP: 002b:00007ffee386e600 EFLAGS: 00000202 ORIG_RAX: 000000000000002e [ 12.479504][ T270] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f900da9554e [ 12.479506][ T270] RDX: 0000000000000000 RSI: 00007ffee386e6b0 RDI: 0000000000000005 [ 12.479506][ T270] RBP: 00007ffee386e610 R08: 0000000000000000 R09: 0000000000000000 [ 12.479507][ T270] R10: 0000000000000000 R11: 0000000000000202 R12: 000000006a910c9c [ 12.479508][ T270] R13: 00000000004a1620 R14: 0000000000000000 R15: 00007ffee386ed70 [ 12.479515][ T270] [ 12.563199][ T272] team0: Port device dummy0 added [ 12.754230][ T280] team0: Port device dummy0 removed [ 12.788510][ T282] team0: Port device dummy0 added [ 13.033848][ T290] team0: Port device dummy0 removed [ 13.077731][ T292] team0: Port device dummy0 added [ 13.287483][ T300] team0: Port device dummy0 removed [ 13.360025][ T310] team0: Port device dummy0 added [ 14.411669][ T70] team0 (unregistering): Port device dummy0 removed [ 14.411727][ T70] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 14.411729][ T70] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 70, name: kworker/u16:1 [ 14.411731][ T70] preempt_count: 1, expected: 0 [ 14.411732][ T70] RCU nest depth: 0, expected: 0 [ 14.411733][ T70] locks held by kworker/u16:1/70: 8, last CPU#1: [ 14.411735][ T70] #0: ff11000001a09d40 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0xd9a/0x1560 [ 14.411747][ T70] #1: ffa00000004b7d10 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0xdfc/0x1560 [ 14.411751][ T70] #2: ffffffffacb06b88 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0xbf/0x890 [ 14.411756][ T70] #3: ffffffffacb22700 (rtnl_mutex){+.+.}-{4:4}, at: default_device_exit_batch+0x9a/0x600 [ 14.411761][ T70] #4: ffffffffac399cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 14.411766][ T70] #5: ffffffffac399d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 14.411769][ T70] #6: ffffffffac289660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 14.411772][ T70] #7: ffffffffac289560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 14.411776][ T70] irq event stamp: 9302 [ 14.411777][ T70] hardirqs last enabled at (9301): [] __down_trylock_console_sem+0x86/0xa0 [ 14.411780][ T70] hardirqs last disabled at (9302): [] console_emit_next_record+0x3f8/0x4f0 [ 14.411781][ T70] softirqs last enabled at (9286): [] fib6_run_gc+0x162/0x250 [ 14.411785][ T70] softirqs last disabled at (9280): [] fib6_run_gc+0x1ac/0x250 [ 14.411787][ T70] Preemption disabled at: [ 14.411788][ T70] [] vprintk_emit+0x31b/0x3e0 [ 14.411793][ T70] CPU: 1 UID: 0 PID: 70 Comm: kworker/u16:1 Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 14.411797][ T70] Tainted: [W]=WARN [ 14.411798][ T70] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.411799][ T70] Workqueue: netns cleanup_net [ 14.411803][ T70] Call Trace: [ 14.411804][ T70] [ 14.411806][ T70] dump_stack_lvl+0x6f/0xa0 [ 14.411812][ T70] ? vprintk_emit+0x31b/0x3e0 [ 14.411814][ T70] __might_resched.cold+0x1fe/0x2c1 [ 14.411818][ T70] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 14.411822][ T70] ? __kmalloc_noprof+0xdb/0x760 [ 14.411827][ T70] __kmalloc_noprof+0x443/0x760 [ 14.411830][ T70] ? alloc_buf.isra.0+0x4b/0x260 [ 14.411837][ T70] ? do_raw_spin_unlock+0x59/0x250 [ 14.411839][ T70] alloc_buf.isra.0+0x4b/0x260 [ 14.411842][ T70] put_chars+0x1e1/0x2f0 [ 14.411846][ T70] ? __send_to_port+0x420/0x420 [ 14.411848][ T70] ? check_prev_add+0xef/0xe90 [ 14.411853][ T70] ? validate_chain+0x34a/0xc20 [ 14.411857][ T70] hvc_console_print+0x292/0x780 [ 14.411861][ T70] ? mark_usage+0x61/0x170 [ 14.411863][ T70] ? __lock_acquire+0x518/0xc20 [ 14.411865][ T70] ? __lock_acquire+0x518/0xc20 [ 14.411870][ T70] ? hvc_write+0x3a0/0x3a0 [ 14.411872][ T70] ? lock_acquire.part.0+0xd4/0x280 [ 14.411877][ T70] ? lock_acquire+0x13c/0x160 [ 14.411881][ T70] console_emit_next_record+0x252/0x4f0 [ 14.411885][ T70] ? devkmsg_read+0x4e0/0x4e0 [ 14.411889][ T70] ? rcu_is_watching+0x16/0xd0 [ 14.411893][ T70] ? lock_acquire+0x13c/0x160 [ 14.411897][ T70] console_flush_one_record+0x46f/0x710 [ 14.411901][ T70] ? console_emit_next_record+0x4f0/0x4f0 [ 14.411903][ T70] ? __lock_acquire+0x518/0xc20 [ 14.411908][ T70] console_unlock+0xee/0x1f0 [ 14.411911][ T70] ? console_flush_one_record+0x710/0x710 [ 14.411912][ T70] ? rcu_is_watching+0x16/0xd0 [ 14.411914][ T70] ? lock_acquire+0x60/0x160 [ 14.411919][ T70] ? __down_trylock_console_sem+0x5e/0xa0 [ 14.411921][ T70] ? vprintk_emit+0x320/0x3e0 [ 14.411924][ T70] vprintk_emit+0x37c/0x3e0 [ 14.411927][ T70] ? wake_up_klogd_work_func+0x90/0x90 [ 14.411929][ T70] ? default_device_exit_batch+0x38b/0x600 [ 14.411931][ T70] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 14.411933][ T70] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 14.411935][ T70] ? look_up_lock_class+0x65/0x150 [ 14.411945][ T70] ? rcu_read_lock_any_held+0x3c/0x90 [ 14.411950][ T70] _printk+0xc7/0x100 [ 14.411954][ T70] ? snapshot_read.cold+0x21/0x21 [ 14.411957][ T70] ? __lock_acquire+0x518/0xc20 [ 14.411960][ T70] ? netdev_name+0x43/0x60 [ 14.411963][ T70] ? __netdev_printk+0x17f/0x1d0 [ 14.411967][ T70] netdev_info+0xe2/0x116 [ 14.411969][ T70] ? netdev_notice+0x120/0x120 [ 14.411974][ T70] ? lockdep_hardirqs_on_prepare.part.0+0x9a/0x160 [ 14.411976][ T70] ? lockdep_hardirqs_on+0x91/0x130 [ 14.411978][ T70] ? _raw_spin_unlock_irqrestore+0x53/0x80 [ 14.411980][ T70] ? _raw_spin_unlock_irqrestore+0x40/0x80 [ 14.411982][ T70] ? kvfree_call_rcu+0x23b/0x2e0 [ 14.411988][ T70] team_port_del+0x61d/0xaa0 [ 14.411994][ T70] team_uninit+0xc4/0x1f0 [ 14.411998][ T70] unregister_netdevice_many_notify+0xee7/0x1b40 [ 14.412003][ T70] ? unregister_netdevice_queued+0x80/0x80 [ 14.412005][ T70] ? mutex_is_locked+0x1c/0x50 [ 14.412007][ T70] ? rtnl_is_locked+0x15/0x20 [ 14.412010][ T70] ? unregister_netdevice_queue+0x6a/0x470 [ 14.412014][ T70] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 14.412018][ T70] default_device_exit_batch+0x38b/0x600 [ 14.412021][ T70] ? generic_xdp_install+0x470/0x470 [ 14.412024][ T70] ? unregister_netdevice_queue+0x470/0x470 [ 14.412026][ T70] ? rtnl_is_locked+0x15/0x20 [ 14.412028][ T70] ? nexthop_net_exit_rtnl+0x1f/0x270 [ 14.412034][ T70] ops_undo_list+0x2ce/0x8f0 [ 14.412038][ T70] ? rtnl_net_dumpid_one+0x2d0/0x2d0 [ 14.412040][ T70] ? __lock_release.isra.0+0x69/0x1a0 [ 14.412046][ T70] cleanup_net+0x431/0x890 [ 14.412049][ T70] ? net_passive_dec+0x230/0x230 [ 14.412052][ T70] ? lock_acquire+0x13c/0x160 [ 14.412055][ T70] ? rcu_is_watching+0x16/0xd0 [ 14.412058][ T70] process_one_work+0xe3e/0x1560 [ 14.412065][ T70] ? __queue_delayed_work+0x470/0x470 [ 14.412067][ T70] ? lock_acquire.part.0+0xd4/0x280 [ 14.412076][ T70] worker_thread+0x4f1/0xd60 [ 14.412080][ T70] ? rescuer_thread+0x1340/0x1340 [ 14.412081][ T70] ? __kthread_parkme+0xbd/0x210 [ 14.412085][ T70] ? rescuer_thread+0x1340/0x1340 [ 14.412087][ T70] ? rescuer_thread+0x1340/0x1340 [ 14.412089][ T70] kthread+0x367/0x460 [ 14.412091][ T70] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 14.412095][ T70] ? kthread_affine_preferred+0x4c0/0x4c0 [ 14.412098][ T70] ret_from_fork+0x474/0x6b0 [ 14.412102][ T70] ? arch_exit_to_user_mode_prepare.isra.0+0x120/0x120 [ 14.412106][ T70] ? __switch_to+0x5a3/0xe00 [ 14.412110][ T70] ? kthread_affine_preferred+0x4c0/0x4c0 [ 14.412113][ T70] ret_from_fork_asm+0x11/0x20 [ 14.412122][ T70]