[ 9.079463][ T189] t0: Port device b0 added [ 9.079521][ T189] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 9.079524][ T189] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 189, name: ip [ 9.079525][ T189] preempt_count: 1, expected: 0 [ 9.079526][ T189] RCU nest depth: 0, expected: 0 [ 9.079527][ T189] locks held by ip/189: 5, last CPU#3: [ 9.079530][ T189] #0: ffffffff86d22700 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0x9a8/0x11b0 [ 9.079541][ T189] #1: ffffffff86599cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 9.079547][ T189] #2: ffffffff86599d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 9.079550][ T189] #3: ffffffff86489660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 9.079553][ T189] #4: ffffffff86489560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 9.079556][ T189] irq event stamp: 18750 [ 9.079557][ T189] hardirqs last enabled at (18749): [] __down_trylock_console_sem+0x86/0xa0 [ 9.079561][ T189] hardirqs last disabled at (18750): [] console_emit_next_record+0x3f8/0x4f0 [ 9.079562][ T189] softirqs last enabled at (18644): [] __alloc_skb+0x4c5/0x5f0 [ 9.079565][ T189] softirqs last disabled at (18642): [] __alloc_skb+0x4c5/0x5f0 [ 9.079567][ T189] Preemption disabled at: [ 9.079568][ T189] [] vprintk_emit+0x31b/0x3e0 [ 9.079573][ T189] CPU: 3 UID: 0 PID: 189 Comm: ip Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 9.079576][ T189] Tainted: [W]=WARN [ 9.079577][ T189] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 9.079578][ T189] Call Trace: [ 9.079580][ T189] [ 9.079581][ T189] dump_stack_lvl+0x6f/0xa0 [ 9.079586][ T189] ? vprintk_emit+0x31b/0x3e0 [ 9.079588][ T189] __might_resched.cold+0x1fe/0x2c1 [ 9.079593][ T189] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 9.079596][ T189] ? __kmalloc_noprof+0xdb/0x760 [ 9.079601][ T189] __kmalloc_noprof+0x443/0x760 [ 9.079604][ T189] ? alloc_buf.isra.0+0x4b/0x260 [ 9.079610][ T189] ? do_raw_spin_unlock+0x59/0x250 [ 9.079612][ T189] alloc_buf.isra.0+0x4b/0x260 [ 9.079615][ T189] put_chars+0x1e1/0x2f0 [ 9.079618][ T189] ? __send_to_port+0x420/0x420 [ 9.079622][ T189] ? validate_chain+0x34a/0xc20 [ 9.079632][ T189] hvc_console_print+0x292/0x780 [ 9.079636][ T189] ? __lock_acquire+0x518/0xc20 [ 9.079641][ T189] ? hvc_write+0x3a0/0x3a0 [ 9.079644][ T189] ? rcu_is_watching+0x16/0xd0 [ 9.079650][ T189] console_emit_next_record+0x252/0x4f0 [ 9.079653][ T189] ? devkmsg_read+0x4e0/0x4e0 [ 9.079657][ T189] ? rcu_is_watching+0x16/0xd0 [ 9.079659][ T189] ? lock_acquire+0x13c/0x160 [ 9.079663][ T189] console_flush_one_record+0x46f/0x710 [ 9.079666][ T189] ? console_emit_next_record+0x4f0/0x4f0 [ 9.079668][ T189] ? __lock_acquire+0x518/0xc20 [ 9.079673][ T189] console_unlock+0xee/0x1f0 [ 9.079675][ T189] ? console_flush_one_record+0x710/0x710 [ 9.079677][ T189] ? rcu_is_watching+0x16/0xd0 [ 9.079678][ T189] ? lock_acquire+0x60/0x160 [ 9.079682][ T189] ? __down_trylock_console_sem+0x5e/0xa0 [ 9.079684][ T189] ? vprintk_emit+0x320/0x3e0 [ 9.079687][ T189] vprintk_emit+0x37c/0x3e0 [ 9.079690][ T189] ? wake_up_klogd_work_func+0x90/0x90 [ 9.079693][ T189] ? __nlmsg_put+0x144/0x190 [ 9.079698][ T189] _printk+0xc7/0x100 [ 9.079701][ T189] ? snapshot_read.cold+0x21/0x21 [ 9.079705][ T189] ? netdev_name+0x43/0x60 [ 9.079708][ T189] ? __netdev_printk+0x17f/0x1d0 [ 9.079711][ T189] netdev_info+0xe2/0x116 [ 9.079713][ T189] ? netdev_notice+0x120/0x120 [ 9.079717][ T189] ? netdev_change_features+0xa0/0xa0 [ 9.079721][ T189] ? team_nl_send_options_get+0x650/0x650 [ 9.079726][ T189] team_port_add+0xfc9/0x17b0 [ 9.079732][ T189] ? team_port_enable+0xc0/0xc0 [ 9.079733][ T189] ? is_bpf_text_address+0x72/0x110 [ 9.079737][ T189] ? kernel_text_address+0x149/0x170 [ 9.079742][ T189] do_set_master+0x3b2/0x780 [ 9.079746][ T189] do_setlink.isra.0+0x9ec/0x2a60 [ 9.079750][ T189] ? stack_trace_save+0x93/0xc0 [ 9.079753][ T189] ? rtnl_link_get_size+0x350/0x350 [ 9.079755][ T189] ? rcu_read_lock_any_held+0x66/0x90 [ 9.079758][ T189] ? stack_depot_save_flags+0x38e/0x790 [ 9.079761][ T189] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 9.079763][ T189] ? rcu_read_lock_any_held+0x3c/0x90 [ 9.079765][ T189] ? validate_chain+0x38b/0xc20 [ 9.079768][ T189] ? kasan_save_stack+0x3d/0x50 [ 9.079770][ T189] ? kasan_save_stack+0x2f/0x50 [ 9.079771][ T189] ? kasan_save_track+0x14/0x30 [ 9.079773][ T189] ? __lock_acquire+0x518/0xc20 [ 9.079775][ T189] ? netlink_seq_next+0x5e/0x60 [ 9.079777][ T189] ? ___sys_sendmsg+0xc0/0x1d0 [ 9.079781][ T189] ? lock_acquire.part.0+0xd4/0x280 [ 9.079783][ T189] ? rtnl_newlink+0x9a8/0x11b0 [ 9.079786][ T189] ? rcu_is_watching+0x16/0xd0 [ 9.079788][ T189] ? lock_acquire+0x13c/0x160 [ 9.079790][ T189] ? rcu_is_watching+0x16/0xd0 [ 9.079791][ T189] ? rcu_is_watching+0x16/0xd0 [ 9.079793][ T189] ? trace_contention_end+0xb3/0x180 [ 9.079795][ T189] ? __mutex_lock+0x1db/0x1ea0 [ 9.079798][ T189] ? __mutex_lock+0x9a3/0x1ea0 [ 9.079800][ T189] ? rtnl_newlink+0x9a8/0x11b0 [ 9.079804][ T189] ? ww_mutex_lock+0x160/0x160 [ 9.079805][ T189] ? nla_get_range_signed+0x3d0/0x3d0 [ 9.079811][ T189] ? __rtnl_newlink+0x3fa/0xa50 [ 9.079816][ T189] rtnl_newlink+0x9f1/0x11b0 [ 9.079822][ T189] ? rtnl_bridge_getlink+0x850/0x850 [ 9.079824][ T189] ? __lock_acquire+0x518/0xc20 [ 9.079829][ T189] ? lock_acquire.part.0+0xd4/0x280 [ 9.079831][ T189] ? find_held_lock+0x2b/0x80 [ 9.079833][ T189] ? rtnl_bridge_getlink+0x850/0x850 [ 9.079836][ T189] ? __lock_release.isra.0+0x69/0x1a0 [ 9.079839][ T189] ? rtnl_bridge_getlink+0x850/0x850 [ 9.079842][ T189] rtnetlink_rcv_msg+0x6fd/0xbd0 [ 9.079845][ T189] ? rtnl_link_fill+0x900/0x900 [ 9.079847][ T189] ? __lock_acquire+0x518/0xc20 [ 9.079852][ T189] ? lock_acquire.part.0+0xd4/0x280 [ 9.079854][ T189] ? find_held_lock+0x2b/0x80 [ 9.079857][ T189] netlink_rcv_skb+0x14e/0x3a0 [ 9.079859][ T189] ? rtnl_link_fill+0x900/0x900 [ 9.079862][ T189] ? netlink_ack+0xcd0/0xcd0 [ 9.079868][ T189] ? netlink_deliver_tap+0xc5/0x330 [ 9.079870][ T189] ? netlink_deliver_tap+0x13c/0x330 [ 9.079874][ T189] netlink_unicast+0x486/0x750 [ 9.079877][ T189] ? netlink_attachskb+0x810/0x810 [ 9.079880][ T189] ? __lock_acquire+0x518/0xc20 [ 9.079884][ T189] netlink_sendmsg+0x735/0xc60 [ 9.079888][ T189] ? netlink_unicast+0x750/0x750 [ 9.079892][ T189] ? __might_fault+0x97/0x140 [ 9.079897][ T189] ____sys_sendmsg+0x415/0x880 [ 9.079899][ T189] ? copy_msghdr_from_user+0x279/0x420 [ 9.079901][ T189] ? get_timestamp.constprop.0+0x3a0/0x3a0 [ 9.079902][ T189] ? move_addr_to_kernel+0x40/0x40 [ 9.079909][ T189] ___sys_sendmsg+0x14e/0x1d0 [ 9.079912][ T189] ? copy_msghdr_from_user+0x420/0x420 [ 9.079926][ T189] __sys_sendmsg+0x12c/0x1d0 [ 9.079929][ T189] ? __sys_sendmsg_sock+0x20/0x20 [ 9.079935][ T189] ? rcu_is_watching+0x16/0xd0 [ 9.079938][ T189] do_syscall_64+0xff/0x530 [ 9.079940][ T189] ? exc_page_fault+0xee/0x100 [ 9.079943][ T189] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 9.079945][ T189] RIP: 0033:0x7fe47e30d54e [ 9.079949][ T189] 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 [ 9.079951][ T189] RSP: 002b:00007ffee41a3e00 EFLAGS: 00000202 ORIG_RAX: 000000000000002e [ 9.079953][ T189] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007fe47e30d54e [ 9.079955][ T189] RDX: 0000000000000000 RSI: 00007ffee41a3eb0 RDI: 0000000000000005 [ 9.079955][ T189] RBP: 00007ffee41a3e10 R08: 0000000000000000 R09: 0000000000000000 [ 9.079956][ T189] R10: 0000000000000000 R11: 0000000000000202 R12: 000000006a913dfa [ 9.079957][ T189] R13: 00000000004a1620 R14: 0000000000000000 R15: 00007ffee41a4580 [ 9.079964][ T189] [ 9.123989][ T189] ip (189) used greatest stack depth: 23144 bytes left [ 10.246644][ T12] t0: Port device b0 removed [ 10.246689][ T12] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.246691][ T12] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 12, name: kworker/u16:0 [ 10.246693][ T12] preempt_count: 1, expected: 0 [ 10.246694][ T12] RCU nest depth: 0, expected: 0 [ 10.246694][ T12] locks held by kworker/u16:0/12: 8, last CPU#0: [ 10.246696][ T12] #0: ff11000001a09d40 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0xd9a/0x1560 [ 10.246707][ T12] #1: ffa00000000c7d10 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0xdfc/0x1560 [ 10.246711][ T12] #2: ffffffff86d06b88 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0xbf/0x890 [ 10.246716][ T12] #3: ffffffff86d22700 (rtnl_mutex){+.+.}-{4:4}, at: ops_undo_list+0x534/0x8f0 [ 10.246719][ T12] #4: ffffffff86599cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.246723][ T12] #5: ffffffff86599d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.246726][ T12] #6: ffffffff86489660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.246729][ T12] #7: ffffffff86489560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 10.246732][ T12] irq event stamp: 3806 [ 10.246733][ T12] hardirqs last enabled at (3805): [] __down_trylock_console_sem+0x86/0xa0 [ 10.246736][ T12] hardirqs last disabled at (3806): [] console_emit_next_record+0x3f8/0x4f0 [ 10.246738][ T12] softirqs last enabled at (3790): [] fib6_run_gc+0x162/0x250 [ 10.246741][ T12] softirqs last disabled at (3784): [] fib6_run_gc+0x1ac/0x250 [ 10.246743][ T12] Preemption disabled at: [ 10.246744][ T12] [] vprintk_emit+0x31b/0x3e0 [ 10.246749][ T12] CPU: 0 UID: 0 PID: 12 Comm: kworker/u16:0 Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.246753][ T12] Tainted: [W]=WARN [ 10.246753][ T12] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.246755][ T12] Workqueue: netns cleanup_net [ 10.246758][ T12] Call Trace: [ 10.246760][ T12] [ 10.246762][ T12] dump_stack_lvl+0x6f/0xa0 [ 10.246767][ T12] ? vprintk_emit+0x31b/0x3e0 [ 10.246768][ T12] __might_resched.cold+0x1fe/0x2c1 [ 10.246773][ T12] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.246777][ T12] ? __kmalloc_noprof+0xdb/0x760 [ 10.246782][ T12] __kmalloc_noprof+0x443/0x760 [ 10.246785][ T12] ? alloc_buf.isra.0+0x4b/0x260 [ 10.246791][ T12] ? do_raw_spin_unlock+0x59/0x250 [ 10.246793][ T12] alloc_buf.isra.0+0x4b/0x260 [ 10.246797][ T12] put_chars+0x1e1/0x2f0 [ 10.246800][ T12] ? __send_to_port+0x420/0x420 [ 10.246802][ T12] ? desc_read_finalized_seq+0x41/0x120 [ 10.246806][ T12] ? validate_chain+0x34a/0xc20 [ 10.246811][ T12] hvc_console_print+0x292/0x780 [ 10.246815][ T12] ? __lock_acquire+0x518/0xc20 [ 10.246817][ T12] ? __lock_acquire+0x518/0xc20 [ 10.246822][ T12] ? hvc_write+0x3a0/0x3a0 [ 10.246824][ T12] ? console_emit_next_record+0x202/0x4f0 [ 10.246826][ T12] ? rcu_is_watching+0x16/0xd0 [ 10.246830][ T12] ? lock_acquire+0x13c/0x160 [ 10.246834][ T12] console_emit_next_record+0x252/0x4f0 [ 10.246838][ T12] ? devkmsg_read+0x4e0/0x4e0 [ 10.246842][ T12] ? rcu_is_watching+0x16/0xd0 [ 10.246843][ T12] ? lock_acquire+0x13c/0x160 [ 10.246848][ T12] console_flush_one_record+0x46f/0x710 [ 10.246852][ T12] ? console_emit_next_record+0x4f0/0x4f0 [ 10.246853][ T12] ? __lock_acquire+0x518/0xc20 [ 10.246858][ T12] console_unlock+0xee/0x1f0 [ 10.246861][ T12] ? console_flush_one_record+0x710/0x710 [ 10.246862][ T12] ? rcu_is_watching+0x16/0xd0 [ 10.246864][ T12] ? lock_acquire+0x60/0x160 [ 10.246868][ T12] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.246870][ T12] ? vprintk_emit+0x320/0x3e0 [ 10.246873][ T12] vprintk_emit+0x37c/0x3e0 [ 10.246876][ T12] ? wake_up_klogd_work_func+0x90/0x90 [ 10.246878][ T12] ? unregister_netdevice_many_notify+0xc5a/0x1b40 [ 10.246881][ T12] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.246883][ T12] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.246885][ T12] ? look_up_lock_class+0x65/0x150 [ 10.246888][ T12] ? rcu_read_lock_any_held+0x3c/0x90 [ 10.246893][ T12] _printk+0xc7/0x100 [ 10.246896][ T12] ? snapshot_read.cold+0x21/0x21 [ 10.246900][ T12] ? __lock_acquire+0x518/0xc20 [ 10.246902][ T12] ? sk_clone+0x688/0x1270 [ 10.246905][ T12] ? netdev_name+0x43/0x60 [ 10.246908][ T12] ? __netdev_printk+0x17f/0x1d0 [ 10.246912][ T12] netdev_info+0xe2/0x116 [ 10.246914][ T12] ? netdev_notice+0x120/0x120 [ 10.246919][ T12] ? lockdep_hardirqs_on_prepare.part.0+0x9a/0x160 [ 10.246921][ T12] ? lockdep_hardirqs_on+0x91/0x130 [ 10.246922][ T12] ? _raw_spin_unlock_irqrestore+0x53/0x80 [ 10.246925][ T12] ? _raw_spin_unlock_irqrestore+0x40/0x80 [ 10.246927][ T12] ? kvfree_call_rcu+0x23b/0x2e0 [ 10.246932][ T12] team_port_del+0x61d/0xaa0 [ 10.246938][ T12] team_device_event+0x1bc/0x530 [ 10.246939][ T12] ? rcu_is_watching+0x16/0xd0 [ 10.246941][ T12] notifier_call_chain+0xae/0x300 [ 10.246947][ T12] unregister_netdevice_many_notify+0xc5a/0x1b40 [ 10.246952][ T12] ? unregister_netdevice_queued+0x80/0x80 [ 10.246954][ T12] ? lockdep_hardirqs_on+0x91/0x130 [ 10.246956][ T12] ? __call_rcu_common.constprop.0+0x3d3/0xa20 [ 10.246961][ T12] ? rtnl_is_locked+0x15/0x20 [ 10.246963][ T12] ? nexthop_net_exit_rtnl+0x1f/0x270 [ 10.246969][ T12] ops_undo_list+0x615/0x8f0 [ 10.246973][ T12] ? rtnl_net_dumpid_one+0x2d0/0x2d0 [ 10.246974][ T12] ? __lock_release.isra.0+0x69/0x1a0 [ 10.246980][ T12] cleanup_net+0x431/0x890 [ 10.246983][ T12] ? net_passive_dec+0x230/0x230 [ 10.246986][ T12] ? lock_acquire+0x13c/0x160 [ 10.246988][ T12] ? rcu_is_watching+0x16/0xd0 [ 10.246992][ T12] process_one_work+0xe3e/0x1560 [ 10.246998][ T12] ? __queue_delayed_work+0x470/0x470 [ 10.247000][ T12] ? lock_acquire.part.0+0xd4/0x280 [ 10.247008][ T12] worker_thread+0x4f1/0xd60 [ 10.247015][ T12] ? rescuer_thread+0x1340/0x1340 [ 10.247017][ T12] kthread+0x367/0x460 [ 10.247019][ T12] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 10.247022][ T12] ? kthread_affine_preferred+0x4c0/0x4c0 [ 10.247026][ T12] ret_from_fork+0x474/0x6b0 [ 10.247030][ T12] ? arch_exit_to_user_mode_prepare.isra.0+0x120/0x120 [ 10.247033][ T12] ? __switch_to+0x5a3/0xe00 [ 10.247037][ T12] ? kthread_affine_preferred+0x4c0/0x4c0 [ 10.247040][ T12] ret_from_fork_asm+0x11/0x20 [ 10.247048][ T12] [ 10.275983][ T12] b0 (unregistering): Released all slaves