[ 9.345715][ T186] team1: Port device dummy1 added [ 9.345769][ T186] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 9.345772][ T186] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 186, name: ip [ 9.345773][ T186] preempt_count: 1, expected: 0 [ 9.345774][ T186] RCU nest depth: 0, expected: 0 [ 9.345775][ T186] locks held by ip/186: 5, last CPU#1: [ 9.345778][ T186] #0: ffffffffb0f22700 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0x9a8/0x11b0 [ 9.345790][ T186] #1: ffffffffb0799cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 9.345796][ T186] #2: ffffffffb0799d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 9.345799][ T186] #3: ffffffffb0689660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 9.345802][ T186] #4: ffffffffb0689560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 9.345805][ T186] irq event stamp: 28696 [ 9.345806][ T186] hardirqs last enabled at (28695): [] __down_trylock_console_sem+0x86/0xa0 [ 9.345809][ T186] hardirqs last disabled at (28696): [] console_emit_next_record+0x3f8/0x4f0 [ 9.345811][ T186] softirqs last enabled at (28590): [] __alloc_skb+0x4c5/0x5f0 [ 9.345814][ T186] softirqs last disabled at (28588): [] __alloc_skb+0x4c5/0x5f0 [ 9.345816][ T186] Preemption disabled at: [ 9.345817][ T186] [] vprintk_emit+0x31b/0x3e0 [ 9.345822][ T186] CPU: 1 UID: 0 PID: 186 Comm: ip Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 9.345826][ T186] Tainted: [W]=WARN [ 9.345827][ T186] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 9.345828][ T186] Call Trace: [ 9.345830][ T186] [ 9.345832][ T186] dump_stack_lvl+0x6f/0xa0 [ 9.345837][ T186] ? vprintk_emit+0x31b/0x3e0 [ 9.345838][ T186] __might_resched.cold+0x1fe/0x2c1 [ 9.345843][ T186] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 9.345846][ T186] ? __kmalloc_noprof+0xdb/0x760 [ 9.345852][ T186] __kmalloc_noprof+0x443/0x760 [ 9.345854][ T186] ? alloc_buf.isra.0+0x4b/0x260 [ 9.345860][ T186] ? do_raw_spin_unlock+0x59/0x250 [ 9.345862][ T186] alloc_buf.isra.0+0x4b/0x260 [ 9.345866][ T186] put_chars+0x1e1/0x2f0 [ 9.345869][ T186] ? __send_to_port+0x420/0x420 [ 9.345873][ T186] ? validate_chain+0x34a/0xc20 [ 9.345878][ T186] hvc_console_print+0x292/0x780 [ 9.345881][ T186] ? __lock_acquire+0x518/0xc20 [ 9.345888][ T186] ? hvc_write+0x3a0/0x3a0 [ 9.345892][ T186] ? rcu_is_watching+0x16/0xd0 [ 9.345898][ T186] console_emit_next_record+0x252/0x4f0 [ 9.345901][ T186] ? devkmsg_read+0x4e0/0x4e0 [ 9.345905][ T186] ? rcu_is_watching+0x16/0xd0 [ 9.345907][ T186] ? lock_acquire+0x13c/0x160 [ 9.345911][ T186] console_flush_one_record+0x46f/0x710 [ 9.345915][ T186] ? console_emit_next_record+0x4f0/0x4f0 [ 9.345916][ T186] ? __lock_acquire+0x518/0xc20 [ 9.345921][ T186] console_unlock+0xee/0x1f0 [ 9.345924][ T186] ? console_flush_one_record+0x710/0x710 [ 9.345925][ T186] ? rcu_is_watching+0x16/0xd0 [ 9.345927][ T186] ? lock_acquire+0x60/0x160 [ 9.345931][ T186] ? __down_trylock_console_sem+0x5e/0xa0 [ 9.345933][ T186] ? vprintk_emit+0x320/0x3e0 [ 9.345935][ T186] vprintk_emit+0x37c/0x3e0 [ 9.345938][ T186] ? wake_up_klogd_work_func+0x90/0x90 [ 9.345941][ T186] ? __nlmsg_put+0x144/0x190 [ 9.345946][ T186] _printk+0xc7/0x100 [ 9.345949][ T186] ? snapshot_read.cold+0x21/0x21 [ 9.345953][ T186] ? netdev_name+0x43/0x60 [ 9.345956][ T186] ? __netdev_printk+0x17f/0x1d0 [ 9.345960][ T186] netdev_info+0xe2/0x116 [ 9.345962][ T186] ? netdev_notice+0x120/0x120 [ 9.345966][ T186] ? _mutex_trylock_nest_lock+0x390/0x390 [ 9.345970][ T186] ? team_nl_send_options_get+0x650/0x650 [ 9.345973][ T186] ? lockdep_hardirqs_on+0x91/0x130 [ 9.345978][ T186] team_port_add+0xfc9/0x17b0 [ 9.345983][ T186] ? team_port_enable+0xc0/0xc0 [ 9.345985][ T186] ? is_bpf_text_address+0x72/0x110 [ 9.345991][ T186] do_set_master+0x3b2/0x780 [ 9.345995][ T186] do_setlink.isra.0+0x9ec/0x2a60 [ 9.345999][ T186] ? stack_trace_save+0x93/0xc0 [ 9.346003][ T186] ? rtnl_link_get_size+0x350/0x350 [ 9.346004][ T186] ? rcu_read_lock_any_held+0x66/0x90 [ 9.346007][ T186] ? stack_depot_save_flags+0x38e/0x790 [ 9.346010][ T186] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 9.346013][ T186] ? rcu_read_lock_any_held+0x3c/0x90 [ 9.346015][ T186] ? validate_chain+0x38b/0xc20 [ 9.346017][ T186] ? kasan_save_stack+0x3d/0x50 [ 9.346019][ T186] ? kasan_save_stack+0x2f/0x50 [ 9.346020][ T186] ? kasan_save_track+0x14/0x30 [ 9.346023][ T186] ? __lock_acquire+0x518/0xc20 [ 9.346025][ T186] ? netlink_seq_next+0x5e/0x60 [ 9.346027][ T186] ? ___sys_sendmsg+0xc0/0x1d0 [ 9.346030][ T186] ? lock_acquire.part.0+0xd4/0x280 [ 9.346032][ T186] ? rtnl_newlink+0x9a8/0x11b0 [ 9.346035][ T186] ? rcu_is_watching+0x16/0xd0 [ 9.346037][ T186] ? lock_acquire+0x13c/0x160 [ 9.346039][ T186] ? rcu_is_watching+0x16/0xd0 [ 9.346040][ T186] ? rcu_is_watching+0x16/0xd0 [ 9.346042][ T186] ? trace_contention_end+0xb3/0x180 [ 9.346045][ T186] ? __mutex_lock+0x1db/0x1ea0 [ 9.346046][ T186] ? __mutex_lock+0x9a3/0x1ea0 [ 9.346048][ T186] ? rtnl_newlink+0x9a8/0x11b0 [ 9.346052][ T186] ? ww_mutex_lock+0x160/0x160 [ 9.346053][ T186] ? nla_get_range_signed+0x3d0/0x3d0 [ 9.346059][ T186] ? __rtnl_newlink+0x3fa/0xa50 [ 9.346064][ T186] rtnl_newlink+0x9f1/0x11b0 [ 9.346070][ T186] ? rtnl_bridge_getlink+0x850/0x850 [ 9.346073][ T186] ? __lock_acquire+0x518/0xc20 [ 9.346077][ T186] ? lock_acquire.part.0+0xd4/0x280 [ 9.346079][ T186] ? find_held_lock+0x2b/0x80 [ 9.346081][ T186] ? rtnl_bridge_getlink+0x850/0x850 [ 9.346084][ T186] ? __lock_release.isra.0+0x69/0x1a0 [ 9.346088][ T186] ? rtnl_bridge_getlink+0x850/0x850 [ 9.346090][ T186] rtnetlink_rcv_msg+0x6fd/0xbd0 [ 9.346093][ T186] ? rtnl_link_fill+0x900/0x900 [ 9.346095][ T186] ? __lock_acquire+0x518/0xc20 [ 9.346100][ T186] ? lock_acquire.part.0+0xd4/0x280 [ 9.346102][ T186] ? find_held_lock+0x2b/0x80 [ 9.346105][ T186] netlink_rcv_skb+0x14e/0x3a0 [ 9.346107][ T186] ? rtnl_link_fill+0x900/0x900 [ 9.346111][ T186] ? netlink_ack+0xcd0/0xcd0 [ 9.346117][ T186] ? netlink_deliver_tap+0xc5/0x330 [ 9.346118][ T186] ? netlink_deliver_tap+0x13c/0x330 [ 9.346122][ T186] netlink_unicast+0x486/0x750 [ 9.346126][ T186] ? netlink_attachskb+0x810/0x810 [ 9.346129][ T186] ? __lock_acquire+0x518/0xc20 [ 9.346133][ T186] netlink_sendmsg+0x735/0xc60 [ 9.346137][ T186] ? netlink_unicast+0x750/0x750 [ 9.346141][ T186] ? __might_fault+0x97/0x140 [ 9.346146][ T186] ____sys_sendmsg+0x415/0x880 [ 9.346148][ T186] ? copy_msghdr_from_user+0x279/0x420 [ 9.346150][ T186] ? get_timestamp.constprop.0+0x3a0/0x3a0 [ 9.346152][ T186] ? move_addr_to_kernel+0x40/0x40 [ 9.346159][ T186] ___sys_sendmsg+0x14e/0x1d0 [ 9.346161][ T186] ? copy_msghdr_from_user+0x420/0x420 [ 9.346176][ T186] __sys_sendmsg+0x12c/0x1d0 [ 9.346179][ T186] ? __sys_sendmsg_sock+0x20/0x20 [ 9.346185][ T186] ? rcu_is_watching+0x16/0xd0 [ 9.346188][ T186] do_syscall_64+0xff/0x530 [ 9.346189][ T186] ? exc_page_fault+0xee/0x100 [ 9.346192][ T186] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 9.346194][ T186] RIP: 0033:0x7f687e37c54e [ 9.346198][ T186] 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.346200][ T186] RSP: 002b:00007ffdbbed3130 EFLAGS: 00000202 ORIG_RAX: 000000000000002e [ 9.346203][ T186] RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 00007f687e37c54e [ 9.346204][ T186] RDX: 0000000000000000 RSI: 00007ffdbbed31e0 RDI: 0000000000000005 [ 9.346205][ T186] RBP: 00007ffdbbed3140 R08: 0000000000000000 R09: 0000000000000000 [ 9.346206][ T186] R10: 0000000000000000 R11: 0000000000000202 R12: 000000006a916b13 [ 9.346207][ T186] R13: 00000000004a1620 R14: 0000000000000000 R15: 00007ffdbbed38b0 [ 9.346214][ T186] [ 9.393318][ T186] ip (186) used greatest stack depth: 23144 bytes left [ 9.418941][ T187] team1: Port device dummy1 removed