[ 10.654191][ T189] devlink (189) used greatest stack depth: 24688 bytes left [ 10.654207][ T189] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.654209][ T189] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 189, name: devlink [ 10.654211][ T189] preempt_count: 2, expected: 0 [ 10.654211][ T189] RCU nest depth: 0, expected: 0 [ 10.654212][ T189] locks held by devlink/189: 5, last CPU#3: [ 10.654215][ T189] #0: ffffffff9d8027b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 10.654227][ T189] #1: ffffffff9d999cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.654233][ T189] #2: ffffffff9d999d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.654237][ T189] #3: ffffffff9d889660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.654241][ T189] #4: ffffffff9d889560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 10.654245][ T189] irq event stamp: 38284 [ 10.654246][ T189] hardirqs last enabled at (38283): [] __down_trylock_console_sem+0x86/0xa0 [ 10.654248][ T189] hardirqs last disabled at (38284): [] console_emit_next_record+0x3f8/0x4f0 [ 10.654250][ T189] softirqs last enabled at (37286): [] handle_softirqs+0x67c/0x900 [ 10.654253][ T189] softirqs last disabled at (37281): [] __irq_exit_rcu+0x145/0x1c0 [ 10.654256][ T189] Preemption disabled at: [ 10.654256][ T189] [<0000000000000000>] 0x0 [ 10.654263][ T189] CPU: 3 UID: 0 PID: 189 Comm: devlink Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.654267][ T189] Tainted: [W]=WARN [ 10.654268][ T189] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.654270][ T189] Call Trace: [ 10.654271][ T189] [ 10.654273][ T189] dump_stack_lvl+0x6f/0xa0 [ 10.654279][ T189] __might_resched.cold+0x1fe/0x2c1 [ 10.654283][ T189] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.654287][ T189] ? __kmalloc_noprof+0xdb/0x760 [ 10.654292][ T189] __kmalloc_noprof+0x443/0x760 [ 10.654294][ T189] ? alloc_buf.isra.0+0x4b/0x260 [ 10.654301][ T189] ? do_raw_spin_unlock+0x59/0x250 [ 10.654304][ T189] alloc_buf.isra.0+0x4b/0x260 [ 10.654307][ T189] put_chars+0x1e1/0x2f0 [ 10.654310][ T189] ? __send_to_port+0x420/0x420 [ 10.654311][ T189] ? printk_get_next_message+0x2fe/0x7d0 [ 10.654315][ T189] ? rcu_read_lock_any_held+0x3c/0x90 [ 10.654318][ T189] ? validate_chain+0x38b/0xc20 [ 10.654322][ T189] hvc_console_print+0x292/0x780 [ 10.654325][ T189] ? __lock_acquire+0x518/0xc20 [ 10.654326][ T189] ? __lock_acquire+0x518/0xc20 [ 10.654330][ T189] ? hvc_write+0x3a0/0x3a0 [ 10.654334][ T189] ? rcu_is_watching+0x16/0xd0 [ 10.654336][ T189] ? lock_acquire+0x13c/0x160 [ 10.654340][ T189] console_emit_next_record+0x252/0x4f0 [ 10.654344][ T189] ? devkmsg_read+0x4e0/0x4e0 [ 10.654348][ T189] ? rcu_is_watching+0x16/0xd0 [ 10.654350][ T189] ? lock_acquire+0x13c/0x160 [ 10.654354][ T189] console_flush_one_record+0x46f/0x710 [ 10.654358][ T189] ? console_emit_next_record+0x4f0/0x4f0 [ 10.654360][ T189] ? __lock_acquire+0x518/0xc20 [ 10.654365][ T189] console_unlock+0xee/0x1f0 [ 10.654367][ T189] ? console_flush_one_record+0x710/0x710 [ 10.654369][ T189] ? rcu_is_watching+0x16/0xd0 [ 10.654371][ T189] ? lock_acquire+0x60/0x160 [ 10.654374][ T189] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.654376][ T189] ? vprintk_emit+0x320/0x3e0 [ 10.654379][ T189] vprintk_emit+0x37c/0x3e0 [ 10.654382][ T189] ? wake_up_klogd_work_func+0x90/0x90 [ 10.654386][ T189] ? __lock_acquire+0x518/0xc20 [ 10.654389][ T189] _printk+0xc7/0x100 [ 10.654393][ T189] ? snapshot_read.cold+0x21/0x21 [ 10.654396][ T189] ? do_raw_spin_lock+0x131/0x280 [ 10.654398][ T189] ? __rwlock_init+0x150/0x150 [ 10.654402][ T189] ? do_raw_spin_lock+0x131/0x280 [ 10.654404][ T189] do_exit.cold+0x82/0x9c [ 10.654408][ T189] ? exit_notify+0x890/0x890 [ 10.654410][ T189] ? __lock_release.isra.0+0x69/0x1a0 [ 10.654413][ T189] ? rcu_is_watching+0x16/0xd0 [ 10.654417][ T189] do_group_exit+0xb8/0x370 [ 10.654420][ T189] __x64_sys_exit_group+0x3c/0x50 [ 10.654422][ T189] x64_sys_call+0x1567/0x1570 [ 10.654425][ T189] do_syscall_64+0xff/0x530 [ 10.654428][ T189] ? exc_page_fault+0xee/0x100 [ 10.654432][ T189] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.654434][ T189] RIP: 0033:0x7f6ae91d91b8 [ 10.654436][ T189] Code: Unable to access opcode bytes at 0x7f6ae91d918e. [ 10.654437][ T189] RSP: 002b:00007ffe813a0d38 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 10.654440][ T189] RAX: ffffffffffffffda RBX: 00007f6ae9309f88 RCX: 00007f6ae91d91b8 [ 10.654441][ T189] RDX: 00007f6ae8f24348 RSI: fffffffffffffeb8 RDI: 0000000000000000 [ 10.654442][ T189] RBP: 00007ffe813a0d90 R08: 0000000000000000 R09: 0000000000000220 [ 10.654443][ T189] R10: 00007ffe813a0b30 R11: 0000000000000246 R12: 0000000000000001 [ 10.654444][ T189] R13: 0000000000000000 R14: 00007f6ae9308680 R15: 00007f6ae9309fa0 [ 10.654451][ T189]