[ 8.877904][ T83] netdevsim netdevsim323 eni323np1: renamed from eth0 [ 8.877957][ T83] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 8.877959][ T83] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 83, name: (udev-worker) [ 8.877961][ T83] preempt_count: 1, expected: 0 [ 8.877962][ T83] RCU nest depth: 0, expected: 0 [ 8.877963][ T83] locks held by (udev-worker)/83: 6, last CPU#3: [ 8.877965][ T83] #0: ffffffffb9afe280 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_setlink+0x29d/0x920 [ 8.877977][ T83] #1: ff1100000d7dadd8 (&dev_instance_lock_key#3){+.+.}-{4:4}, at: do_setlink.isra.0+0x27a/0x2a60 [ 8.877981][ T83] #2: ffffffffb9399cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 8.877987][ T83] #3: ffffffffb9399d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 8.877990][ T83] #4: ffffffffb9289660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 8.877994][ T83] #5: ffffffffb9289560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 8.877997][ T83] irq event stamp: 380944 [ 8.877998][ T83] hardirqs last enabled at (380943): [] __down_trylock_console_sem+0x86/0xa0 [ 8.878000][ T83] hardirqs last disabled at (380944): [] console_emit_next_record+0x3f8/0x4f0 [ 8.878004][ T83] softirqs last enabled at (380938): [] handle_softirqs+0x67c/0x900 [ 8.878008][ T83] softirqs last disabled at (380929): [] do_softirq+0xac/0xe0 [ 8.878011][ T83] Preemption disabled at: [ 8.878011][ T83] [] vprintk_emit+0x31b/0x3e0 [ 8.878017][ T83] CPU: 3 UID: 0 PID: 83 Comm: (udev-worker) Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 8.878020][ T83] Tainted: [W]=WARN [ 8.878021][ T83] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 8.878022][ T83] Call Trace: [ 8.878024][ T83] [ 8.878026][ T83] dump_stack_lvl+0x6f/0xa0 [ 8.878031][ T83] ? vprintk_emit+0x31b/0x3e0 [ 8.878033][ T83] __might_resched.cold+0x1fe/0x2c1 [ 8.878037][ T83] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 8.878041][ T83] ? __kmalloc_noprof+0xdb/0x760 [ 8.878046][ T83] __kmalloc_noprof+0x443/0x760 [ 8.878048][ T83] ? alloc_buf.isra.0+0x4b/0x260 [ 8.878053][ T83] ? do_raw_spin_unlock+0x59/0x250 [ 8.878055][ T83] alloc_buf.isra.0+0x4b/0x260 [ 8.878058][ T83] put_chars+0x1e1/0x2f0 [ 8.878061][ T83] ? __send_to_port+0x420/0x420 [ 8.878064][ T83] ? validate_chain+0x34a/0xc20 [ 8.878069][ T83] hvc_console_print+0x292/0x780 [ 8.878071][ T83] ? __lock_acquire+0x518/0xc20 [ 8.878076][ T83] ? hvc_write+0x3a0/0x3a0 [ 8.878078][ T83] ? rcu_is_watching+0x16/0xd0 [ 8.878084][ T83] console_emit_next_record+0x252/0x4f0 [ 8.878088][ T83] ? devkmsg_read+0x4e0/0x4e0 [ 8.878092][ T83] ? rcu_is_watching+0x16/0xd0 [ 8.878094][ T83] ? lock_acquire+0x13c/0x160 [ 8.878097][ T83] console_flush_one_record+0x46f/0x710 [ 8.878101][ T83] ? console_emit_next_record+0x4f0/0x4f0 [ 8.878103][ T83] ? __lock_acquire+0x518/0xc20 [ 8.878108][ T83] console_unlock+0xee/0x1f0 [ 8.878110][ T83] ? console_flush_one_record+0x710/0x710 [ 8.878112][ T83] ? rcu_is_watching+0x16/0xd0 [ 8.878114][ T83] ? lock_acquire+0x60/0x160 [ 8.878117][ T83] ? __down_trylock_console_sem+0x5e/0xa0 [ 8.878118][ T83] ? vprintk_emit+0x320/0x3e0 [ 8.878121][ T83] vprintk_emit+0x37c/0x3e0 [ 8.878125][ T83] ? wake_up_klogd_work_func+0x90/0x90 [ 8.878127][ T83] ? write_profile+0xf0/0xf0 [ 8.878130][ T83] ? unwind_get_return_address+0x67/0xd0 [ 8.878136][ T83] dev_vprintk_emit+0x27f/0x2c0 [ 8.878141][ T83] ? device_rename.cold+0xa/0xa [ 8.878145][ T83] ? filter_irq_stacks+0xd0/0xd0 [ 8.878150][ T83] dev_printk_emit+0xb9/0xee [ 8.878153][ T83] ? dev_vprintk_emit+0x2c0/0x2c0 [ 8.878156][ T83] ? check_prev_add+0x316/0xe90 [ 8.878161][ T83] __netdev_printk+0x160/0x1d0 [ 8.878166][ T83] netdev_info+0xe2/0x116 [ 8.878168][ T83] ? netdev_notice+0x120/0x120 [ 8.878171][ T83] ? find_held_lock+0x2b/0x80 [ 8.878175][ T83] ? __lock_release.isra.0+0x69/0x1a0 [ 8.878177][ T83] ? mark_held_locks+0x40/0x70 [ 8.878180][ T83] ? do_setlink.isra.0+0x1f7d/0x2a60 [ 8.878183][ T83] netif_change_name.cold+0x4f/0x89 [ 8.878185][ T83] ? __lock_acquire+0x518/0xc20 [ 8.878187][ T83] ? rwsem_optimistic_spin+0x3c7/0x480 [ 8.878189][ T83] ? find_held_lock+0x2/0x80 [ 8.878192][ T83] ? netdev_adjacent_rename_links+0x470/0x470 [ 8.878195][ T83] ? find_held_lock+0x2b/0x80 [ 8.878198][ T83] ? __asan_memset+0x27/0x50 [ 8.878204][ T83] do_setlink.isra.0+0x1f7d/0x2a60 [ 8.878207][ T83] ? __lock_acquire+0x518/0xc20 [ 8.878209][ T83] ? rtnl_link_get_size+0x350/0x350 [ 8.878211][ T83] ? mark_usage+0x61/0x170 [ 8.878212][ T83] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 8.878214][ T83] ? rcu_read_lock_any_held+0x3c/0x90 [ 8.878216][ T83] ? validate_chain+0x38b/0xc20 [ 8.878220][ T83] ? __lock_acquire+0x518/0xc20 [ 8.878225][ T83] ? lock_acquire.part.0+0xd4/0x280 [ 8.878226][ T83] ? rtnl_setlink+0x29d/0x920 [ 8.878229][ T83] ? rcu_is_watching+0x16/0xd0 [ 8.878231][ T83] ? lock_acquire+0x13c/0x160 [ 8.878232][ T83] ? rcu_is_watching+0x16/0xd0 [ 8.878234][ T83] ? rcu_is_watching+0x16/0xd0 [ 8.878236][ T83] ? trace_contention_end+0xb3/0x180 [ 8.878239][ T83] ? __mutex_lock+0x1db/0x1ea0 [ 8.878242][ T83] ? __mutex_lock+0x9a3/0x1ea0 [ 8.878243][ T83] ? __lock_acquire+0x518/0xc20 [ 8.878245][ T83] ? rtnl_setlink+0x29d/0x920 [ 8.878247][ T83] ? mark_usage+0x61/0x170 [ 8.878249][ T83] ? ww_mutex_lock+0x160/0x160 [ 8.878251][ T83] ? nla_get_range_signed+0x3d0/0x3d0 [ 8.878257][ T83] ? mark_usage+0x61/0x170 [ 8.878259][ T83] ? cap_capable+0x1d7/0x3d0 [ 8.878267][ T83] rtnl_setlink+0x527/0x920 [ 8.878270][ T83] ? __rtnl_newlink+0xa50/0xa50 [ 8.878272][ T83] ? __lock_acquire+0x518/0xc20 [ 8.878294][ T83] ? lock_acquire.part.0+0xd4/0x280 [ 8.878295][ T83] ? find_held_lock+0x2b/0x80 [ 8.878298][ T83] ? __lock_release.isra.0+0x69/0x1a0 [ 8.878300][ T83] ? mark_usage+0x61/0x170 [ 8.878302][ T83] ? __lock_acquire+0x518/0xc20 [ 8.878306][ T83] ? lock_acquire.part.0+0xd4/0x280 [ 8.878307][ T83] ? find_held_lock+0x2b/0x80 [ 8.878310][ T83] ? __rtnl_newlink+0xa50/0xa50 [ 8.878312][ T83] ? __lock_release.isra.0+0x69/0x1a0 [ 8.878315][ T83] ? __rtnl_newlink+0xa50/0xa50 [ 8.878317][ T83] rtnetlink_rcv_msg+0x6fd/0xbd0 [ 8.878321][ T83] ? rtnl_link_fill+0x900/0x900 [ 8.878322][ T83] ? __lock_acquire+0x518/0xc20 [ 8.878326][ T83] ? lock_acquire.part.0+0xd4/0x280 [ 8.878328][ T83] ? find_held_lock+0x2b/0x80 [ 8.878332][ T83] netlink_rcv_skb+0x14e/0x3a0 [ 8.878335][ T83] ? rtnl_link_fill+0x900/0x900 [ 8.878338][ T83] ? netlink_ack+0xcd0/0xcd0 [ 8.878344][ T83] ? netlink_deliver_tap+0xc5/0x330 [ 8.878346][ T83] ? netlink_deliver_tap+0x13c/0x330 [ 8.878351][ T83] netlink_unicast+0x486/0x750 [ 8.878355][ T83] ? netlink_attachskb+0x810/0x810 [ 8.878357][ T83] ? __lock_acquire+0x518/0xc20 [ 8.878359][ T83] ? do_raw_spin_trylock+0x161/0x180 [ 8.878363][ T83] netlink_sendmsg+0x735/0xc60 [ 8.878367][ T83] ? netlink_unicast+0x750/0x750 [ 8.878370][ T83] ? __might_fault+0x97/0x140 [ 8.878374][ T83] ? __might_fault+0x97/0x140 [ 8.878377][ T83] __sys_sendto+0x2aa/0x400 [ 8.878381][ T83] ? __ia32_sys_getpeername+0xd0/0xd0 [ 8.878391][ T83] ? exc_page_fault+0x87/0x100 [ 8.878397][ T83] __x64_sys_sendto+0xe4/0x1f0 [ 8.878399][ T83] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 8.878402][ T83] ? lockdep_hardirqs_on+0x91/0x130 [ 8.878404][ T83] ? do_syscall_64+0xa6/0x530 [ 8.878406][ T83] do_syscall_64+0xff/0x530 [ 8.878407][ T83] ? exc_page_fault+0xee/0x100 [ 8.878410][ T83] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 8.878412][ T83] RIP: 0033:0x7f440cc2154e [ 8.878415][ T83] 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 [ 8.878417][ T83] RSP: 002b:00007ffd6e05ebe0 EFLAGS: 00000202 ORIG_RAX: 000000000000002c [ 8.878420][ T83] RAX: ffffffffffffffda RBX: 00005601c9633f40 RCX: 00007f440cc2154e [ 8.878421][ T83] RDX: 0000000000000030 RSI: 00005601c9638400 RDI: 0000000000000014 [ 8.878422][ T83] RBP: 00007ffd6e05ebf0 R08: 00007ffd6e05ec40 R09: 0000000000000080 [ 8.878422][ T83] R10: 0000000000000000 R11: 0000000000000202 R12: 00005601c978ac40 [ 8.878423][ T83] R13: 00007ffd6e05ed24 R14: 0000000000000000 R15: 0000000000000000 [ 8.878430][ T83] [ 8.930952][ T82] netdevsim netdevsim553 eni553np1: renamed from eth1 [ 9.506039][ T165] Could not find device with ifindex 2000 in netnsfd 11 [ 9.506637][ T165] Could not find netns with fd: 2000 [ 9.507083][ T165] Cannot link a netdevsim to itself [ 9.507552][ T165] Format for linking two devices is "netnsfd_a:ifidx_a netnsfd_b:ifidx_b" (int uint int uint).