[ 9.424403][ T190] t0: Port device b0 added [ 9.424462][ T190] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 9.424465][ T190] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 190, name: ip [ 9.424466][ T190] preempt_count: 1, expected: 0 [ 9.424467][ T190] RCU nest depth: 0, expected: 0 [ 9.424468][ T190] locks held by ip/190: 5, last CPU#0: [ 9.424470][ T190] #0: ffffffffa8b22700 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0x9a8/0x11b0 [ 9.424481][ T190] #1: ffffffffa8399cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 9.424487][ T190] #2: ffffffffa8399d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 9.424490][ T190] #3: ffffffffa8289660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 9.424493][ T190] #4: ffffffffa8289560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 9.424497][ T190] irq event stamp: 15744 [ 9.424498][ T190] hardirqs last enabled at (15743): [] __down_trylock_console_sem+0x86/0xa0 [ 9.424501][ T190] hardirqs last disabled at (15744): [] console_emit_next_record+0x3f8/0x4f0 [ 9.424502][ T190] softirqs last enabled at (15636): [] __alloc_skb+0x4c5/0x5f0 [ 9.424505][ T190] softirqs last disabled at (15634): [] __alloc_skb+0x4c5/0x5f0 [ 9.424508][ T190] Preemption disabled at: [ 9.424508][ T190] [] vprintk_emit+0x31b/0x3e0 [ 9.424513][ T190] CPU: 0 UID: 0 PID: 190 Comm: ip Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 9.424516][ T190] Tainted: [W]=WARN [ 9.424517][ T190] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 9.424519][ T190] Call Trace: [ 9.424520][ T190] [ 9.424522][ T190] dump_stack_lvl+0x6f/0xa0 [ 9.424527][ T190] ? vprintk_emit+0x31b/0x3e0 [ 9.424529][ T190] __might_resched.cold+0x1fe/0x2c1 [ 9.424533][ T190] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 9.424536][ T190] ? __kmalloc_noprof+0xdb/0x760 [ 9.424545][ T190] __kmalloc_noprof+0x443/0x760 [ 9.424548][ T190] ? alloc_buf.isra.0+0x4b/0x260 [ 9.424554][ T190] ? do_raw_spin_unlock+0x59/0x250 [ 9.424556][ T190] alloc_buf.isra.0+0x4b/0x260 [ 9.424559][ T190] put_chars+0x1e1/0x2f0 [ 9.424563][ T190] ? __send_to_port+0x420/0x420 [ 9.424566][ T190] ? validate_chain+0x34a/0xc20 [ 9.424571][ T190] hvc_console_print+0x292/0x780 [ 9.424575][ T190] ? __lock_acquire+0x518/0xc20 [ 9.424580][ T190] ? hvc_write+0x3a0/0x3a0 [ 9.424583][ T190] ? rcu_is_watching+0x16/0xd0 [ 9.424589][ T190] console_emit_next_record+0x252/0x4f0 [ 9.424592][ T190] ? devkmsg_read+0x4e0/0x4e0 [ 9.424596][ T190] ? rcu_is_watching+0x16/0xd0 [ 9.424598][ T190] ? lock_acquire+0x13c/0x160 [ 9.424602][ T190] console_flush_one_record+0x46f/0x710 [ 9.424605][ T190] ? console_emit_next_record+0x4f0/0x4f0 [ 9.424607][ T190] ? __lock_acquire+0x518/0xc20 [ 9.424612][ T190] console_unlock+0xee/0x1f0 [ 9.424614][ T190] ? console_flush_one_record+0x710/0x710 [ 9.424616][ T190] ? rcu_is_watching+0x16/0xd0 [ 9.424617][ T190] ? lock_acquire+0x60/0x160 [ 9.424621][ T190] ? __down_trylock_console_sem+0x5e/0xa0 [ 9.424623][ T190] ? vprintk_emit+0x320/0x3e0 [ 9.424626][ T190] vprintk_emit+0x37c/0x3e0 [ 9.424629][ T190] ? wake_up_klogd_work_func+0x90/0x90 [ 9.424631][ T190] ? __nlmsg_put+0x144/0x190 [ 9.424636][ T190] _printk+0xc7/0x100 [ 9.424639][ T190] ? snapshot_read.cold+0x21/0x21 [ 9.424644][ T190] ? netdev_name+0x43/0x60 [ 9.424647][ T190] ? __netdev_printk+0x17f/0x1d0 [ 9.424650][ T190] netdev_info+0xe2/0x116 [ 9.424652][ T190] ? netdev_notice+0x120/0x120 [ 9.424656][ T190] ? netdev_change_features+0xa0/0xa0 [ 9.424659][ T190] ? team_nl_send_options_get+0x650/0x650 [ 9.424665][ T190] team_port_add+0xfc9/0x17b0 [ 9.424670][ T190] ? team_port_enable+0xc0/0xc0 [ 9.424672][ T190] ? is_bpf_text_address+0x72/0x110 [ 9.424675][ T190] ? kernel_text_address+0x149/0x170 [ 9.424680][ T190] do_set_master+0x3b2/0x780 [ 9.424684][ T190] do_setlink.isra.0+0x9ec/0x2a60 [ 9.424688][ T190] ? stack_trace_save+0x93/0xc0 [ 9.424691][ T190] ? rtnl_link_get_size+0x350/0x350 [ 9.424693][ T190] ? rcu_read_lock_any_held+0x66/0x90 [ 9.424696][ T190] ? stack_depot_save_flags+0x38e/0x790 [ 9.424699][ T190] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 9.424701][ T190] ? rcu_read_lock_any_held+0x3c/0x90 [ 9.424703][ T190] ? validate_chain+0x38b/0xc20 [ 9.424706][ T190] ? kasan_save_stack+0x3d/0x50 [ 9.424708][ T190] ? kasan_save_stack+0x2f/0x50 [ 9.424709][ T190] ? kasan_save_track+0x14/0x30 [ 9.424711][ T190] ? __lock_acquire+0x518/0xc20 [ 9.424713][ T190] ? netlink_seq_next+0x5e/0x60 [ 9.424715][ T190] ? ___sys_sendmsg+0xc0/0x1d0 [ 9.424719][ T190] ? lock_acquire.part.0+0xd4/0x280 [ 9.424721][ T190] ? rtnl_newlink+0x9a8/0x11b0 [ 9.424724][ T190] ? rcu_is_watching+0x16/0xd0 [ 9.424726][ T190] ? lock_acquire+0x13c/0x160 [ 9.424727][ T190] ? rcu_is_watching+0x16/0xd0 [ 9.424729][ T190] ? rcu_is_watching+0x16/0xd0 [ 9.424730][ T190] ? trace_contention_end+0xb3/0x180 [ 9.424733][ T190] ? __mutex_lock+0x1db/0x1ea0 [ 9.424736][ T190] ? __mutex_lock+0x9a3/0x1ea0 [ 9.424738][ T190] ? rtnl_newlink+0x9a8/0x11b0 [ 9.424742][ T190] ? ww_mutex_lock+0x160/0x160 [ 9.424743][ T190] ? nla_get_range_signed+0x3d0/0x3d0 [ 9.424749][ T190] ? __rtnl_newlink+0x3fa/0xa50 [ 9.424754][ T190] rtnl_newlink+0x9f1/0x11b0 [ 9.424760][ T190] ? rtnl_bridge_getlink+0x850/0x850 [ 9.424762][ T190] ? __lock_acquire+0x518/0xc20 [ 9.424767][ T190] ? lock_acquire.part.0+0xd4/0x280 [ 9.424769][ T190] ? find_held_lock+0x2b/0x80 [ 9.424771][ T190] ? rtnl_bridge_getlink+0x850/0x850 [ 9.424773][ T190] ? __lock_release.isra.0+0x69/0x1a0 [ 9.424777][ T190] ? rtnl_bridge_getlink+0x850/0x850 [ 9.424780][ T190] rtnetlink_rcv_msg+0x6fd/0xbd0 [ 9.424783][ T190] ? rtnl_link_fill+0x900/0x900 [ 9.424785][ T190] ? __lock_acquire+0x518/0xc20 [ 9.424789][ T190] ? lock_acquire.part.0+0xd4/0x280 [ 9.424791][ T190] ? find_held_lock+0x2b/0x80 [ 9.424795][ T190] netlink_rcv_skb+0x14e/0x3a0 [ 9.424797][ T190] ? rtnl_link_fill+0x900/0x900 [ 9.424800][ T190] ? netlink_ack+0xcd0/0xcd0 [ 9.424806][ T190] ? netlink_deliver_tap+0xc5/0x330 [ 9.424807][ T190] ? netlink_deliver_tap+0x13c/0x330 [ 9.424812][ T190] netlink_unicast+0x486/0x750 [ 9.424815][ T190] ? netlink_attachskb+0x810/0x810 [ 9.424818][ T190] ? __lock_acquire+0x518/0xc20 [ 9.424822][ T190] netlink_sendmsg+0x735/0xc60 [ 9.424826][ T190] ? netlink_unicast+0x750/0x750 [ 9.424829][ T190] ? __might_fault+0x97/0x140 [ 9.424835][ T190] ____sys_sendmsg+0x415/0x880 [ 9.424837][ T190] ? copy_msghdr_from_user+0x279/0x420 [ 9.424839][ T190] ? get_timestamp.constprop.0+0x3a0/0x3a0 [ 9.424840][ T190] ? move_addr_to_kernel+0x40/0x40 [ 9.424847][ T190] ___sys_sendmsg+0x14e/0x1d0 [ 9.424849][ T190] ? copy_msghdr_from_user+0x420/0x420 [ 9.424864][ T190] __sys_sendmsg+0x12c/0x1d0 [ 9.424867][ T190] ? __sys_sendmsg_sock+0x20/0x20 [ 9.424873][ T190] ? rcu_is_watching+0x16/0xd0 [ 9.424876][ T190] do_syscall_64+0xff/0x530 [ 9.424878][ T190] ? exc_page_fault+0xee/0x100 [ 9.424881][ T190] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 9.424884][ T190] RIP: 0033:0x7f7b94a5054e [ 9.424888][ T190] 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.424889][ T190] RSP: 002b:00007ffc73bc8700 EFLAGS: 00000202 ORIG_RAX: 000000000000002e [ 9.424892][ T190] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f7b94a5054e [ 9.424893][ T190] RDX: 0000000000000000 RSI: 00007ffc73bc87b0 RDI: 0000000000000005 [ 9.424894][ T190] RBP: 00007ffc73bc8710 R08: 0000000000000000 R09: 0000000000000000 [ 9.424895][ T190] R10: 0000000000000000 R11: 0000000000000202 R12: 000000006a9169b9 [ 9.424896][ T190] R13: 00000000004a1620 R14: 0000000000000000 R15: 00007ffc73bc8e80 [ 9.424902][ T190] [ 9.464575][ T190] ip (190) used greatest stack depth: 23144 bytes left [ 10.691401][ T12] t0: Port device b0 removed [ 10.691450][ T12] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.691453][ T12] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 12, name: kworker/u16:0 [ 10.691454][ T12] preempt_count: 1, expected: 0 [ 10.691455][ T12] RCU nest depth: 0, expected: 0 [ 10.691456][ T12] locks held by kworker/u16:0/12: 8, last CPU#0: [ 10.691458][ T12] #0: ff11000001a09d40 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0xd9a/0x1560 [ 10.691469][ T12] #1: ffa00000000c7d10 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0xdfc/0x1560 [ 10.691472][ T12] #2: ffffffffa8b06b88 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0xbf/0x890 [ 10.691478][ T12] #3: ffffffffa8b22700 (rtnl_mutex){+.+.}-{4:4}, at: ops_undo_list+0x534/0x8f0 [ 10.691481][ T12] #4: ffffffffa8399cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.691485][ T12] #5: ffffffffa8399d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.691488][ T12] #6: ffffffffa8289660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.691491][ T12] #7: ffffffffa8289560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 10.691495][ T12] irq event stamp: 3400 [ 10.691496][ T12] hardirqs last enabled at (3399): [] __down_trylock_console_sem+0x86/0xa0 [ 10.691499][ T12] hardirqs last disabled at (3400): [] console_emit_next_record+0x3f8/0x4f0 [ 10.691501][ T12] softirqs last enabled at (3384): [] fib6_run_gc+0x162/0x250 [ 10.691504][ T12] softirqs last disabled at (3378): [] fib6_run_gc+0x1ac/0x250 [ 10.691506][ T12] Preemption disabled at: [ 10.691506][ T12] [] vprintk_emit+0x31b/0x3e0 [ 10.691512][ T12] CPU: 0 UID: 0 PID: 12 Comm: kworker/u16:0 Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.691515][ T12] Tainted: [W]=WARN [ 10.691516][ T12] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.691518][ T12] Workqueue: netns cleanup_net [ 10.691521][ T12] Call Trace: [ 10.691523][ T12] [ 10.691524][ T12] dump_stack_lvl+0x6f/0xa0 [ 10.691530][ T12] ? vprintk_emit+0x31b/0x3e0 [ 10.691532][ T12] __might_resched.cold+0x1fe/0x2c1 [ 10.691536][ T12] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.691540][ T12] ? __kmalloc_noprof+0xdb/0x760 [ 10.691550][ T12] __kmalloc_noprof+0x443/0x760 [ 10.691553][ T12] ? alloc_buf.isra.0+0x4b/0x260 [ 10.691559][ T12] ? do_raw_spin_unlock+0x59/0x250 [ 10.691562][ T12] alloc_buf.isra.0+0x4b/0x260 [ 10.691565][ T12] put_chars+0x1e1/0x2f0 [ 10.691569][ T12] ? __send_to_port+0x420/0x420 [ 10.691571][ T12] ? desc_read_finalized_seq+0x41/0x120 [ 10.691575][ T12] ? validate_chain+0x34a/0xc20 [ 10.691581][ T12] hvc_console_print+0x292/0x780 [ 10.691585][ T12] ? __lock_acquire+0x518/0xc20 [ 10.691587][ T12] ? __lock_acquire+0x518/0xc20 [ 10.691592][ T12] ? hvc_write+0x3a0/0x3a0 [ 10.691594][ T12] ? console_emit_next_record+0x202/0x4f0 [ 10.691596][ T12] ? rcu_is_watching+0x16/0xd0 [ 10.691600][ T12] ? lock_acquire+0x13c/0x160 [ 10.691605][ T12] console_emit_next_record+0x252/0x4f0 [ 10.691608][ T12] ? devkmsg_read+0x4e0/0x4e0 [ 10.691612][ T12] ? rcu_is_watching+0x16/0xd0 [ 10.691614][ T12] ? lock_acquire+0x13c/0x160 [ 10.691619][ T12] console_flush_one_record+0x46f/0x710 [ 10.691623][ T12] ? console_emit_next_record+0x4f0/0x4f0 [ 10.691624][ T12] ? __lock_acquire+0x518/0xc20 [ 10.691630][ T12] console_unlock+0xee/0x1f0 [ 10.691633][ T12] ? console_flush_one_record+0x710/0x710 [ 10.691634][ T12] ? rcu_is_watching+0x16/0xd0 [ 10.691636][ T12] ? lock_acquire+0x60/0x160 [ 10.691640][ T12] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.691642][ T12] ? vprintk_emit+0x320/0x3e0 [ 10.691646][ T12] vprintk_emit+0x37c/0x3e0 [ 10.691649][ T12] ? wake_up_klogd_work_func+0x90/0x90 [ 10.691651][ T12] ? unregister_netdevice_many_notify+0xc5a/0x1b40 [ 10.691654][ T12] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.691656][ T12] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.691658][ T12] ? look_up_lock_class+0x65/0x150 [ 10.691660][ T12] ? rcu_read_lock_any_held+0x3c/0x90 [ 10.691666][ T12] _printk+0xc7/0x100 [ 10.691669][ T12] ? snapshot_read.cold+0x21/0x21 [ 10.691673][ T12] ? __lock_acquire+0x518/0xc20 [ 10.691675][ T12] ? netdev_name+0x43/0x60 [ 10.691678][ T12] ? __netdev_printk+0x17f/0x1d0 [ 10.691682][ T12] netdev_info+0xe2/0x116 [ 10.691685][ T12] ? netdev_notice+0x120/0x120 [ 10.691689][ T12] ? lockdep_hardirqs_on_prepare.part.0+0x9a/0x160 [ 10.691691][ T12] ? lockdep_hardirqs_on+0x91/0x130 [ 10.691693][ T12] ? _raw_spin_unlock_irqrestore+0x53/0x80 [ 10.691696][ T12] ? _raw_spin_unlock_irqrestore+0x40/0x80 [ 10.691698][ T12] ? kvfree_call_rcu+0x23b/0x2e0 [ 10.691703][ T12] team_port_del+0x61d/0xaa0 [ 10.691709][ T12] team_device_event+0x1bc/0x530 [ 10.691711][ T12] ? rcu_is_watching+0x16/0xd0 [ 10.691713][ T12] notifier_call_chain+0xae/0x300 [ 10.691720][ T12] unregister_netdevice_many_notify+0xc5a/0x1b40 [ 10.691725][ T12] ? unregister_netdevice_queued+0x80/0x80 [ 10.691727][ T12] ? lockdep_hardirqs_on+0x91/0x130 [ 10.691729][ T12] ? __call_rcu_common.constprop.0+0x3d3/0xa20 [ 10.691734][ T12] ? rtnl_is_locked+0x15/0x20 [ 10.691736][ T12] ? nexthop_net_exit_rtnl+0x1f/0x270 [ 10.691742][ T12] ops_undo_list+0x615/0x8f0 [ 10.691746][ T12] ? rtnl_net_dumpid_one+0x2d0/0x2d0 [ 10.691748][ T12] ? __lock_release.isra.0+0x69/0x1a0 [ 10.691754][ T12] cleanup_net+0x431/0x890 [ 10.691757][ T12] ? net_passive_dec+0x230/0x230 [ 10.691760][ T12] ? lock_acquire+0x13c/0x160 [ 10.691762][ T12] ? rcu_is_watching+0x16/0xd0 [ 10.691766][ T12] process_one_work+0xe3e/0x1560 [ 10.691772][ T12] ? __queue_delayed_work+0x470/0x470 [ 10.691775][ T12] ? lock_acquire.part.0+0xd4/0x280 [ 10.691783][ T12] worker_thread+0x4f1/0xd60 [ 10.691790][ T12] ? rescuer_thread+0x1340/0x1340 [ 10.691792][ T12] kthread+0x367/0x460 [ 10.691795][ T12] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 10.691798][ T12] ? kthread_affine_preferred+0x4c0/0x4c0 [ 10.691801][ T12] ret_from_fork+0x474/0x6b0 [ 10.691806][ T12] ? arch_exit_to_user_mode_prepare.isra.0+0x120/0x120 [ 10.691809][ T12] ? __switch_to+0x5a3/0xe00 [ 10.691813][ T12] ? kthread_affine_preferred+0x4c0/0x4c0 [ 10.691816][ T12] ret_from_fork_asm+0x11/0x20 [ 10.691825][ T12] [ 10.717269][ T12] b0 (unregistering): Released all slaves