BUG: sleeping function called from invalid context at fs/inode.c:1928 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 6164, name: syz.4.83 preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 3 locks held by syz.4.83/6164: #0: ffff88807c64e420 (sb_writers#16){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90 fs/namespace.c:508 #1: ffff8880576e9c30 (&type->i_mutex_dir_key#14/1){+.+.}-{4:4}, at: inode_lock_nested include/linux/fs.h:1025 [inline] #1: ffff8880576e9c30 (&type->i_mutex_dir_key#14/1){+.+.}-{4:4}, at: do_rmdir+0x1b2/0x550 fs/namei.c:4595 #2: ffff8880576ea478 (&sb->s_type->i_lock_key#44){+.+.}-{3:3}, at: spin_lock include/linux/spinlock.h:351 [inline] #2: ffff8880576ea478 (&sb->s_type->i_lock_key#44){+.+.}-{3:3}, at: f2fs_drop_inode+0x67e/0x950 fs/f2fs/super.c:1822 Preemption disabled at: [<0000000000000000>] 0x0 CPU: 0 UID: 0 PID: 6164 Comm: syz.4.83 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025 Call Trace: dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 __might_resched+0x495/0x610 kernel/sched/core.c:8925 iput+0x2b/0xc50 fs/inode.c:1928 f2fs_drop_inode+0x686/0x950 fs/f2fs/super.c:1823 iput_final fs/inode.c:1884 [inline] iput+0x6dc/0xc50 fs/inode.c:1966 d_delete_notify include/linux/fsnotify.h:377 [inline] vfs_rmdir+0x3ec/0x520 fs/namei.c:4561 do_rmdir+0x25f/0x550 fs/namei.c:4603 __do_sys_rmdir fs/namei.c:4622 [inline] __se_sys_rmdir fs/namei.c:4620 [inline] __x64_sys_rmdir+0x47/0x50 fs/namei.c:4620 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f55a158eec9 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:00007f559f7f6038 EFLAGS: 00000246 ORIG_RAX: 0000000000000054 RAX: ffffffffffffffda RBX: 00007f55a17e5fa0 RCX: 00007f55a158eec9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00002000000000c0 RBP: 00007f55a1611f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f55a17e6038 R14: 00007f55a17e5fa0 R15: 00007ffe8bcfb178 ------------[ cut here ]------------ WARNING: CPU: 0 PID: 6164 at fs/inode.c:1933 iput+0x38c/0xc50 fs/inode.c:1933 Modules linked in: CPU: 0 UID: 0 PID: 6164 Comm: syz.4.83 Tainted: G W syzkaller #0 PREEMPT(full) Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025 RIP: 0010:iput+0x38c/0xc50 fs/inode.c:1933 Code: 80 3d c3 d6 49 0d 01 0f 85 b2 00 00 00 e8 1c fb 81 ff 4c 89 f7 be 10 00 00 00 e8 cf 85 06 00 e9 2c fd ff ff e8 05 fb 81 ff 90 <0f> 0b 90 e9 70 fd ff ff e8 f7 fa 81 ff 90 0f 0b 90 e9 d7 fe ff ff RSP: 0018:ffffc9000beb7c30 EFLAGS: 00010246 RAX: ffffffff823e48eb RBX: 0000000000000001 RCX: 0000000000080000 RDX: ffffc9000c7da000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffff8880576ea4b0 R08: ffffffff9297b047 R09: 1ffffffff252f608 R10: dffffc0000000000 R11: fffffbfff252f609 R12: ffff8880576ea5e0 R13: dffffc0000000000 R14: ffff8880576ea3e0 R15: 1ffffffff1f3c832 FS: 00007f559f7f66c0(0000) GS:ffff888125d0c000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f958a7d1000 CR3: 0000000079a1a000 CR4: 0000000000350ef0 Call Trace: f2fs_drop_inode+0x686/0x950 fs/f2fs/super.c:1823 iput_final fs/inode.c:1884 [inline] iput+0x6dc/0xc50 fs/inode.c:1966 d_delete_notify include/linux/fsnotify.h:377 [inline] vfs_rmdir+0x3ec/0x520 fs/namei.c:4561 do_rmdir+0x25f/0x550 fs/namei.c:4603 __do_sys_rmdir fs/namei.c:4622 [inline] __se_sys_rmdir fs/namei.c:4620 [inline] __x64_sys_rmdir+0x47/0x50 fs/namei.c:4620 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f55a158eec9 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:00007f559f7f6038 EFLAGS: 00000246 ORIG_RAX: 0000000000000054 RAX: ffffffffffffffda RBX: 00007f55a17e5fa0 RCX: 00007f55a158eec9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00002000000000c0 RBP: 00007f55a1611f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f55a17e6038 R14: 00007f55a17e5fa0 R15: 00007ffe8bcfb178