[ 9.134877][ T185] team1: Port device dummy1 added [ 9.134930][ T185] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 9.134932][ T185] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 185, name: ip [ 9.134933][ T185] preempt_count: 1, expected: 0 [ 9.134934][ T185] RCU nest depth: 0, expected: 0 [ 9.134935][ T185] locks held by ip/185: 5, last CPU#0: [ 9.134937][ T185] #0: ffffffff9b322700 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0x9a8/0x11b0 [ 9.134949][ T185] #1: ffffffff9ab99cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 9.134960][ T185] #2: ffffffff9ab99d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 9.134963][ T185] #3: ffffffff9aa89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 9.134966][ T185] #4: ffffffff9aa89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 9.134969][ T185] irq event stamp: 24846 [ 9.134970][ T185] hardirqs last enabled at (24845): [] __down_trylock_console_sem+0x86/0xa0 [ 9.134974][ T185] hardirqs last disabled at (24846): [] console_emit_next_record+0x3f8/0x4f0 [ 9.134975][ T185] softirqs last enabled at (24738): [] __alloc_skb+0x4c5/0x5f0 [ 9.134978][ T185] softirqs last disabled at (24736): [] __alloc_skb+0x4c5/0x5f0 [ 9.134980][ T185] Preemption disabled at: [ 9.134981][ T185] [] vprintk_emit+0x31b/0x3e0 [ 9.134986][ T185] CPU: 0 UID: 0 PID: 185 Comm: ip Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 9.134990][ T185] Tainted: [W]=WARN [ 9.134991][ T185] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 9.134992][ T185] Call Trace: [ 9.134994][ T185] [ 9.134995][ T185] dump_stack_lvl+0x6f/0xa0 [ 9.135000][ T185] ? vprintk_emit+0x31b/0x3e0 [ 9.135002][ T185] __might_resched.cold+0x1fe/0x2c1 [ 9.135007][ T185] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 9.135010][ T185] ? __kmalloc_noprof+0xdb/0x760 [ 9.135015][ T185] __kmalloc_noprof+0x443/0x760 [ 9.135018][ T185] ? alloc_buf.isra.0+0x4b/0x260 [ 9.135024][ T185] ? do_raw_spin_unlock+0x59/0x250 [ 9.135026][ T185] alloc_buf.isra.0+0x4b/0x260 [ 9.135029][ T185] put_chars+0x1e1/0x2f0 [ 9.135032][ T185] ? __send_to_port+0x420/0x420 [ 9.135036][ T185] ? validate_chain+0x34a/0xc20 [ 9.135041][ T185] hvc_console_print+0x292/0x780 [ 9.135044][ T185] ? __lock_acquire+0x518/0xc20 [ 9.135050][ T185] ? hvc_write+0x3a0/0x3a0 [ 9.135053][ T185] ? rcu_is_watching+0x16/0xd0 [ 9.135058][ T185] console_emit_next_record+0x252/0x4f0 [ 9.135062][ T185] ? devkmsg_read+0x4e0/0x4e0 [ 9.135065][ T185] ? rcu_is_watching+0x16/0xd0 [ 9.135067][ T185] ? lock_acquire+0x13c/0x160 [ 9.135071][ T185] console_flush_one_record+0x46f/0x710 [ 9.135075][ T185] ? console_emit_next_record+0x4f0/0x4f0 [ 9.135076][ T185] ? __lock_acquire+0x518/0xc20 [ 9.135082][ T185] console_unlock+0xee/0x1f0 [ 9.135084][ T185] ? console_flush_one_record+0x710/0x710 [ 9.135085][ T185] ? rcu_is_watching+0x16/0xd0 [ 9.135087][ T185] ? lock_acquire+0x60/0x160 [ 9.135091][ T185] ? __down_trylock_console_sem+0x5e/0xa0 [ 9.135093][ T185] ? vprintk_emit+0x320/0x3e0 [ 9.135096][ T185] vprintk_emit+0x37c/0x3e0 [ 9.135098][ T185] ? wake_up_klogd_work_func+0x90/0x90 [ 9.135101][ T185] ? __nlmsg_put+0x144/0x190 [ 9.135106][ T185] _printk+0xc7/0x100 [ 9.135109][ T185] ? snapshot_read.cold+0x21/0x21 [ 9.135114][ T185] ? netdev_name+0x43/0x60 [ 9.135117][ T185] ? __netdev_printk+0x17f/0x1d0 [ 9.135120][ T185] netdev_info+0xe2/0x116 [ 9.135122][ T185] ? netdev_notice+0x120/0x120 [ 9.135126][ T185] ? _mutex_trylock_nest_lock+0x390/0x390 [ 9.135129][ T185] ? team_nl_send_options_get+0x650/0x650 [ 9.135133][ T185] ? lockdep_hardirqs_on+0x91/0x130 [ 9.135138][ T185] team_port_add+0xfc9/0x17b0 [ 9.135143][ T185] ? team_port_enable+0xc0/0xc0 [ 9.135145][ T185] ? is_bpf_text_address+0x72/0x110 [ 9.135151][ T185] do_set_master+0x3b2/0x780 [ 9.135155][ T185] do_setlink.isra.0+0x9ec/0x2a60 [ 9.135159][ T185] ? stack_trace_save+0x93/0xc0 [ 9.135162][ T185] ? rtnl_link_get_size+0x350/0x350 [ 9.135164][ T185] ? rcu_read_lock_any_held+0x66/0x90 [ 9.135167][ T185] ? stack_depot_save_flags+0x38e/0x790 [ 9.135170][ T185] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 9.135172][ T185] ? rcu_read_lock_any_held+0x3c/0x90 [ 9.135174][ T185] ? validate_chain+0x38b/0xc20 [ 9.135177][ T185] ? kasan_save_stack+0x3d/0x50 [ 9.135179][ T185] ? kasan_save_stack+0x2f/0x50 [ 9.135180][ T185] ? kasan_save_track+0x14/0x30 [ 9.135182][ T185] ? __lock_acquire+0x518/0xc20 [ 9.135185][ T185] ? netlink_seq_next+0x5e/0x60 [ 9.135186][ T185] ? ___sys_sendmsg+0xc0/0x1d0 [ 9.135190][ T185] ? lock_acquire.part.0+0xd4/0x280 [ 9.135192][ T185] ? rtnl_newlink+0x9a8/0x11b0 [ 9.135195][ T185] ? rcu_is_watching+0x16/0xd0 [ 9.135197][ T185] ? lock_acquire+0x13c/0x160 [ 9.135199][ T185] ? rcu_is_watching+0x16/0xd0 [ 9.135200][ T185] ? rcu_is_watching+0x16/0xd0 [ 9.135202][ T185] ? trace_contention_end+0xb3/0x180 [ 9.135204][ T185] ? __mutex_lock+0x1db/0x1ea0 [ 9.135206][ T185] ? __mutex_lock+0x9a3/0x1ea0 [ 9.135208][ T185] ? rtnl_newlink+0x9a8/0x11b0 [ 9.135211][ T185] ? ww_mutex_lock+0x160/0x160 [ 9.135213][ T185] ? nla_get_range_signed+0x3d0/0x3d0 [ 9.135219][ T185] ? __rtnl_newlink+0x3fa/0xa50 [ 9.135224][ T185] rtnl_newlink+0x9f1/0x11b0 [ 9.135230][ T185] ? rtnl_bridge_getlink+0x850/0x850 [ 9.135232][ T185] ? __lock_acquire+0x518/0xc20 [ 9.135237][ T185] ? lock_acquire.part.0+0xd4/0x280 [ 9.135239][ T185] ? find_held_lock+0x2b/0x80 [ 9.135241][ T185] ? rtnl_bridge_getlink+0x850/0x850 [ 9.135243][ T185] ? __lock_release.isra.0+0x69/0x1a0 [ 9.135247][ T185] ? rtnl_bridge_getlink+0x850/0x850 [ 9.135250][ T185] rtnetlink_rcv_msg+0x6fd/0xbd0 [ 9.135253][ T185] ? rtnl_link_fill+0x900/0x900 [ 9.135255][ T185] ? __lock_acquire+0x518/0xc20 [ 9.135259][ T185] ? lock_acquire.part.0+0xd4/0x280 [ 9.135261][ T185] ? find_held_lock+0x2b/0x80 [ 9.135265][ T185] netlink_rcv_skb+0x14e/0x3a0 [ 9.135267][ T185] ? rtnl_link_fill+0x900/0x900 [ 9.135270][ T185] ? netlink_ack+0xcd0/0xcd0 [ 9.135276][ T185] ? netlink_deliver_tap+0xc5/0x330 [ 9.135277][ T185] ? netlink_deliver_tap+0x13c/0x330 [ 9.135282][ T185] netlink_unicast+0x486/0x750 [ 9.135285][ T185] ? netlink_attachskb+0x810/0x810 [ 9.135288][ T185] ? __lock_acquire+0x518/0xc20 [ 9.135292][ T185] netlink_sendmsg+0x735/0xc60 [ 9.135296][ T185] ? netlink_unicast+0x750/0x750 [ 9.135300][ T185] ? __might_fault+0x97/0x140 [ 9.135305][ T185] ____sys_sendmsg+0x415/0x880 [ 9.135307][ T185] ? copy_msghdr_from_user+0x279/0x420 [ 9.135309][ T185] ? get_timestamp.constprop.0+0x3a0/0x3a0 [ 9.135311][ T185] ? move_addr_to_kernel+0x40/0x40 [ 9.135317][ T185] ___sys_sendmsg+0x14e/0x1d0 [ 9.135320][ T185] ? copy_msghdr_from_user+0x420/0x420 [ 9.135335][ T185] __sys_sendmsg+0x12c/0x1d0 [ 9.135338][ T185] ? __sys_sendmsg_sock+0x20/0x20 [ 9.135343][ T185] ? rcu_is_watching+0x16/0xd0 [ 9.135346][ T185] do_syscall_64+0xff/0x530 [ 9.135348][ T185] ? exc_page_fault+0xee/0x100 [ 9.135351][ T185] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 9.135353][ T185] RIP: 0033:0x7fd48cf8f54e [ 9.135357][ 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.135358][ T185] RSP: 002b:00007fff2e1d07c0 EFLAGS: 00000202 ORIG_RAX: 000000000000002e [ 9.135361][ T185] RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 00007fd48cf8f54e [ 9.135362][ T185] RDX: 0000000000000000 RSI: 00007fff2e1d0870 RDI: 0000000000000005 [ 9.135363][ T185] RBP: 00007fff2e1d07d0 R08: 0000000000000000 R09: 0000000000000000 [ 9.135364][ T185] R10: 0000000000000000 R11: 0000000000000202 R12: 000000006a91156c [ 9.135364][ T185] R13: 00000000004a1620 R14: 0000000000000000 R15: 00007fff2e1d0f40 [ 9.135371][ T185] [ 9.178231][ T185] ip (185) used greatest stack depth: 23144 bytes left [ 9.208109][ T187] team1: Port device dummy1 removed