[ 8.992740][ T191] t0: Port device b0 added [ 8.992798][ T191] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 8.992800][ T191] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 191, name: ip [ 8.992802][ T191] preempt_count: 1, expected: 0 [ 8.992803][ T191] RCU nest depth: 0, expected: 0 [ 8.992804][ T191] locks held by ip/191: 5, last CPU#3: [ 8.992806][ T191] #0: ffffffffa0d22700 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0x9a8/0x11b0 [ 8.992818][ T191] #1: ffffffffa0599cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 8.992824][ T191] #2: ffffffffa0599d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 8.992827][ T191] #3: ffffffffa0489660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 8.992830][ T191] #4: ffffffffa0489560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 8.992834][ T191] irq event stamp: 19706 [ 8.992835][ T191] hardirqs last enabled at (19705): [] __down_trylock_console_sem+0x86/0xa0 [ 8.992838][ T191] hardirqs last disabled at (19706): [] console_emit_next_record+0x3f8/0x4f0 [ 8.992840][ T191] softirqs last enabled at (19600): [] __alloc_skb+0x4c5/0x5f0 [ 8.992843][ T191] softirqs last disabled at (19598): [] __alloc_skb+0x4c5/0x5f0 [ 8.992845][ T191] Preemption disabled at: [ 8.992846][ T191] [] vprintk_emit+0x31b/0x3e0 [ 8.992851][ T191] CPU: 3 UID: 0 PID: 191 Comm: ip Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 8.992854][ T191] Tainted: [W]=WARN [ 8.992855][ T191] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 8.992857][ T191] Call Trace: [ 8.992859][ T191] [ 8.992860][ T191] dump_stack_lvl+0x6f/0xa0 [ 8.992865][ T191] ? vprintk_emit+0x31b/0x3e0 [ 8.992867][ T191] __might_resched.cold+0x1fe/0x2c1 [ 8.992872][ T191] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 8.992875][ T191] ? __kmalloc_noprof+0xdb/0x760 [ 8.992885][ T191] __kmalloc_noprof+0x443/0x760 [ 8.992887][ T191] ? alloc_buf.isra.0+0x4b/0x260 [ 8.992893][ T191] ? do_raw_spin_unlock+0x59/0x250 [ 8.992895][ T191] alloc_buf.isra.0+0x4b/0x260 [ 8.992899][ T191] put_chars+0x1e1/0x2f0 [ 8.992902][ T191] ? __send_to_port+0x420/0x420 [ 8.992906][ T191] ? validate_chain+0x34a/0xc20 [ 8.992911][ T191] hvc_console_print+0x292/0x780 [ 8.992915][ T191] ? __lock_acquire+0x518/0xc20 [ 8.992920][ T191] ? hvc_write+0x3a0/0x3a0 [ 8.992923][ T191] ? rcu_is_watching+0x16/0xd0 [ 8.992929][ T191] console_emit_next_record+0x252/0x4f0 [ 8.992932][ T191] ? devkmsg_read+0x4e0/0x4e0 [ 8.992936][ T191] ? rcu_is_watching+0x16/0xd0 [ 8.992938][ T191] ? lock_acquire+0x13c/0x160 [ 8.992942][ T191] console_flush_one_record+0x46f/0x710 [ 8.992945][ T191] ? console_emit_next_record+0x4f0/0x4f0 [ 8.992947][ T191] ? __lock_acquire+0x518/0xc20 [ 8.992952][ T191] console_unlock+0xee/0x1f0 [ 8.992954][ T191] ? console_flush_one_record+0x710/0x710 [ 8.992955][ T191] ? rcu_is_watching+0x16/0xd0 [ 8.992958][ T191] ? lock_acquire+0x60/0x160 [ 8.992961][ T191] ? __down_trylock_console_sem+0x5e/0xa0 [ 8.992963][ T191] ? vprintk_emit+0x320/0x3e0 [ 8.992966][ T191] vprintk_emit+0x37c/0x3e0 [ 8.992969][ T191] ? wake_up_klogd_work_func+0x90/0x90 [ 8.992972][ T191] ? __nlmsg_put+0x144/0x190 [ 8.992977][ T191] _printk+0xc7/0x100 [ 8.992980][ T191] ? snapshot_read.cold+0x21/0x21 [ 8.992985][ T191] ? netdev_name+0x43/0x60 [ 8.992988][ T191] ? __netdev_printk+0x17f/0x1d0 [ 8.992991][ T191] netdev_info+0xe2/0x116 [ 8.992993][ T191] ? netdev_notice+0x120/0x120 [ 8.992997][ T191] ? netdev_change_features+0xa0/0xa0 [ 8.993001][ T191] ? team_nl_send_options_get+0x650/0x650 [ 8.993007][ T191] team_port_add+0xfc9/0x17b0 [ 8.993012][ T191] ? team_port_enable+0xc0/0xc0 [ 8.993014][ T191] ? is_bpf_text_address+0x72/0x110 [ 8.993017][ T191] ? kernel_text_address+0x149/0x170 [ 8.993022][ T191] do_set_master+0x3b2/0x780 [ 8.993026][ T191] do_setlink.isra.0+0x9ec/0x2a60 [ 8.993030][ T191] ? stack_trace_save+0x93/0xc0 [ 8.993033][ T191] ? rtnl_link_get_size+0x350/0x350 [ 8.993035][ T191] ? rcu_read_lock_any_held+0x66/0x90 [ 8.993038][ T191] ? stack_depot_save_flags+0x38e/0x790 [ 8.993041][ T191] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 8.993043][ T191] ? rcu_read_lock_any_held+0x3c/0x90 [ 8.993045][ T191] ? validate_chain+0x38b/0xc20 [ 8.993048][ T191] ? kasan_save_stack+0x3d/0x50 [ 8.993050][ T191] ? kasan_save_stack+0x2f/0x50 [ 8.993052][ T191] ? kasan_save_track+0x14/0x30 [ 8.993054][ T191] ? __lock_acquire+0x518/0xc20 [ 8.993056][ T191] ? netlink_seq_next+0x5e/0x60 [ 8.993058][ T191] ? ___sys_sendmsg+0xc0/0x1d0 [ 8.993062][ T191] ? lock_acquire.part.0+0xd4/0x280 [ 8.993064][ T191] ? rtnl_newlink+0x9a8/0x11b0 [ 8.993067][ T191] ? rcu_is_watching+0x16/0xd0 [ 8.993069][ T191] ? lock_acquire+0x13c/0x160 [ 8.993070][ T191] ? rcu_is_watching+0x16/0xd0 [ 8.993072][ T191] ? rcu_is_watching+0x16/0xd0 [ 8.993074][ T191] ? trace_contention_end+0xb3/0x180 [ 8.993076][ T191] ? __mutex_lock+0x1db/0x1ea0 [ 8.993079][ T191] ? __mutex_lock+0x9a3/0x1ea0 [ 8.993081][ T191] ? rtnl_newlink+0x9a8/0x11b0 [ 8.993085][ T191] ? ww_mutex_lock+0x160/0x160 [ 8.993086][ T191] ? nla_get_range_signed+0x3d0/0x3d0 [ 8.993092][ T191] ? __rtnl_newlink+0x3fa/0xa50 [ 8.993098][ T191] rtnl_newlink+0x9f1/0x11b0 [ 8.993103][ T191] ? rtnl_bridge_getlink+0x850/0x850 [ 8.993106][ T191] ? __lock_acquire+0x518/0xc20 [ 8.993110][ T191] ? lock_acquire.part.0+0xd4/0x280 [ 8.993113][ T191] ? find_held_lock+0x2b/0x80 [ 8.993115][ T191] ? rtnl_bridge_getlink+0x850/0x850 [ 8.993117][ T191] ? __lock_release.isra.0+0x69/0x1a0 [ 8.993121][ T191] ? rtnl_bridge_getlink+0x850/0x850 [ 8.993124][ T191] rtnetlink_rcv_msg+0x6fd/0xbd0 [ 8.993127][ T191] ? rtnl_link_fill+0x900/0x900 [ 8.993129][ T191] ? __lock_acquire+0x518/0xc20 [ 8.993134][ T191] ? lock_acquire.part.0+0xd4/0x280 [ 8.993136][ T191] ? find_held_lock+0x2b/0x80 [ 8.993139][ T191] netlink_rcv_skb+0x14e/0x3a0 [ 8.993141][ T191] ? rtnl_link_fill+0x900/0x900 [ 8.993144][ T191] ? netlink_ack+0xcd0/0xcd0 [ 8.993150][ T191] ? netlink_deliver_tap+0xc5/0x330 [ 8.993152][ T191] ? netlink_deliver_tap+0x13c/0x330 [ 8.993156][ T191] netlink_unicast+0x486/0x750 [ 8.993160][ T191] ? netlink_attachskb+0x810/0x810 [ 8.993162][ T191] ? __lock_acquire+0x518/0xc20 [ 8.993166][ T191] netlink_sendmsg+0x735/0xc60 [ 8.993170][ T191] ? netlink_unicast+0x750/0x750 [ 8.993174][ T191] ? __might_fault+0x97/0x140 [ 8.993180][ T191] ____sys_sendmsg+0x415/0x880 [ 8.993182][ T191] ? copy_msghdr_from_user+0x279/0x420 [ 8.993184][ T191] ? get_timestamp.constprop.0+0x3a0/0x3a0 [ 8.993185][ T191] ? move_addr_to_kernel+0x40/0x40 [ 8.993192][ T191] ___sys_sendmsg+0x14e/0x1d0 [ 8.993194][ T191] ? copy_msghdr_from_user+0x420/0x420 [ 8.993209][ T191] __sys_sendmsg+0x12c/0x1d0 [ 8.993212][ T191] ? __sys_sendmsg_sock+0x20/0x20 [ 8.993218][ T191] ? rcu_is_watching+0x16/0xd0 [ 8.993221][ T191] do_syscall_64+0xff/0x530 [ 8.993223][ T191] ? exc_page_fault+0xee/0x100 [ 8.993226][ T191] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 8.993228][ T191] RIP: 0033:0x7f284f1d054e [ 8.993232][ T191] 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 [ 8.993234][ T191] RSP: 002b:00007fffcb37cda0 EFLAGS: 00000202 ORIG_RAX: 000000000000002e [ 8.993236][ T191] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f284f1d054e [ 8.993238][ T191] RDX: 0000000000000000 RSI: 00007fffcb37ce50 RDI: 0000000000000005 [ 8.993239][ T191] RBP: 00007fffcb37cdb0 R08: 0000000000000000 R09: 0000000000000000 [ 8.993239][ T191] R10: 0000000000000000 R11: 0000000000000202 R12: 000000006a90ed02 [ 8.993240][ T191] R13: 00000000004a1620 R14: 0000000000000000 R15: 00007fffcb37d520 [ 8.993247][ T191] [ 9.038123][ T191] ip (191) used greatest stack depth: 23144 bytes left [ 10.161531][ T12] t0: Port device b0 removed [ 10.161581][ T12] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.161584][ T12] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 12, name: kworker/u16:0 [ 10.161585][ T12] preempt_count: 1, expected: 0 [ 10.161586][ T12] RCU nest depth: 0, expected: 0 [ 10.161587][ T12] locks held by kworker/u16:0/12: 8, last CPU#0: [ 10.161589][ T12] #0: ff11000001a09d40 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0xd9a/0x1560 [ 10.161601][ T12] #1: ffa00000000c7d10 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0xdfc/0x1560 [ 10.161604][ T12] #2: ffffffffa0d06b88 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0xbf/0x890 [ 10.161609][ T12] #3: ffffffffa0d22700 (rtnl_mutex){+.+.}-{4:4}, at: ops_undo_list+0x534/0x8f0 [ 10.161612][ T12] #4: ffffffffa0599cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.161616][ T12] #5: ffffffffa0599d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.161620][ T12] #6: ffffffffa0489660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.161623][ T12] #7: ffffffffa0489560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 10.161626][ T12] irq event stamp: 10422 [ 10.161627][ T12] hardirqs last enabled at (10421): [] __down_trylock_console_sem+0x86/0xa0 [ 10.161631][ T12] hardirqs last disabled at (10422): [] console_emit_next_record+0x3f8/0x4f0 [ 10.161632][ T12] softirqs last enabled at (10406): [] fib6_run_gc+0x162/0x250 [ 10.161635][ T12] softirqs last disabled at (10400): [] fib6_run_gc+0x1ac/0x250 [ 10.161637][ T12] Preemption disabled at: [ 10.161638][ T12] [] vprintk_emit+0x31b/0x3e0 [ 10.161643][ T12] CPU: 0 UID: 0 PID: 12 Comm: kworker/u16:0 Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.161647][ T12] Tainted: [W]=WARN [ 10.161648][ T12] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.161650][ T12] Workqueue: netns cleanup_net [ 10.161652][ T12] Call Trace: [ 10.161654][ T12] [ 10.161656][ T12] dump_stack_lvl+0x6f/0xa0 [ 10.161661][ T12] ? vprintk_emit+0x31b/0x3e0 [ 10.161663][ T12] __might_resched.cold+0x1fe/0x2c1 [ 10.161668][ T12] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.161671][ T12] ? __kmalloc_noprof+0xdb/0x760 [ 10.161677][ T12] __kmalloc_noprof+0x443/0x760 [ 10.161679][ T12] ? alloc_buf.isra.0+0x4b/0x260 [ 10.161686][ T12] ? do_raw_spin_unlock+0x59/0x250 [ 10.161688][ T12] alloc_buf.isra.0+0x4b/0x260 [ 10.161692][ T12] put_chars+0x1e1/0x2f0 [ 10.161695][ T12] ? __send_to_port+0x420/0x420 [ 10.161697][ T12] ? desc_read_finalized_seq+0x41/0x120 [ 10.161701][ T12] ? validate_chain+0x34a/0xc20 [ 10.161706][ T12] hvc_console_print+0x292/0x780 [ 10.161710][ T12] ? __lock_acquire+0x518/0xc20 [ 10.161712][ T12] ? __lock_acquire+0x518/0xc20 [ 10.161717][ T12] ? hvc_write+0x3a0/0x3a0 [ 10.161719][ T12] ? console_emit_next_record+0x202/0x4f0 [ 10.161722][ T12] ? rcu_is_watching+0x16/0xd0 [ 10.161725][ T12] ? lock_acquire+0x13c/0x160 [ 10.161730][ T12] console_emit_next_record+0x252/0x4f0 [ 10.161733][ T12] ? devkmsg_read+0x4e0/0x4e0 [ 10.161737][ T12] ? rcu_is_watching+0x16/0xd0 [ 10.161739][ T12] ? lock_acquire+0x13c/0x160 [ 10.161744][ T12] console_flush_one_record+0x46f/0x710 [ 10.161748][ T12] ? console_emit_next_record+0x4f0/0x4f0 [ 10.161749][ T12] ? __lock_acquire+0x518/0xc20 [ 10.161755][ T12] console_unlock+0xee/0x1f0 [ 10.161758][ T12] ? console_flush_one_record+0x710/0x710 [ 10.161759][ T12] ? rcu_is_watching+0x16/0xd0 [ 10.161761][ T12] ? lock_acquire+0x60/0x160 [ 10.161765][ T12] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.161767][ T12] ? vprintk_emit+0x320/0x3e0 [ 10.161770][ T12] vprintk_emit+0x37c/0x3e0 [ 10.161774][ T12] ? wake_up_klogd_work_func+0x90/0x90 [ 10.161775][ T12] ? unregister_netdevice_many_notify+0xc5a/0x1b40 [ 10.161778][ T12] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.161780][ T12] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.161782][ T12] ? look_up_lock_class+0x65/0x150 [ 10.161785][ T12] ? rcu_read_lock_any_held+0x3c/0x90 [ 10.161790][ T12] _printk+0xc7/0x100 [ 10.161794][ T12] ? snapshot_read.cold+0x21/0x21 [ 10.161797][ T12] ? __lock_acquire+0x518/0xc20 [ 10.161800][ T12] ? netdev_name+0x43/0x60 [ 10.161803][ T12] ? __netdev_printk+0x17f/0x1d0 [ 10.161807][ T12] netdev_info+0xe2/0x116 [ 10.161809][ T12] ? netdev_notice+0x120/0x120 [ 10.161814][ T12] ? lockdep_hardirqs_on_prepare.part.0+0x9a/0x160 [ 10.161816][ T12] ? lockdep_hardirqs_on+0x91/0x130 [ 10.161817][ T12] ? _raw_spin_unlock_irqrestore+0x53/0x80 [ 10.161820][ T12] ? _raw_spin_unlock_irqrestore+0x40/0x80 [ 10.161822][ T12] ? kvfree_call_rcu+0x23b/0x2e0 [ 10.161827][ T12] team_port_del+0x61d/0xaa0 [ 10.161834][ T12] team_device_event+0x1bc/0x530 [ 10.161835][ T12] ? rcu_is_watching+0x16/0xd0 [ 10.161837][ T12] notifier_call_chain+0xae/0x300 [ 10.161844][ T12] unregister_netdevice_many_notify+0xc5a/0x1b40 [ 10.161849][ T12] ? unregister_netdevice_queued+0x80/0x80 [ 10.161851][ T12] ? lockdep_hardirqs_on+0x91/0x130 [ 10.161853][ T12] ? __call_rcu_common.constprop.0+0x3d3/0xa20 [ 10.161857][ T12] ? rtnl_is_locked+0x15/0x20 [ 10.161860][ T12] ? nexthop_net_exit_rtnl+0x1f/0x270 [ 10.161866][ T12] ops_undo_list+0x615/0x8f0 [ 10.161870][ T12] ? rtnl_net_dumpid_one+0x2d0/0x2d0 [ 10.161871][ T12] ? __lock_release.isra.0+0x69/0x1a0 [ 10.161877][ T12] cleanup_net+0x431/0x890 [ 10.161884][ T12] ? net_passive_dec+0x230/0x230 [ 10.161887][ T12] ? lock_acquire+0x13c/0x160 [ 10.161889][ T12] ? rcu_is_watching+0x16/0xd0 [ 10.161893][ T12] process_one_work+0xe3e/0x1560 [ 10.161899][ T12] ? __queue_delayed_work+0x470/0x470 [ 10.161902][ T12] ? lock_acquire.part.0+0xd4/0x280 [ 10.161910][ T12] worker_thread+0x4f1/0xd60 [ 10.161916][ T12] ? rescuer_thread+0x1340/0x1340 [ 10.161918][ T12] kthread+0x367/0x460 [ 10.161920][ T12] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 10.161924][ T12] ? kthread_affine_preferred+0x4c0/0x4c0 [ 10.161927][ T12] ret_from_fork+0x474/0x6b0 [ 10.161931][ T12] ? arch_exit_to_user_mode_prepare.isra.0+0x120/0x120 [ 10.161935][ T12] ? __switch_to+0x5a3/0xe00 [ 10.161938][ T12] ? kthread_affine_preferred+0x4c0/0x4c0 [ 10.161941][ T12] ret_from_fork_asm+0x11/0x20 [ 10.161950][ T12] [ 10.185502][ T12] b0 (unregistering): Released all slaves