syzbot


WARNING in f2fs_delete_entry

Status: upstream: reported C repro on 2024/11/21 21:29
Reported-by: syzbot+42665772e58deba33ed6@syzkaller.appspotmail.com
First crash: 1d06h, last: 1d06h
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 WARNING in f2fs_delete_entry origin:upstream C 2 1d06h 1d06h 0/3 upstream: reported C repro on 2024/11/21 21:29
upstream WARNING in f2fs_delete_entry f2fs C 3 1d06h 12h52m 0/28 upstream: reported C repro on 2024/11/22 15:15

Sample crash report:
F2FS-fs (loop0): invalid crc value
F2FS-fs (loop0): Found nat_bits in checkpoint
F2FS-fs (loop0): Mounted with checkpoint version = 48b305e4
------------[ cut here ]------------
WARNING: CPU: 1 PID: 4024 at fs/inode.c:307 drop_nlink+0xe8/0x148 fs/inode.c:307
Modules linked in:
CPU: 1 PID: 4024 Comm: syz-executor141 Not tainted 5.15.173-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : drop_nlink+0xe8/0x148 fs/inode.c:307
lr : drop_nlink+0xe8/0x148 fs/inode.c:307
sp : ffff80001d157910
x29: ffff80001d157910 x28: fffffc0003371fc8 x27: dfff800000000000
x26: dfff800000000000 x25: 1fffe0001c30d000 x24: ffff0000e1868078
x23: 1fffe0001c30d009 x22: dfff800000000000 x21: 0000000000000000
x20: ffff0000e1868048 x19: ffff0000e1868000 x18: ffff80001d157520
x17: 0000000000000000 x16: ffff8000082ec8b8 x15: 000000000000b944
x14: 00000000b730e04d x13: dfff800000000000 x12: 0000000000000003
x11: 0000000000000000 x10: 0000000000000000 x9 : ffff0000d34b0000
x8 : ffff8000089ea188 x7 : 0000000000000000 x6 : 0000000000000000
x5 : ffff800017795e08 x4 : 0000000000000000 x3 : ffff80000804605c
x2 : 0000000000000006 x1 : 0000000000000000 x0 : 0000000000000000
Call trace:
 drop_nlink+0xe8/0x148 fs/inode.c:307
 f2fs_i_links_write fs/f2fs/f2fs.h:2884 [inline]
 f2fs_drop_nlink+0x10c/0x314 fs/f2fs/dir.c:888
 f2fs_delete_entry+0x9e4/0xd6c fs/f2fs/dir.c:955
 f2fs_unlink+0x2fc/0x93c fs/f2fs/namei.c:567
 vfs_unlink+0x2f0/0x508 fs/namei.c:4280
 do_unlinkat+0x4cc/0x830 fs/namei.c:4348
 __do_sys_unlinkat fs/namei.c:4391 [inline]
 __se_sys_unlinkat fs/namei.c:4384 [inline]
 __arm64_sys_unlinkat+0xcc/0xfc fs/namei.c:4384
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52
 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608
 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
irq event stamp: 284210
hardirqs last  enabled at (284209): [<ffff8000083c6d0c>] seqcount_lockdep_reader_access+0x208/0x2cc include/linux/seqlock.h:105
hardirqs last disabled at (284210): [<ffff800011ab40c0>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396
softirqs last  enabled at (283916): [<ffff8000080308b0>] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:31
softirqs last disabled at (283914): [<ffff80000803087c>] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:18
---[ end trace 8a1707d424dafdb7 ]---

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/21 21:58 linux-5.15.y 0a51d2d4527b 4b25d554 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 WARNING in f2fs_delete_entry
2024/11/21 21:44 linux-5.15.y 0a51d2d4527b 4b25d554 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 WARNING in f2fs_delete_entry
2024/11/21 21:29 linux-5.15.y 0a51d2d4527b 4b25d554 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in f2fs_delete_entry
* Struck through repros no longer work on HEAD.