[ 9.091216][ T185] team1: Port device dummy1 added [ 9.091271][ T185] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 9.091274][ T185] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 185, name: ip [ 9.091275][ T185] preempt_count: 1, expected: 0 [ 9.091276][ T185] RCU nest depth: 0, expected: 0 [ 9.091277][ T185] locks held by ip/185: 5, last CPU#0: [ 9.091279][ T185] #0: ffffffff9e322700 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0x9a8/0x11b0 [ 9.091291][ T185] #1: ffffffff9db99cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 9.091297][ T185] #2: ffffffff9db99d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 9.091300][ T185] #3: ffffffff9da89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 9.091303][ T185] #4: ffffffff9da89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 9.091306][ T185] irq event stamp: 24778 [ 9.091307][ T185] hardirqs last enabled at (24777): [] __down_trylock_console_sem+0x86/0xa0 [ 9.091310][ T185] hardirqs last disabled at (24778): [] console_emit_next_record+0x3f8/0x4f0 [ 9.091312][ T185] softirqs last enabled at (24672): [] __alloc_skb+0x4c5/0x5f0 [ 9.091315][ T185] softirqs last disabled at (24670): [] __alloc_skb+0x4c5/0x5f0 [ 9.091317][ T185] Preemption disabled at: [ 9.091318][ T185] [] vprintk_emit+0x31b/0x3e0 [ 9.091324][ T185] CPU: 0 UID: 0 PID: 185 Comm: ip Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 9.091327][ T185] Tainted: [W]=WARN [ 9.091328][ T185] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 9.091330][ T185] Call Trace: [ 9.091331][ T185] [ 9.091333][ T185] dump_stack_lvl+0x6f/0xa0 [ 9.091338][ T185] ? vprintk_emit+0x31b/0x3e0 [ 9.091340][ T185] __might_resched.cold+0x1fe/0x2c1 [ 9.091344][ T185] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 9.091348][ T185] ? __kmalloc_noprof+0xdb/0x760 [ 9.091353][ T185] __kmalloc_noprof+0x443/0x760 [ 9.091355][ T185] ? alloc_buf.isra.0+0x4b/0x260 [ 9.091361][ T185] ? do_raw_spin_unlock+0x59/0x250 [ 9.091363][ T185] alloc_buf.isra.0+0x4b/0x260 [ 9.091366][ T185] put_chars+0x1e1/0x2f0 [ 9.091370][ T185] ? __send_to_port+0x420/0x420 [ 9.091373][ T185] ? validate_chain+0x34a/0xc20 [ 9.091378][ T185] hvc_console_print+0x292/0x780 [ 9.091382][ T185] ? __lock_acquire+0x518/0xc20 [ 9.091387][ T185] ? hvc_write+0x3a0/0x3a0 [ 9.091390][ T185] ? rcu_is_watching+0x16/0xd0 [ 9.091396][ T185] console_emit_next_record+0x252/0x4f0 [ 9.091399][ T185] ? devkmsg_read+0x4e0/0x4e0 [ 9.091403][ T185] ? rcu_is_watching+0x16/0xd0 [ 9.091404][ T185] ? lock_acquire+0x13c/0x160 [ 9.091409][ T185] console_flush_one_record+0x46f/0x710 [ 9.091412][ T185] ? console_emit_next_record+0x4f0/0x4f0 [ 9.091414][ T185] ? __lock_acquire+0x518/0xc20 [ 9.091419][ T185] console_unlock+0xee/0x1f0 [ 9.091421][ T185] ? console_flush_one_record+0x710/0x710 [ 9.091423][ T185] ? rcu_is_watching+0x16/0xd0 [ 9.091424][ T185] ? lock_acquire+0x60/0x160 [ 9.091428][ T185] ? __down_trylock_console_sem+0x5e/0xa0 [ 9.091430][ T185] ? vprintk_emit+0x320/0x3e0 [ 9.091433][ T185] vprintk_emit+0x37c/0x3e0 [ 9.091436][ T185] ? wake_up_klogd_work_func+0x90/0x90 [ 9.091439][ T185] ? __nlmsg_put+0x144/0x190 [ 9.091444][ T185] _printk+0xc7/0x100 [ 9.091447][ T185] ? snapshot_read.cold+0x21/0x21 [ 9.091451][ T185] ? netdev_name+0x43/0x60 [ 9.091454][ T185] ? __netdev_printk+0x17f/0x1d0 [ 9.091458][ T185] netdev_info+0xe2/0x116 [ 9.091460][ T185] ? netdev_notice+0x120/0x120 [ 9.091464][ T185] ? _mutex_trylock_nest_lock+0x390/0x390 [ 9.091467][ T185] ? team_nl_send_options_get+0x650/0x650 [ 9.091471][ T185] ? lockdep_hardirqs_on+0x91/0x130 [ 9.091475][ T185] team_port_add+0xfc9/0x17b0 [ 9.091481][ T185] ? team_port_enable+0xc0/0xc0 [ 9.091482][ T185] ? is_bpf_text_address+0x72/0x110 [ 9.091489][ T185] do_set_master+0x3b2/0x780 [ 9.091493][ T185] do_setlink.isra.0+0x9ec/0x2a60 [ 9.091496][ T185] ? stack_trace_save+0x93/0xc0 [ 9.091500][ T185] ? rtnl_link_get_size+0x350/0x350 [ 9.091501][ T185] ? rcu_read_lock_any_held+0x66/0x90 [ 9.091504][ T185] ? stack_depot_save_flags+0x38e/0x790 [ 9.091508][ T185] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 9.091510][ T185] ? rcu_read_lock_any_held+0x3c/0x90 [ 9.091512][ T185] ? validate_chain+0x38b/0xc20 [ 9.091515][ T185] ? kasan_save_stack+0x3d/0x50 [ 9.091517][ T185] ? kasan_save_stack+0x2f/0x50 [ 9.091518][ T185] ? kasan_save_track+0x14/0x30 [ 9.091520][ T185] ? __lock_acquire+0x518/0xc20 [ 9.091522][ T185] ? netlink_seq_next+0x1e/0x60 [ 9.091524][ T185] ? ___sys_sendmsg+0xc0/0x1d0 [ 9.091528][ T185] ? lock_acquire.part.0+0xd4/0x280 [ 9.091530][ T185] ? rtnl_newlink+0x9a8/0x11b0 [ 9.091533][ T185] ? rcu_is_watching+0x16/0xd0 [ 9.091535][ T185] ? lock_acquire+0x13c/0x160 [ 9.091537][ T185] ? rcu_is_watching+0x16/0xd0 [ 9.091538][ T185] ? rcu_is_watching+0x16/0xd0 [ 9.091540][ T185] ? trace_contention_end+0xb3/0x180 [ 9.091542][ T185] ? __mutex_lock+0x1db/0x1ea0 [ 9.091544][ T185] ? __mutex_lock+0x9a3/0x1ea0 [ 9.091546][ T185] ? rtnl_newlink+0x9a8/0x11b0 [ 9.091549][ T185] ? ww_mutex_lock+0x160/0x160 [ 9.091551][ T185] ? nla_get_range_signed+0x3d0/0x3d0 [ 9.091557][ T185] ? __rtnl_newlink+0x3fa/0xa50 [ 9.091562][ T185] rtnl_newlink+0x9f1/0x11b0 [ 9.091568][ T185] ? rtnl_bridge_getlink+0x850/0x850 [ 9.091570][ T185] ? __lock_acquire+0x518/0xc20 [ 9.091575][ T185] ? lock_acquire.part.0+0xd4/0x280 [ 9.091577][ T185] ? find_held_lock+0x2b/0x80 [ 9.091579][ T185] ? rtnl_bridge_getlink+0x850/0x850 [ 9.091581][ T185] ? __lock_release.isra.0+0x69/0x1a0 [ 9.091585][ T185] ? rtnl_bridge_getlink+0x850/0x850 [ 9.091588][ T185] rtnetlink_rcv_msg+0x6fd/0xbd0 [ 9.091591][ T185] ? rtnl_link_fill+0x900/0x900 [ 9.091593][ T185] ? __lock_acquire+0x518/0xc20 [ 9.091598][ T185] ? lock_acquire.part.0+0xd4/0x280 [ 9.091600][ T185] ? find_held_lock+0x2b/0x80 [ 9.091603][ T185] netlink_rcv_skb+0x14e/0x3a0 [ 9.091605][ T185] ? rtnl_link_fill+0x900/0x900 [ 9.091608][ T185] ? netlink_ack+0xcd0/0xcd0 [ 9.091614][ T185] ? netlink_deliver_tap+0xc5/0x330 [ 9.091616][ T185] ? netlink_deliver_tap+0x13c/0x330 [ 9.091620][ T185] netlink_unicast+0x486/0x750 [ 9.091624][ T185] ? netlink_attachskb+0x810/0x810 [ 9.091626][ T185] ? __lock_acquire+0x518/0xc20 [ 9.091631][ T185] netlink_sendmsg+0x735/0xc60 [ 9.091634][ T185] ? netlink_unicast+0x750/0x750 [ 9.091638][ T185] ? __might_fault+0x97/0x140 [ 9.091644][ T185] ____sys_sendmsg+0x415/0x880 [ 9.091646][ T185] ? copy_msghdr_from_user+0x279/0x420 [ 9.091648][ T185] ? get_timestamp.constprop.0+0x3a0/0x3a0 [ 9.091649][ T185] ? move_addr_to_kernel+0x40/0x40 [ 9.091656][ T185] ___sys_sendmsg+0x14e/0x1d0 [ 9.091658][ T185] ? copy_msghdr_from_user+0x420/0x420 [ 9.091673][ T185] __sys_sendmsg+0x12c/0x1d0 [ 9.091676][ T185] ? __sys_sendmsg_sock+0x20/0x20 [ 9.091682][ T185] ? rcu_is_watching+0x16/0xd0 [ 9.091685][ T185] do_syscall_64+0xff/0x530 [ 9.091687][ T185] ? exc_page_fault+0xee/0x100 [ 9.091689][ T185] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 9.091692][ T185] RIP: 0033:0x7f0f1bfaf54e [ 9.091695][ T185] 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.091697][ T185] RSP: 002b:00007fff842b2820 EFLAGS: 00000202 ORIG_RAX: 000000000000002e [ 9.091699][ T185] RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 00007f0f1bfaf54e [ 9.091700][ T185] RDX: 0000000000000000 RSI: 00007fff842b28d0 RDI: 0000000000000005 [ 9.091701][ T185] RBP: 00007fff842b2830 R08: 0000000000000000 R09: 0000000000000000 [ 9.091702][ T185] R10: 0000000000000000 R11: 0000000000000202 R12: 000000006a91be59 [ 9.091703][ T185] R13: 00000000004a1620 R14: 0000000000000000 R15: 00007fff842b2fa0 [ 9.091709][ T185] [ 9.142100][ T185] ip (185) used greatest stack depth: 23144 bytes left [ 9.181128][ T187] team1: Port device dummy1 removed