[ 9.017857][ T184] team0: Port device dummy1 added [ 9.017909][ T184] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 9.017911][ T184] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 184, name: ip [ 9.017913][ T184] preempt_count: 1, expected: 0 [ 9.017914][ T184] RCU nest depth: 0, expected: 0 [ 9.017915][ T184] locks held by ip/184: 5, last CPU#1: [ 9.017916][ T184] #0: ffffffffabf22700 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0x9a8/0x11b0 [ 9.017928][ T184] #1: ffffffffab799cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 9.017934][ T184] #2: ffffffffab799d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 9.017937][ T184] #3: ffffffffab689660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 9.017940][ T184] #4: ffffffffab689560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 9.017944][ T184] irq event stamp: 16720 [ 9.017945][ T184] hardirqs last enabled at (16719): [] __down_trylock_console_sem+0x86/0xa0 [ 9.017948][ T184] hardirqs last disabled at (16720): [] console_emit_next_record+0x3f8/0x4f0 [ 9.017950][ T184] softirqs last enabled at (16614): [] __alloc_skb+0x4c5/0x5f0 [ 9.017952][ T184] softirqs last disabled at (16612): [] __alloc_skb+0x4c5/0x5f0 [ 9.017954][ T184] Preemption disabled at: [ 9.017955][ T184] [] vprintk_emit+0x31b/0x3e0 [ 9.017960][ T184] CPU: 1 UID: 0 PID: 184 Comm: ip Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 9.017964][ T184] Tainted: [W]=WARN [ 9.017964][ T184] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 9.017966][ T184] Call Trace: [ 9.017968][ T184] [ 9.017969][ T184] dump_stack_lvl+0x6f/0xa0 [ 9.017974][ T184] ? vprintk_emit+0x31b/0x3e0 [ 9.017976][ T184] __might_resched.cold+0x1fe/0x2c1 [ 9.017980][ T184] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 9.017984][ T184] ? __kmalloc_noprof+0xdb/0x760 [ 9.017989][ T184] __kmalloc_noprof+0x443/0x760 [ 9.017991][ T184] ? alloc_buf.isra.0+0x4b/0x260 [ 9.017997][ T184] ? do_raw_spin_unlock+0x59/0x250 [ 9.017999][ T184] alloc_buf.isra.0+0x4b/0x260 [ 9.018003][ T184] put_chars+0x1e1/0x2f0 [ 9.018006][ T184] ? __send_to_port+0x420/0x420 [ 9.018010][ T184] ? validate_chain+0x34a/0xc20 [ 9.018015][ T184] hvc_console_print+0x292/0x780 [ 9.018019][ T184] ? __lock_acquire+0x518/0xc20 [ 9.018024][ T184] ? hvc_write+0x3a0/0x3a0 [ 9.018027][ T184] ? rcu_is_watching+0x16/0xd0 [ 9.018032][ T184] console_emit_next_record+0x252/0x4f0 [ 9.018035][ T184] ? devkmsg_read+0x4e0/0x4e0 [ 9.018039][ T184] ? rcu_is_watching+0x16/0xd0 [ 9.018041][ T184] ? lock_acquire+0x13c/0x160 [ 9.018045][ T184] console_flush_one_record+0x46f/0x710 [ 9.018049][ T184] ? console_emit_next_record+0x4f0/0x4f0 [ 9.018050][ T184] ? __lock_acquire+0x518/0xc20 [ 9.018055][ T184] console_unlock+0xee/0x1f0 [ 9.018057][ T184] ? console_flush_one_record+0x710/0x710 [ 9.018059][ T184] ? rcu_is_watching+0x16/0xd0 [ 9.018061][ T184] ? lock_acquire+0x60/0x160 [ 9.018064][ T184] ? __down_trylock_console_sem+0x5e/0xa0 [ 9.018066][ T184] ? vprintk_emit+0x320/0x3e0 [ 9.018069][ T184] vprintk_emit+0x37c/0x3e0 [ 9.018072][ T184] ? wake_up_klogd_work_func+0x90/0x90 [ 9.018075][ T184] ? __nlmsg_put+0x144/0x190 [ 9.018080][ T184] _printk+0xc7/0x100 [ 9.018083][ T184] ? snapshot_read.cold+0x21/0x21 [ 9.018087][ T184] ? netdev_name+0x43/0x60 [ 9.018090][ T184] ? __netdev_printk+0x17f/0x1d0 [ 9.018093][ T184] netdev_info+0xe2/0x116 [ 9.018095][ T184] ? netdev_notice+0x120/0x120 [ 9.018099][ T184] ? _mutex_trylock_nest_lock+0x390/0x390 [ 9.018103][ T184] ? team_nl_send_options_get+0x650/0x650 [ 9.018107][ T184] ? lockdep_hardirqs_on+0x91/0x130 [ 9.018111][ T184] team_port_add+0xfc9/0x17b0 [ 9.018116][ T184] ? team_port_enable+0xc0/0xc0 [ 9.018118][ T184] ? is_bpf_text_address+0x72/0x110 [ 9.018124][ T184] do_set_master+0x3b2/0x780 [ 9.018128][ T184] do_setlink.isra.0+0x9ec/0x2a60 [ 9.018132][ T184] ? stack_trace_save+0x93/0xc0 [ 9.018135][ T184] ? rtnl_link_get_size+0x350/0x350 [ 9.018137][ T184] ? rcu_read_lock_any_held+0x66/0x90 [ 9.018140][ T184] ? stack_depot_save_flags+0x38e/0x790 [ 9.018143][ T184] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 9.018145][ T184] ? rcu_read_lock_any_held+0x3c/0x90 [ 9.018147][ T184] ? validate_chain+0x38b/0xc20 [ 9.018150][ T184] ? kasan_save_stack+0x3d/0x50 [ 9.018152][ T184] ? kasan_save_stack+0x2f/0x50 [ 9.018153][ T184] ? kasan_save_track+0x14/0x30 [ 9.018155][ T184] ? __lock_acquire+0x518/0xc20 [ 9.018157][ T184] ? netlink_seq_next+0x5e/0x60 [ 9.018159][ T184] ? ___sys_sendmsg+0xc0/0x1d0 [ 9.018163][ T184] ? lock_acquire.part.0+0xd4/0x280 [ 9.018165][ T184] ? rtnl_newlink+0x9a8/0x11b0 [ 9.018168][ T184] ? rcu_is_watching+0x16/0xd0 [ 9.018170][ T184] ? lock_acquire+0x13c/0x160 [ 9.018172][ T184] ? rcu_is_watching+0x16/0xd0 [ 9.018173][ T184] ? rcu_is_watching+0x16/0xd0 [ 9.018175][ T184] ? trace_contention_end+0xb3/0x180 [ 9.018177][ T184] ? __mutex_lock+0x1db/0x1ea0 [ 9.018178][ T184] ? __mutex_lock+0x9a3/0x1ea0 [ 9.018180][ T184] ? rtnl_newlink+0x9a8/0x11b0 [ 9.018184][ T184] ? ww_mutex_lock+0x160/0x160 [ 9.018185][ T184] ? nla_get_range_signed+0x3d0/0x3d0 [ 9.018191][ T184] ? __rtnl_newlink+0x3fa/0xa50 [ 9.018196][ T184] rtnl_newlink+0x9f1/0x11b0 [ 9.018202][ T184] ? rtnl_bridge_getlink+0x850/0x850 [ 9.018204][ T184] ? __lock_acquire+0x518/0xc20 [ 9.018209][ T184] ? lock_acquire.part.0+0xd4/0x280 [ 9.018211][ T184] ? find_held_lock+0x2b/0x80 [ 9.018213][ T184] ? rtnl_bridge_getlink+0x850/0x850 [ 9.018215][ T184] ? __lock_release.isra.0+0x69/0x1a0 [ 9.018224][ T184] ? rtnl_bridge_getlink+0x850/0x850 [ 9.018226][ T184] rtnetlink_rcv_msg+0x6fd/0xbd0 [ 9.018230][ T184] ? rtnl_link_fill+0x900/0x900 [ 9.018232][ T184] ? __lock_acquire+0x518/0xc20 [ 9.018236][ T184] ? lock_acquire.part.0+0xd4/0x280 [ 9.018238][ T184] ? find_held_lock+0x2b/0x80 [ 9.018242][ T184] netlink_rcv_skb+0x14e/0x3a0 [ 9.018243][ T184] ? rtnl_link_fill+0x900/0x900 [ 9.018247][ T184] ? netlink_ack+0xcd0/0xcd0 [ 9.018253][ T184] ? netlink_deliver_tap+0xc5/0x330 [ 9.018254][ T184] ? netlink_deliver_tap+0x13c/0x330 [ 9.018258][ T184] netlink_unicast+0x486/0x750 [ 9.018262][ T184] ? netlink_attachskb+0x810/0x810 [ 9.018264][ T184] ? __lock_acquire+0x518/0xc20 [ 9.018269][ T184] netlink_sendmsg+0x735/0xc60 [ 9.018272][ T184] ? netlink_unicast+0x750/0x750 [ 9.018276][ T184] ? __might_fault+0x97/0x140 [ 9.018282][ T184] ____sys_sendmsg+0x415/0x880 [ 9.018284][ T184] ? copy_msghdr_from_user+0x279/0x420 [ 9.018285][ T184] ? get_timestamp.constprop.0+0x3a0/0x3a0 [ 9.018287][ T184] ? move_addr_to_kernel+0x40/0x40 [ 9.018294][ T184] ___sys_sendmsg+0x14e/0x1d0 [ 9.018296][ T184] ? copy_msghdr_from_user+0x420/0x420 [ 9.018311][ T184] __sys_sendmsg+0x12c/0x1d0 [ 9.018314][ T184] ? __sys_sendmsg_sock+0x20/0x20 [ 9.018319][ T184] ? rcu_is_watching+0x16/0xd0 [ 9.018322][ T184] do_syscall_64+0xff/0x530 [ 9.018324][ T184] ? exc_page_fault+0xee/0x100 [ 9.018326][ T184] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 9.018328][ T184] RIP: 0033:0x7f6993c2c54e [ 9.018332][ T184] 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.018334][ T184] RSP: 002b:00007ffe37b58270 EFLAGS: 00000202 ORIG_RAX: 000000000000002e [ 9.018336][ T184] RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 00007f6993c2c54e [ 9.018338][ T184] RDX: 0000000000000000 RSI: 00007ffe37b58320 RDI: 0000000000000005 [ 9.018339][ T184] RBP: 00007ffe37b58280 R08: 0000000000000000 R09: 0000000000000000 [ 9.018339][ T184] R10: 0000000000000000 R11: 0000000000000202 R12: 000000006a9114d5 [ 9.018340][ T184] R13: 00000000004a1620 R14: 0000000000000000 R15: 00007ffe37b589e0 [ 9.018347][ T184] [ 9.095968][ T184] ip (184) used greatest stack depth: 23144 bytes left [ 9.152980][ T185] team0: Port device dummy2 added [ 9.230171][ T57] dummy1: entered promiscuous mode [ 9.230488][ T57] dummy2: entered promiscuous mode [ 9.375977][ T66] dummy1: left promiscuous mode [ 9.376262][ T66] dummy2: left promiscuous mode [ 9.411506][ T206] team0 (unregistering): Port device dummy1 removed [ 9.417794][ T206] team0 (unregistering): Port device dummy2 removed