BUG: sleeping function called from invalid context at fs/dcache.c:622 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 29657, name: syz-executor.0 preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 no locks held by syz-executor.0/29657. Preemption disabled at: [<0000000000000000>] 0x0 CPU: 0 PID: 29657 Comm: syz-executor.0 Not tainted 6.1.78-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106 __might_resched+0x5cb/0x780 kernel/sched/core.c:9942 __dentry_kill+0x52e/0x650 fs/dcache.c:622 dentry_kill+0xbb/0x290 dput+0xfb/0x1d0 fs/dcache.c:914 __fput+0x5e4/0x890 fs/file_table.c:328 task_work_run+0x246/0x300 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xde/0x100 kernel/entry/common.c:171 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x60/0x270 kernel/entry/common.c:297 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:87 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f24d8c7cc9a Code: 48 3d 00 f0 ff ff 77 48 c3 0f 1f 80 00 00 00 00 48 83 ec 18 89 7c 24 0c e8 03 7f 02 00 8b 7c 24 0c 89 c2 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 36 89 d7 89 44 24 0c e8 63 7f 02 00 8b 44 24 RSP: 002b:00007ffe0cb1b550 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000004 RCX: 00007f24d8c7cc9a RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003 RBP: 0000000000000226 R08: 0000001b2f860000 R09: 00007f24d8dabf8c R10: 00007ffe0cb1b6a0 R11: 0000000000000293 R12: 00007f24d8801fb0 R13: ffffffffffffffff R14: 00007f24d8800000 R15: 000000000005ad61 BUG: scheduling while atomic: syz-executor.0/29657/0x00000002 no locks held by syz-executor.0/29657. Modules linked in: Preemption disabled at: [<0000000000000000>] 0x0