syzbot


WARNING in f2fs_delete_entry

Status: upstream: reported C repro on 2024/11/22 15:15
Subsystems: f2fs
[Documentation on labels]
Reported-by: syzbot+35a21b6aade7af3c7b3a@syzkaller.appspotmail.com
First crash: 1d03h, last: 1d02h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [f2fs?] WARNING in f2fs_delete_entry 0 (1) 2024/11/22 15:15
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 1d02h 1d03h 0/3 upstream: reported C repro on 2024/11/21 21:29
linux-5.15 WARNING in f2fs_delete_entry C 3 1d02h 1d03h 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: 6420 at fs/inode.c:336 drop_nlink+0xe4/0x138 fs/inode.c:336
Modules linked in:
CPU: 1 UID: 0 PID: 6420 Comm: syz-executor117 Not tainted 6.12.0-syzkaller-g7b1d1d4cfac0 #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:336
lr : drop_nlink+0xe4/0x138 fs/inode.c:336
sp : ffff8000a3d57930
x29: ffff8000a3d57930 x28: 0000000000000000 x27: dfff800000000000
x26: 0000000000000003 x25: fffffdffc363c040 x24: 1fffe0001bc77232
x23: 1fffe0001bc7723b x22: dfff800000000000 x21: 0000000000000000
x20: ffff0000de3b91d8 x19: ffff0000de3b9190 x18: ffff8000a3d57520
x17: 000000000000d842 x16: ffff800080355c58 x15: 0000000000000001
x14: 1ffff00011f440c0 x13: 0000000000000000 x12: 0000000000000000
x11: ffff700011f440c1 x10: 0000000000ff0100 x9 : 0000000000000000
x8 : ffff0000c2d80000 x7 : 0000000000000000 x6 : 0000000000000000
x5 : ffff8000933cf888 x4 : 0000000000000004 x3 : ffff8000804807cc
x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000000000
Call trace:
 drop_nlink+0xe4/0x138 fs/inode.c:336 (P)
 drop_nlink+0xe4/0x138 fs/inode.c:336 (L)
 f2fs_i_links_write fs/f2fs/f2fs.h:3127 [inline]
 f2fs_drop_nlink+0xd0/0x2ec fs/f2fs/dir.c:822
 f2fs_delete_entry+0x9c8/0xcb0 fs/f2fs/dir.c:886
 f2fs_unlink+0x48c/0xad8 fs/f2fs/namei.c:572
 vfs_unlink+0x2f0/0x534 fs/namei.c:4469
 do_unlinkat+0x4d0/0x700 fs/namei.c:4533
 __do_sys_unlinkat fs/namei.c:4576 [inline]
 __se_sys_unlinkat fs/namei.c:4569 [inline]
 __arm64_sys_unlinkat+0xc8/0xf8 fs/namei.c:4569
 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline]
 invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49
 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132
 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151
 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:744
 el0t_64_sync_handler+0x84/0x108 arch/arm64/kernel/entry-common.c:762
 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600
irq event stamp: 212352
hardirqs last  enabled at (212351): [<ffff80008047a5a4>] seqcount_lockdep_reader_access+0x80/0x104 include/linux/seqlock.h:74
hardirqs last disabled at (212352): [<ffff80008b4b302c>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:488
softirqs last  enabled at (212312): [<ffff80008020396c>] softirq_handle_end kernel/softirq.c:400 [inline]
softirqs last  enabled at (212312): [<ffff80008020396c>] handle_softirqs+0xa38/0xbf8 kernel/softirq.c:582
softirqs last disabled at (212299): [<ffff800080020db4>] __do_softirq+0x14/0x20 kernel/softirq.c:588
---[ end trace 0000000000000000 ]---

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/21 21:43 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 7b1d1d4cfac0 4b25d554 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 WARNING in f2fs_delete_entry
2024/11/21 21:28 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 7b1d1d4cfac0 4b25d554 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in f2fs_delete_entry
2024/11/21 21:28 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 7b1d1d4cfac0 4b25d554 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in f2fs_delete_entry
* Struck through repros no longer work on HEAD.