[ 11.007529][ T230] veth0: renamed from veth-rt-1 [ 11.007595][ T230] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 11.007597][ T230] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 230, name: ip [ 11.007599][ T230] preempt_count: 1, expected: 0 [ 11.007600][ T230] RCU nest depth: 0, expected: 0 [ 11.007600][ T230] locks held by ip/230: 5, last CPU#3: [ 11.007602][ T230] #0: ffffffffa011b740 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0x9a8/0x11b0 [ 11.007614][ T230] #1: ffffffff9f97ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 11.007620][ T230] #2: ffffffff9f97de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 11.007624][ T230] #3: ffffffff9f89d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 11.007628][ T230] #4: ffffffff9f89d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 11.007632][ T230] irq event stamp: 24450 [ 11.007633][ T230] hardirqs last enabled at (24449): [] __down_trylock_console_sem+0x86/0xa0 [ 11.007636][ T230] hardirqs last disabled at (24450): [] console_emit_next_record+0x3d4/0x4c0 [ 11.007638][ T230] softirqs last enabled at (24444): [] netif_change_name+0x216/0x8c0 [ 11.007641][ T230] softirqs last disabled at (24442): [] netif_change_name+0x1ad/0x8c0 [ 11.007644][ T230] Preemption disabled at: [ 11.007645][ T230] [] vprintk_emit+0x31b/0x3e0 [ 11.007650][ T230] CPU: 3 UID: 0 PID: 230 Comm: ip Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 11.007653][ T230] Tainted: [W]=WARN [ 11.007654][ T230] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 11.007656][ T230] Call Trace: [ 11.007657][ T230] [ 11.007659][ T230] dump_stack_lvl+0x6f/0xa0 [ 11.007665][ T230] ? vprintk_emit+0x31b/0x3e0 [ 11.007667][ T230] __might_resched.cold+0x1fe/0x2c1 [ 11.007671][ T230] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 11.007675][ T230] ? __kmalloc_noprof+0xdb/0x760 [ 11.007680][ T230] __kmalloc_noprof+0x443/0x760 [ 11.007682][ T230] ? alloc_buf.isra.0+0x4b/0x260 [ 11.007688][ T230] ? do_raw_spin_unlock+0x59/0x250 [ 11.007691][ T230] alloc_buf.isra.0+0x4b/0x260 [ 11.007695][ T230] put_chars+0x1e1/0x2f0 [ 11.007697][ T230] ? __send_to_port+0x420/0x420 [ 11.007703][ T230] hvc_console_print+0x292/0x780 [ 11.007711][ T230] ? hvc_write+0x3a0/0x3a0 [ 11.007714][ T230] ? lock_acquire+0x13c/0x160 [ 11.007719][ T230] console_emit_next_record+0x22f/0x4c0 [ 11.007723][ T230] ? devkmsg_read+0x4b0/0x4b0 [ 11.007725][ T230] ? console_flush_one_record+0x106/0x710 [ 11.007728][ T230] ? rcu_is_watching+0x16/0xd0 [ 11.007730][ T230] ? lock_acquire+0x13c/0x160 [ 11.007734][ T230] console_flush_one_record+0x46f/0x710 [ 11.007739][ T230] ? console_emit_next_record+0x4c0/0x4c0 [ 11.007740][ T230] ? __lock_acquire+0x518/0xc20 [ 11.007746][ T230] console_unlock+0xee/0x1f0 [ 11.007749][ T230] ? console_flush_one_record+0x710/0x710 [ 11.007750][ T230] ? rcu_is_watching+0x16/0xd0 [ 11.007752][ T230] ? lock_acquire+0xe0/0x160 [ 11.007756][ T230] ? __down_trylock_console_sem+0x5e/0xa0 [ 11.007758][ T230] ? vprintk_emit+0x320/0x3e0 [ 11.007760][ T230] vprintk_emit+0x37c/0x3e0 [ 11.007763][ T230] ? wake_up_klogd_work_func+0x90/0x90 [ 11.007766][ T230] ? save_trace+0x68/0x280 [ 11.007770][ T230] _printk+0xc7/0x100 [ 11.007773][ T230] ? snapshot_read.cold+0x21/0x21 [ 11.007777][ T230] ? validate_chain+0x34a/0xc20 [ 11.007779][ T230] ? netdev_name+0x43/0x60 [ 11.007783][ T230] ? __netdev_printk+0x17f/0x1d0 [ 11.007786][ T230] ? do_setlink.isra.0+0x1f7d/0x2a60 [ 11.007788][ T230] netdev_info+0xe2/0x116 [ 11.007791][ T230] ? netdev_notice+0x120/0x120 [ 11.007794][ T230] ? find_held_lock+0x2b/0x80 [ 11.007797][ T230] ? __lock_release.isra.0+0x69/0x1a0 [ 11.007799][ T230] ? mark_held_locks+0x40/0x70 [ 11.007803][ T230] ? do_setlink.isra.0+0x1f7d/0x2a60 [ 11.007805][ T230] netif_change_name.cold+0x4f/0x89 [ 11.007807][ T230] ? is_bpf_text_address+0x68/0x110 [ 11.007812][ T230] ? netdev_adjacent_rename_links+0x470/0x470 [ 11.007815][ T230] ? __kernel_text_address+0x12/0x30 [ 11.007817][ T230] ? write_profile+0xf0/0xf0 [ 11.007826][ T230] ? __asan_memset+0x27/0x50 [ 11.007832][ T230] do_setlink.isra.0+0x1f7d/0x2a60 [ 11.007835][ T230] ? stack_trace_save+0x93/0xc0 [ 11.007837][ T230] ? rtnl_link_get_size+0x350/0x350 [ 11.007839][ T230] ? rcu_read_lock_any_held+0x66/0x90 [ 11.007841][ T230] ? stack_depot_save_flags+0x38e/0x790 [ 11.007845][ T230] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 11.007847][ T230] ? rcu_read_lock_any_held+0x3c/0x90 [ 11.007849][ T230] ? validate_chain+0x38b/0xc20 [ 11.007851][ T230] ? kasan_save_stack+0x3d/0x50 [ 11.007853][ T230] ? kasan_save_stack+0x2f/0x50 [ 11.007854][ T230] ? kasan_save_track+0x14/0x30 [ 11.007855][ T230] ? __kasan_kmalloc+0x7b/0x90 [ 11.007858][ T230] ? __lock_acquire+0x518/0xc20 [ 11.007860][ T230] ? snd_ac97_proc_read_main+0x4de/0x1f00 [ 11.007863][ T230] ? ___sys_sendmsg+0xd0/0x1d0 [ 11.007866][ T230] ? lock_acquire.part.0+0xd4/0x280 [ 11.007868][ T230] ? rtnl_newlink+0x9a8/0x11b0 [ 11.007871][ T230] ? rcu_is_watching+0x16/0xd0 [ 11.007873][ T230] ? lock_acquire+0x13c/0x160 [ 11.007874][ T230] ? rcu_is_watching+0x16/0xd0 [ 11.007875][ T230] ? rcu_is_watching+0x16/0xd0 [ 11.007877][ T230] ? trace_contention_end+0xb3/0x180 [ 11.007879][ T230] ? __mutex_lock+0x1db/0x1ea0 [ 11.007882][ T230] ? __mutex_lock+0x9a3/0x1ea0 [ 11.007884][ T230] ? rtnl_newlink+0x9a8/0x11b0 [ 11.007887][ T230] ? ww_mutex_lock+0x160/0x160 [ 11.007889][ T230] ? nla_get_range_signed+0x3d0/0x3d0 [ 11.007893][ T230] ? rcu_is_watching+0x16/0xd0 [ 11.007895][ T230] ? __rtnl_newlink+0x3fa/0xa50 [ 11.007900][ T230] rtnl_newlink+0x9f1/0x11b0 [ 11.007906][ T230] ? rtnl_bridge_getlink+0x850/0x850 [ 11.007908][ T230] ? __lock_acquire+0x518/0xc20 [ 11.007912][ T230] ? lock_acquire.part.0+0xd4/0x280 [ 11.007914][ T230] ? find_held_lock+0x2b/0x80 [ 11.007916][ T230] ? rtnl_bridge_getlink+0x850/0x850 [ 11.007918][ T230] ? __lock_release.isra.0+0x69/0x1a0 [ 11.007921][ T230] ? rtnl_bridge_getlink+0x850/0x850 [ 11.007923][ T230] rtnetlink_rcv_msg+0x6fd/0xbd0 [ 11.007926][ T230] ? rtnl_link_fill+0x920/0x920 [ 11.007928][ T230] ? __lock_acquire+0x518/0xc20 [ 11.007932][ T230] ? lock_acquire.part.0+0xd4/0x280 [ 11.007934][ T230] ? find_held_lock+0x2b/0x80 [ 11.007937][ T230] netlink_rcv_skb+0x14e/0x3a0 [ 11.007941][ T230] ? rtnl_link_fill+0x920/0x920 [ 11.007944][ T230] ? netlink_ack+0xcf0/0xcf0 [ 11.007950][ T230] ? netlink_deliver_tap+0xc5/0x330 [ 11.007952][ T230] ? netlink_deliver_tap+0x13c/0x330 [ 11.007956][ T230] netlink_unicast+0x486/0x750 [ 11.007960][ T230] ? netlink_attachskb+0x810/0x810 [ 11.007962][ T230] ? find_held_lock+0x2b/0x80 [ 11.007967][ T230] netlink_sendmsg+0x75b/0xc90 [ 11.007971][ T230] ? netlink_unicast+0x750/0x750 [ 11.007974][ T230] ? __lock_release.isra.0+0x69/0x1a0 [ 11.007976][ T230] ? __import_iovec+0x36c/0x620 [ 11.007981][ T230] __sock_sendmsg+0xce/0x190 [ 11.007984][ T230] ____sys_sendmsg+0x61a/0x860 [ 11.007986][ T230] ? copy_msghdr_from_user+0x279/0x420 [ 11.007989][ T230] ? sock_write_iter+0x400/0x400 [ 11.007990][ T230] ? move_addr_to_kernel+0x40/0x40 [ 11.007998][ T230] ___sys_sendmsg+0x14e/0x1d0 [ 11.008001][ T230] ? copy_msghdr_from_user+0x420/0x420 [ 11.008017][ T230] __sys_sendmsg+0x12c/0x1d0 [ 11.008019][ T230] ? __sys_sendmsg_sock+0x20/0x20 [ 11.008026][ T230] ? rcu_is_watching+0x16/0xd0 [ 11.008028][ T230] do_syscall_64+0xff/0x530 [ 11.008032][ T230] ? exc_page_fault+0xee/0x100 [ 11.008034][ T230] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 11.008037][ T230] RIP: 0033:0x7fb889eab54e [ 11.008040][ T230] 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 [ 11.008042][ T230] RSP: 002b:00007ffd760938b0 EFLAGS: 00000202 ORIG_RAX: 000000000000002e [ 11.008045][ T230] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007fb889eab54e [ 11.008046][ T230] RDX: 0000000000000000 RSI: 00007ffd76093960 RDI: 0000000000000005 [ 11.008047][ T230] RBP: 00007ffd760938c0 R08: 0000000000000000 R09: 0000000000000000 [ 11.008048][ T230] R10: 0000000000000000 R11: 0000000000000202 R12: 000000006a91b029 [ 11.008048][ T230] R13: 00000000004a1620 R14: 0000000000000000 R15: 00007ffd76094030 [ 11.008055][ T230] [ 11.048450][ T230] ip (230) used greatest stack depth: 23208 bytes left [ 11.367591][ T239] veth0: renamed from veth-rt-2