[ 8.752156][ T157] dirname (157) used greatest stack depth: 24512 bytes left [ 8.752172][ T157] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 8.752174][ T157] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 157, name: dirname [ 8.752176][ T157] preempt_count: 2, expected: 0 [ 8.752177][ T157] RCU nest depth: 0, expected: 0 [ 8.752178][ T157] locks held by dirname/157: 5, last CPU#2: [ 8.752180][ T157] #0: ffffffffa4a027b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 8.752192][ T157] #1: ffffffffa4b69cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 8.752197][ T157] #2: ffffffffa4b69d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 8.752201][ T157] #3: ffffffffa4a89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 8.752204][ T157] #4: ffffffffa4a89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 8.752208][ T157] irq event stamp: 9286 [ 8.752209][ T157] hardirqs last enabled at (9285): [] __down_trylock_console_sem+0x86/0xa0 [ 8.752212][ T157] hardirqs last disabled at (9286): [] console_emit_next_record+0x3d4/0x4c0 [ 8.752214][ T157] softirqs last enabled at (8980): [] handle_softirqs+0x67c/0x900 [ 8.752216][ T157] softirqs last disabled at (8975): [] __irq_exit_rcu+0x145/0x1c0 [ 8.752218][ T157] Preemption disabled at: [ 8.752219][ T157] [<0000000000000000>] 0x0 [ 8.752226][ T157] CPU: 2 UID: 0 PID: 157 Comm: dirname Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 8.752229][ T157] Tainted: [W]=WARN [ 8.752230][ T157] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 8.752232][ T157] Call Trace: [ 8.752233][ T157] [ 8.752235][ T157] dump_stack_lvl+0x6f/0xa0 [ 8.752240][ T157] __might_resched.cold+0x1fe/0x2c1 [ 8.752245][ T157] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 8.752248][ T157] ? __kmalloc_noprof+0xdb/0x760 [ 8.752253][ T157] __kmalloc_noprof+0x443/0x760 [ 8.752256][ T157] ? alloc_buf.isra.0+0x4b/0x260 [ 8.752262][ T157] ? do_raw_spin_unlock+0x59/0x250 [ 8.752264][ T157] alloc_buf.isra.0+0x4b/0x260 [ 8.752268][ T157] put_chars+0x1e1/0x2f0 [ 8.752271][ T157] ? __send_to_port+0x420/0x420 [ 8.752272][ T157] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 8.752276][ T157] ? validate_chain+0x38b/0xc20 [ 8.752282][ T157] hvc_console_print+0x292/0x780 [ 8.752288][ T157] ? hvc_write+0x3a0/0x3a0 [ 8.752290][ T157] ? rcu_is_watching+0x16/0xd0 [ 8.752292][ T157] ? lock_acquire+0x13c/0x160 [ 8.752296][ T157] console_emit_next_record+0x22f/0x4c0 [ 8.752300][ T157] ? devkmsg_read+0x4b0/0x4b0 [ 8.752301][ T157] ? console_flush_one_record+0x106/0x710 [ 8.752304][ T157] ? rcu_is_watching+0x16/0xd0 [ 8.752306][ T157] ? lock_acquire+0x13c/0x160 [ 8.752309][ T157] console_flush_one_record+0x46f/0x710 [ 8.752313][ T157] ? console_emit_next_record+0x4c0/0x4c0 [ 8.752314][ T157] ? __lock_acquire+0x518/0xc20 [ 8.752319][ T157] console_unlock+0xee/0x1f0 [ 8.752322][ T157] ? console_flush_one_record+0x710/0x710 [ 8.752323][ T157] ? rcu_is_watching+0x16/0xd0 [ 8.752325][ T157] ? lock_acquire+0x60/0x160 [ 8.752329][ T157] ? __down_trylock_console_sem+0x5e/0xa0 [ 8.752331][ T157] ? vprintk_emit+0x320/0x3e0 [ 8.752333][ T157] vprintk_emit+0x37c/0x3e0 [ 8.752336][ T157] ? wake_up_klogd_work_func+0x90/0x90 [ 8.752339][ T157] ? __lock_acquire+0x518/0xc20 [ 8.752343][ T157] _printk+0xc7/0x100 [ 8.752347][ T157] ? snapshot_read.cold+0x21/0x21 [ 8.752350][ T157] ? do_raw_spin_lock+0x131/0x280 [ 8.752352][ T157] ? __rwlock_init+0x150/0x150 [ 8.752356][ T157] ? do_raw_spin_lock+0x131/0x280 [ 8.752359][ T157] do_exit.cold+0x82/0x9c [ 8.752362][ T157] ? exit_notify+0x890/0x890 [ 8.752364][ T157] ? __lock_release.isra.0+0x69/0x1a0 [ 8.752367][ T157] ? rcu_is_watching+0x16/0xd0 [ 8.752371][ T157] do_group_exit+0xb8/0x370 [ 8.752374][ T157] __x64_sys_exit_group+0x3c/0x50 [ 8.752376][ T157] x64_sys_call+0x1567/0x1570 [ 8.752379][ T157] do_syscall_64+0xff/0x530 [ 8.752383][ T157] ? exc_page_fault+0xee/0x100 [ 8.752385][ T157] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 8.752388][ T157] RIP: 0033:0x7fb3370431b8 [ 8.752390][ T157] Code: Unable to access opcode bytes at 0x7fb33704318e. [ 8.752391][ T157] RSP: 002b:00007fff9c7256c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 8.752393][ T157] RAX: ffffffffffffffda RBX: 00007fb337173f88 RCX: 00007fb3370431b8 [ 8.752395][ T157] RDX: 00007fb336f80a48 RSI: ffffffffffffffb0 RDI: 0000000000000000 [ 8.752396][ T157] RBP: 00007fff9c725720 R08: 0000000000000000 R09: 0000000000001010 [ 8.752396][ T157] R10: 00007fff9c725560 R11: 0000000000000246 R12: 0000000000000002 [ 8.752397][ T157] R13: 0000000000000000 R14: 00007fb337172680 R15: 00007fb337173fa0 [ 8.752404][ T157]