syzbot


WARNING in f2fs_delete_entry

Status: upstream: reported C repro on 2024/11/21 21:29
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+4ecfc6dcd5172a23fc28@syzkaller.appspotmail.com
First crash: 1d07h, last: 1d06h
Bug presence (1)
Date Name Commit Repro Result
2024/11/22 upstream (ToT) 28eb75e178d3 C [report] WARNING in f2fs_delete_entry
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in f2fs_delete_entry f2fs C 3 1d06h 13h14m 0/28 upstream: reported C repro on 2024/11/22 15:15
linux-5.15 WARNING in f2fs_delete_entry C 3 1d06h 1d07h 0/3 upstream: reported C repro on 2024/11/21 21:29

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: 4297 at fs/inode.c:332 drop_nlink+0xe4/0x138 fs/inode.c:332
Modules linked in:
CPU: 1 PID: 4297 Comm: syz-executor347 Not tainted 6.1.118-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : drop_nlink+0xe4/0x138 fs/inode.c:332
lr : drop_nlink+0xe4/0x138 fs/inode.c:332
sp : ffff8000213c7920
x29: ffff8000213c7920 x28: dfff800000000000 x27: dfff800000000000
x26: ffff0000d0652000 x25: 1fffe0001c372354 x24: ffff0000e1b91b18
x23: 1fffe0001c37235d x22: dfff800000000000 x21: 0000000000000000
x20: ffff0000e1b91ae8 x19: ffff0000e1b91aa0 x18: ffff8000213c7560
x17: ffff800018aab000 x16: ffff800008300db8 x15: ffff80001858bf80
x14: 00000000b0d4b4f1 x13: dfff800000000000 x12: 0000000000000003
x11: 0000000000ff0100 x10: 0000000000000000 x9 : ffff800008aaad30
x8 : ffff0000c9f00000 x7 : 0000000000000000 x6 : 0000000000000000
x5 : ffff800018be83d8 x4 : 0000000000000004 x3 : 0000000000000000
x2 : 0000000000000006 x1 : 0000000000000000 x0 : 0000000000000000
Call trace:
 drop_nlink+0xe4/0x138 fs/inode.c:332
 f2fs_i_links_write fs/f2fs/f2fs.h:3044 [inline]
 f2fs_drop_nlink+0x110/0x34c fs/f2fs/dir.c:899
 f2fs_delete_entry+0xae4/0xefc fs/f2fs/dir.c:966
 f2fs_unlink+0x4b8/0xbdc fs/f2fs/namei.c:562
 vfs_unlink+0x2f0/0x508 fs/namei.c:4322
 do_unlinkat+0x4cc/0x70c fs/namei.c:4390
 __do_sys_unlinkat fs/namei.c:4433 [inline]
 __se_sys_unlinkat fs/namei.c:4426 [inline]
 __arm64_sys_unlinkat+0xcc/0xfc fs/namei.c:4426
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52
 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140
 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204
 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585
irq event stamp: 251174
hardirqs last  enabled at (251173): [<ffff800008403650>] seqcount_lockdep_reader_access include/linux/seqlock.h:104 [inline]
hardirqs last  enabled at (251173): [<ffff800008403650>] ktime_get_coarse_real_ts64+0x114/0x244 kernel/time/timekeeping.c:2261
hardirqs last disabled at (251174): [<ffff8000122919a4>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405
softirqs last  enabled at (250886): [<ffff800008030310>] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32
softirqs last disabled at (250884): [<ffff8000080302dc>] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19
---[ end trace 0000000000000000 ]---

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/21 21:56 linux-6.1.y b67dc5c9ade9 4b25d554 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 WARNING in f2fs_delete_entry
2024/11/21 21:28 linux-6.1.y b67dc5c9ade9 4b25d554 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in f2fs_delete_entry
* Struck through repros no longer work on HEAD.