BUG: sleeping function called from invalid context at include/linux/sched/mm.h:330 in_atomic(): 0, irqs_disabled(): 0, non_block: 0, pid: 5110, name: syz.0.0 preempt_count: 0, expected: 0 RCU nest depth: 1, expected: 0 1 lock held by syz.0.0/5110: #0: ffffffff8e937de0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline] #0: ffffffff8e937de0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #0: ffffffff8e937de0 (rcu_read_lock){....}-{1:2}, at: path_init+0x12a/0x1360 fs/namei.c:2451 CPU: 0 UID: 0 PID: 5110 Comm: syz.0.0 Not tainted 6.12.0-rc1-syzkaller-00330-gfc20a3e57247 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 __might_resched+0x5d4/0x780 kernel/sched/core.c:8631 might_alloc include/linux/sched/mm.h:330 [inline] slab_pre_alloc_hook mm/slub.c:4036 [inline] slab_alloc_node mm/slub.c:4114 [inline] kmem_cache_alloc_noprof+0x5d/0x2a0 mm/slub.c:4141 ntfs_d_hash+0x1a0/0x420 fs/ntfs3/namei.c:398 link_path_walk+0x92b/0xea0 fs/namei.c:2389 path_lookupat+0xa9/0x450 fs/namei.c:2579 filename_lookup+0x256/0x610 fs/namei.c:2609 user_path_at+0x3a/0x60 fs/namei.c:3016 __do_sys_chdir fs/open.c:561 [inline] __se_sys_chdir+0xbc/0x220 fs/open.c:555 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fea6517dff9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fea64fde038 EFLAGS: 00000246 ORIG_RAX: 0000000000000050 RAX: ffffffffffffffda RBX: 00007fea65336058 RCX: 00007fea6517dff9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000200000c0 RBP: 00007fea651f0296 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fea65336058 R15: 00007fff5431e138