loop0: detected capacity change from 0 to 40427
F2FS-fs (loop0): build fault injection rate: 19
F2FS-fs (loop0): build fault injection type: 0x3bfe8c
F2FS-fs (loop0): invalid crc value
F2FS-fs (loop0): inject page alloc in f2fs_grab_cache_folio of f2fs_ra_meta_pages+0x615/0x970 fs/f2fs/checkpoint.c:303
F2FS-fs (loop0): inject slab alloc in f2fs_kmem_cache_alloc of read_node_folio+0x20a/0x3f0 fs/f2fs/node.c:1458
F2FS-fs (loop0): f2fs_recover_fsync_data: recovery fsync data, check_only: 0
F2FS-fs (loop0): Mounted with checkpoint version = 48b305e5
F2FS-fs (loop0): inject slab alloc in f2fs_kmem_cache_alloc of f2fs_new_node_folio+0x1d9/0xa40 fs/f2fs/node.c:1386
BUG: sleeping function called from invalid context at fs/inode.c:1928
in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5321, name: syz.0.0
preempt_count: 1, expected: 0
RCU nest depth: 0, expected: 0
3 locks held by syz.0.0/5321:
#0: ffff8880363f0420 (sb_writers#12){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90 fs/namespace.c:508
#1: ffff888041e51338 (&type->i_mutex_dir_key#8/1){+.+.}-{4:4}, at: inode_lock_nested include/linux/fs.h:1025 [inline]
#1: ffff888041e51338 (&type->i_mutex_dir_key#8/1){+.+.}-{4:4}, at: do_rmdir+0x1b2/0x550 fs/namei.c:4595
#2: ffff888041e51b80 (&sb->s_type->i_lock_key#35){+.+.}-{3:3}, at: spin_lock include/linux/spinlock.h:351 [inline]
#2: ffff888041e51b80 (&sb->s_type->i_lock_key#35){+.+.}-{3:3}, at: f2fs_drop_inode+0x67e/0x950 fs/f2fs/super.c:1822
Preemption disabled at:
[<0000000000000000>] 0x0
CPU: 0 UID: 0 PID: 5321 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full)
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_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+0x6d9/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:0x7fc4b418eec9
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:00007fc4b4ffe038 EFLAGS: 00000246 ORIG_RAX: 0000000000000054
RAX: ffffffffffffffda RBX: 00007fc4b43e5fa0 RCX: 00007fc4b418eec9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000200000000000
RBP: 00007fc4b4211f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fc4b43e6038 R14: 00007fc4b43e5fa0 R15: 00007ffc62dccb18
------------[ cut here ]------------
WARNING: CPU: 0 PID: 5321 at fs/inode.c:1933 iput+0x38c/0xc50 fs/inode.c:1933
Modules linked in:
CPU: 0 UID: 0 PID: 5321 Comm: syz.0.0 Tainted: G W syzkaller #0 PREEMPT(full)
Tainted: [W]=WARN
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
RIP: 0010:iput+0x38c/0xc50 fs/inode.c:1933
Code: 80 3d e1 1b 49 0d 01 0f 85 b2 00 00 00 e8 4c 82 80 ff 4c 89 f7 be 10 00 00 00 e8 cf 85 06 00 e9 2c fd ff ff e8 35 82 80 ff 90 <0f> 0b 90 e9 70 fd ff ff e8 27 82 80 ff 90 0f 0b 90 e9 d7 fe ff ff
RSP: 0018:ffffc9000d497c30 EFLAGS: 00010283
RAX: ffffffff823f219b RBX: 0000000000000001 RCX: 0000000000100000
RDX: ffffc9000e0aa000 RSI: 000000000000cb7b RDI: 000000000000cb7c
RBP: ffff888041e51bb8 R08: ffffffff92981047 R09: 1ffffffff2530208
R10: dffffc0000000000 R11: fffffbfff2530209 R12: ffff888041e51ce8
R13: dffffc0000000000 R14: ffff888041e51ae8 R15: 1ffffffff1f3cbf2
FS: 00007fc4b4ffe6c0(0000) GS:ffff88808d306000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fc4b43e02b8 CR3: 00000000422ea000 CR4: 0000000000352ef0
Call Trace:
f2fs_drop_inode+0x686/0x950 fs/f2fs/super.c:1823
iput_final fs/inode.c:1884 [inline]
iput+0x6d9/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:0x7fc4b418eec9
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:00007fc4b4ffe038 EFLAGS: 00000246 ORIG_RAX: 0000000000000054
RAX: ffffffffffffffda RBX: 00007fc4b43e5fa0 RCX: 00007fc4b418eec9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000200000000000
RBP: 00007fc4b4211f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fc4b43e6038 R14: 00007fc4b43e5fa0 R15: 00007ffc62dccb18