[ 9.169617][ T190] t0: Port device b0 added [ 9.169730][ T190] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 9.169733][ T190] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 190, name: ip [ 9.169734][ T190] preempt_count: 1, expected: 0 [ 9.169735][ T190] RCU nest depth: 0, expected: 0 [ 9.169736][ T190] locks held by ip/190: 5, last CPU#3: [ 9.169738][ T190] #0: ffffffff9d922700 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0x9a8/0x11b0 [ 9.169751][ T190] #1: ffffffff9d199cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 9.169756][ T190] #2: ffffffff9d199d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 9.169760][ T190] #3: ffffffff9d089660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 9.169763][ T190] #4: ffffffff9d089560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 9.169766][ T190] irq event stamp: 21878 [ 9.169767][ T190] hardirqs last enabled at (21877): [] __down_trylock_console_sem+0x86/0xa0 [ 9.169771][ T190] hardirqs last disabled at (21878): [] console_emit_next_record+0x3f8/0x4f0 [ 9.169772][ T190] softirqs last enabled at (21772): [] __alloc_skb+0x4c5/0x5f0 [ 9.169775][ T190] softirqs last disabled at (21770): [] __alloc_skb+0x4c5/0x5f0 [ 9.169777][ T190] Preemption disabled at: [ 9.169778][ T190] [] vprintk_emit+0x31b/0x3e0 [ 9.169783][ T190] CPU: 3 UID: 0 PID: 190 Comm: ip Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 9.169786][ T190] Tainted: [W]=WARN [ 9.169787][ T190] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 9.169789][ T190] Call Trace: [ 9.169790][ T190] [ 9.169792][ T190] dump_stack_lvl+0x6f/0xa0 [ 9.169799][ T190] ? vprintk_emit+0x31b/0x3e0 [ 9.169801][ T190] __might_resched.cold+0x1fe/0x2c1 [ 9.169805][ T190] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 9.169808][ T190] ? __kmalloc_noprof+0xdb/0x760 [ 9.169814][ T190] __kmalloc_noprof+0x443/0x760 [ 9.169816][ T190] ? alloc_buf.isra.0+0x4b/0x260 [ 9.169822][ T190] ? do_raw_spin_unlock+0x59/0x250 [ 9.169824][ T190] alloc_buf.isra.0+0x4b/0x260 [ 9.169828][ T190] put_chars+0x1e1/0x2f0 [ 9.169831][ T190] ? __send_to_port+0x420/0x420 [ 9.169835][ T190] ? validate_chain+0x34a/0xc20 [ 9.169840][ T190] hvc_console_print+0x292/0x780 [ 9.169844][ T190] ? __lock_acquire+0x518/0xc20 [ 9.169849][ T190] ? hvc_write+0x3a0/0x3a0 [ 9.169852][ T190] ? rcu_is_watching+0x16/0xd0 [ 9.169858][ T190] console_emit_next_record+0x252/0x4f0 [ 9.169861][ T190] ? devkmsg_read+0x4e0/0x4e0 [ 9.169865][ T190] ? rcu_is_watching+0x16/0xd0 [ 9.169867][ T190] ? lock_acquire+0x13c/0x160 [ 9.169871][ T190] console_flush_one_record+0x46f/0x710 [ 9.169874][ T190] ? console_emit_next_record+0x4f0/0x4f0 [ 9.169876][ T190] ? __lock_acquire+0x518/0xc20 [ 9.169881][ T190] console_unlock+0xee/0x1f0 [ 9.169883][ T190] ? console_flush_one_record+0x710/0x710 [ 9.169885][ T190] ? rcu_is_watching+0x16/0xd0 [ 9.169887][ T190] ? lock_acquire+0x60/0x160 [ 9.169890][ T190] ? __down_trylock_console_sem+0x5e/0xa0 [ 9.169892][ T190] ? vprintk_emit+0x320/0x3e0 [ 9.169895][ T190] vprintk_emit+0x37c/0x3e0 [ 9.169898][ T190] ? wake_up_klogd_work_func+0x90/0x90 [ 9.169901][ T190] ? __nlmsg_put+0x144/0x190 [ 9.169906][ T190] _printk+0xc7/0x100 [ 9.169909][ T190] ? snapshot_read.cold+0x21/0x21 [ 9.169913][ T190] ? netdev_name+0x43/0x60 [ 9.169916][ T190] ? __netdev_printk+0x17f/0x1d0 [ 9.169920][ T190] netdev_info+0xe2/0x116 [ 9.169922][ T190] ? netdev_notice+0x120/0x120 [ 9.169925][ T190] ? netdev_change_features+0xa0/0xa0 [ 9.169929][ T190] ? team_nl_send_options_get+0x650/0x650 [ 9.169935][ T190] team_port_add+0xfc9/0x17b0 [ 9.169940][ T190] ? team_port_enable+0xc0/0xc0 [ 9.169942][ T190] ? is_bpf_text_address+0x72/0x110 [ 9.169945][ T190] ? kernel_text_address+0x149/0x170 [ 9.169950][ T190] do_set_master+0x3b2/0x780 [ 9.169954][ T190] do_setlink.isra.0+0x9ec/0x2a60 [ 9.169958][ T190] ? stack_trace_save+0x93/0xc0 [ 9.169962][ T190] ? rtnl_link_get_size+0x350/0x350 [ 9.169963][ T190] ? rcu_read_lock_any_held+0x66/0x90 [ 9.169966][ T190] ? stack_depot_save_flags+0x38e/0x790 [ 9.169969][ T190] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 9.169972][ T190] ? rcu_read_lock_any_held+0x3c/0x90 [ 9.169974][ T190] ? validate_chain+0x38b/0xc20 [ 9.169977][ T190] ? kasan_save_stack+0x3d/0x50 [ 9.169979][ T190] ? kasan_save_stack+0x2f/0x50 [ 9.169980][ T190] ? kasan_save_track+0x14/0x30 [ 9.169982][ T190] ? __lock_acquire+0x518/0xc20 [ 9.169984][ T190] ? netlink_seq_next+0x5e/0x60 [ 9.169986][ T190] ? ___sys_sendmsg+0xc0/0x1d0 [ 9.169990][ T190] ? lock_acquire.part.0+0xd4/0x280 [ 9.169992][ T190] ? rtnl_newlink+0x9a8/0x11b0 [ 9.169995][ T190] ? rcu_is_watching+0x16/0xd0 [ 9.169997][ T190] ? lock_acquire+0x13c/0x160 [ 9.169999][ T190] ? rcu_is_watching+0x16/0xd0 [ 9.170000][ T190] ? rcu_is_watching+0x16/0xd0 [ 9.170002][ T190] ? trace_contention_end+0xb3/0x180 [ 9.170004][ T190] ? __mutex_lock+0x1db/0x1ea0 [ 9.170007][ T190] ? __mutex_lock+0x9a3/0x1ea0 [ 9.170009][ T190] ? rtnl_newlink+0x9a8/0x11b0 [ 9.170013][ T190] ? ww_mutex_lock+0x160/0x160 [ 9.170015][ T190] ? nla_get_range_signed+0x3d0/0x3d0 [ 9.170021][ T190] ? __rtnl_newlink+0x3fa/0xa50 [ 9.170026][ T190] rtnl_newlink+0x9f1/0x11b0 [ 9.170032][ T190] ? rtnl_bridge_getlink+0x850/0x850 [ 9.170034][ T190] ? __lock_acquire+0x518/0xc20 [ 9.170038][ T190] ? lock_acquire.part.0+0xd4/0x280 [ 9.170041][ T190] ? find_held_lock+0x2b/0x80 [ 9.170043][ T190] ? rtnl_bridge_getlink+0x850/0x850 [ 9.170045][ T190] ? __lock_release.isra.0+0x69/0x1a0 [ 9.170049][ T190] ? rtnl_bridge_getlink+0x850/0x850 [ 9.170051][ T190] rtnetlink_rcv_msg+0x6fd/0xbd0 [ 9.170055][ T190] ? rtnl_link_fill+0x900/0x900 [ 9.170057][ T190] ? __lock_acquire+0x518/0xc20 [ 9.170061][ T190] ? lock_acquire.part.0+0xd4/0x280 [ 9.170063][ T190] ? find_held_lock+0x2b/0x80 [ 9.170067][ T190] netlink_rcv_skb+0x14e/0x3a0 [ 9.170068][ T190] ? rtnl_link_fill+0x900/0x900 [ 9.170072][ T190] ? netlink_ack+0xcd0/0xcd0 [ 9.170078][ T190] ? netlink_deliver_tap+0xc5/0x330 [ 9.170079][ T190] ? netlink_deliver_tap+0x13c/0x330 [ 9.170084][ T190] netlink_unicast+0x486/0x750 [ 9.170087][ T190] ? netlink_attachskb+0x810/0x810 [ 9.170090][ T190] ? __lock_acquire+0x518/0xc20 [ 9.170094][ T190] netlink_sendmsg+0x735/0xc60 [ 9.170098][ T190] ? netlink_unicast+0x750/0x750 [ 9.170102][ T190] ? __might_fault+0x97/0x140 [ 9.170107][ T190] ____sys_sendmsg+0x415/0x880 [ 9.170109][ T190] ? copy_msghdr_from_user+0x279/0x420 [ 9.170111][ T190] ? get_timestamp.constprop.0+0x3a0/0x3a0 [ 9.170112][ T190] ? move_addr_to_kernel+0x40/0x40 [ 9.170119][ T190] ___sys_sendmsg+0x14e/0x1d0 [ 9.170122][ T190] ? copy_msghdr_from_user+0x420/0x420 [ 9.170136][ T190] __sys_sendmsg+0x12c/0x1d0 [ 9.170139][ T190] ? __sys_sendmsg_sock+0x20/0x20 [ 9.170145][ T190] ? rcu_is_watching+0x16/0xd0 [ 9.170148][ T190] do_syscall_64+0xff/0x530 [ 9.170150][ T190] ? exc_page_fault+0xee/0x100 [ 9.170153][ T190] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 9.170156][ T190] RIP: 0033:0x7f1a23a4554e [ 9.170159][ 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.170161][ T190] RSP: 002b:00007ffec090e1f0 EFLAGS: 00000202 ORIG_RAX: 000000000000002e [ 9.170164][ T190] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f1a23a4554e [ 9.170165][ T190] RDX: 0000000000000000 RSI: 00007ffec090e2a0 RDI: 0000000000000005 [ 9.170166][ T190] RBP: 00007ffec090e200 R08: 0000000000000000 R09: 0000000000000000 [ 9.170167][ T190] R10: 0000000000000000 R11: 0000000000000202 R12: 000000006a911412 [ 9.170168][ T190] R13: 00000000004a1620 R14: 0000000000000000 R15: 00007ffec090e970 [ 9.170174][ T190] [ 9.217259][ T190] ip (190) used greatest stack depth: 23144 bytes left [ 10.477683][ T70] t0: Port device b0 removed [ 10.477746][ T70] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.477748][ T70] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 70, name: kworker/u16:1 [ 10.477750][ T70] preempt_count: 1, expected: 0 [ 10.477752][ T70] RCU nest depth: 0, expected: 0 [ 10.477753][ T70] locks held by kworker/u16:1/70: 8, last CPU#0: [ 10.477756][ T70] #0: ff11000001a09d40 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0xd9a/0x1560 [ 10.477771][ T70] #1: ffa00000004b7d10 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0xdfc/0x1560 [ 10.477776][ T70] #2: ffffffff9d906b88 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0xbf/0x890 [ 10.477784][ T70] #3: ffffffff9d922700 (rtnl_mutex){+.+.}-{4:4}, at: ops_undo_list+0x534/0x8f0 [ 10.477789][ T70] #4: ffffffff9d199cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.477799][ T70] #5: ffffffff9d199d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.477804][ T70] #6: ffffffff9d089660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.477809][ T70] #7: ffffffff9d089560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 10.477815][ T70] irq event stamp: 3782 [ 10.477816][ T70] hardirqs last enabled at (3781): [] __down_trylock_console_sem+0x86/0xa0 [ 10.477820][ T70] hardirqs last disabled at (3782): [] console_emit_next_record+0x3f8/0x4f0 [ 10.477823][ T70] softirqs last enabled at (3766): [] fib6_run_gc+0x162/0x250 [ 10.477827][ T70] softirqs last disabled at (3760): [] fib6_run_gc+0x1ac/0x250 [ 10.477830][ T70] Preemption disabled at: [ 10.477831][ T70] [] vprintk_emit+0x31b/0x3e0 [ 10.477837][ T70] CPU: 0 UID: 0 PID: 70 Comm: kworker/u16:1 Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.477842][ T70] Tainted: [W]=WARN [ 10.477843][ T70] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.477845][ T70] Workqueue: netns cleanup_net [ 10.477849][ T70] Call Trace: [ 10.477851][ T70] [ 10.477854][ T70] dump_stack_lvl+0x6f/0xa0 [ 10.477861][ T70] ? vprintk_emit+0x31b/0x3e0 [ 10.477864][ T70] __might_resched.cold+0x1fe/0x2c1 [ 10.477870][ T70] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.477875][ T70] ? __kmalloc_noprof+0xdb/0x760 [ 10.477883][ T70] __kmalloc_noprof+0x443/0x760 [ 10.477887][ T70] ? alloc_buf.isra.0+0x4b/0x260 [ 10.477896][ T70] ? do_raw_spin_unlock+0x59/0x250 [ 10.477899][ T70] alloc_buf.isra.0+0x4b/0x260 [ 10.477905][ T70] put_chars+0x1e1/0x2f0 [ 10.477910][ T70] ? __send_to_port+0x420/0x420 [ 10.477912][ T70] ? desc_read_finalized_seq+0x41/0x120 [ 10.477919][ T70] ? validate_chain+0x34a/0xc20 [ 10.477928][ T70] hvc_console_print+0x292/0x780 [ 10.477932][ T70] ? __lock_acquire+0x518/0xc20 [ 10.477935][ T70] ? __lock_acquire+0x518/0xc20 [ 10.477944][ T70] ? hvc_write+0x3a0/0x3a0 [ 10.477946][ T70] ? console_emit_next_record+0x202/0x4f0 [ 10.477951][ T70] ? rcu_is_watching+0x16/0xd0 [ 10.477956][ T70] ? lock_acquire+0x13c/0x160 [ 10.477964][ T70] console_emit_next_record+0x252/0x4f0 [ 10.477970][ T70] ? devkmsg_read+0x4e0/0x4e0 [ 10.477977][ T70] ? rcu_is_watching+0x16/0xd0 [ 10.477980][ T70] ? lock_acquire+0x13c/0x160 [ 10.477988][ T70] console_flush_one_record+0x46f/0x710 [ 10.477994][ T70] ? console_emit_next_record+0x4f0/0x4f0 [ 10.477997][ T70] ? __lock_acquire+0x518/0xc20 [ 10.478007][ T70] console_unlock+0xee/0x1f0 [ 10.478011][ T70] ? console_flush_one_record+0x710/0x710 [ 10.478013][ T70] ? rcu_is_watching+0x16/0xd0 [ 10.478016][ T70] ? lock_acquire+0x60/0x160 [ 10.478023][ T70] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.478026][ T70] ? vprintk_emit+0x320/0x3e0 [ 10.478031][ T70] vprintk_emit+0x37c/0x3e0 [ 10.478037][ T70] ? wake_up_klogd_work_func+0x90/0x90 [ 10.478039][ T70] ? unregister_netdevice_many_notify+0xc5a/0x1b40 [ 10.478043][ T70] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.478046][ T70] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.478049][ T70] ? look_up_lock_class+0x65/0x150 [ 10.478053][ T70] ? rcu_read_lock_any_held+0x3c/0x90 [ 10.478061][ T70] _printk+0xc7/0x100 [ 10.478066][ T70] ? snapshot_read.cold+0x21/0x21 [ 10.478072][ T70] ? __lock_acquire+0x518/0xc20 [ 10.478076][ T70] ? netdev_name+0x43/0x60 [ 10.478080][ T70] ? __netdev_printk+0x17f/0x1d0 [ 10.478087][ T70] netdev_info+0xe2/0x116 [ 10.478091][ T70] ? netdev_notice+0x120/0x120 [ 10.478099][ T70] ? lockdep_hardirqs_on_prepare.part.0+0x9a/0x160 [ 10.478103][ T70] ? lockdep_hardirqs_on+0x91/0x130 [ 10.478105][ T70] ? _raw_spin_unlock_irqrestore+0x53/0x80 [ 10.478109][ T70] ? _raw_spin_unlock_irqrestore+0x40/0x80 [ 10.478112][ T70] ? kvfree_call_rcu+0x23b/0x2e0 [ 10.478120][ T70] team_port_del+0x61d/0xaa0 [ 10.478129][ T70] team_device_event+0x1bc/0x530 [ 10.478132][ T70] ? rcu_is_watching+0x16/0xd0 [ 10.478136][ T70] notifier_call_chain+0xae/0x300 [ 10.478146][ T70] unregister_netdevice_many_notify+0xc5a/0x1b40 [ 10.478155][ T70] ? unregister_netdevice_queued+0x80/0x80 [ 10.478158][ T70] ? lockdep_hardirqs_on+0x91/0x130 [ 10.478161][ T70] ? __call_rcu_common.constprop.0+0x3d3/0xa20 [ 10.478168][ T70] ? rtnl_is_locked+0x15/0x20 [ 10.478172][ T70] ? nexthop_net_exit_rtnl+0x1f/0x270 [ 10.478181][ T70] ops_undo_list+0x615/0x8f0 [ 10.478188][ T70] ? rtnl_net_dumpid_one+0x2d0/0x2d0 [ 10.478191][ T70] ? __lock_release.isra.0+0x69/0x1a0 [ 10.478201][ T70] cleanup_net+0x431/0x890 [ 10.478206][ T70] ? net_passive_dec+0x230/0x230 [ 10.478212][ T70] ? lock_acquire+0x13c/0x160 [ 10.478215][ T70] ? rcu_is_watching+0x16/0xd0 [ 10.478221][ T70] process_one_work+0xe3e/0x1560 [ 10.478233][ T70] ? __queue_delayed_work+0x470/0x470 [ 10.478237][ T70] ? lock_acquire.part.0+0xd4/0x280 [ 10.478251][ T70] worker_thread+0x4f1/0xd60 [ 10.478258][ T70] ? rescuer_thread+0x1340/0x1340 [ 10.478260][ T70] ? __kthread_parkme+0xbd/0x210 [ 10.478265][ T70] ? rescuer_thread+0x1340/0x1340 [ 10.478269][ T70] ? rescuer_thread+0x1340/0x1340 [ 10.478272][ T70] kthread+0x367/0x460 [ 10.478274][ T70] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 10.478279][ T70] ? kthread_affine_preferred+0x4c0/0x4c0 [ 10.478284][ T70] ret_from_fork+0x474/0x6b0 [ 10.478290][ T70] ? arch_exit_to_user_mode_prepare.isra.0+0x120/0x120 [ 10.478296][ T70] ? __switch_to+0x5a3/0xe00 [ 10.478301][ T70] ? kthread_affine_preferred+0x4c0/0x4c0 [ 10.478306][ T70] ret_from_fork_asm+0x11/0x20 [ 10.478321][ T70] [ 10.518536][ T70] b0 (unregistering): Released all slaves