syzbot


WARNING in f2fs_rename2

Status: upstream: reported C repro on 2025/01/10 15:28
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+2b4f6d1a0417159cef1d@syzkaller.appspotmail.com
First crash: 4d17h, last: 4d15h
Bug presence (1)
Date Name Commit Repro Result
2025/01/10 upstream (ToT) e0daef7de1ac C [report] WARNING in f2fs_rename2
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in f2fs_rename2 f2fs C done 33 14h42m 50d 0/28 upstream: reported C repro on 2024/11/26 00:00

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: 0 PID: 4019 at fs/inode.c:307 drop_nlink+0xe8/0x148 fs/inode.c:307
Modules linked in:
CPU: 0 PID: 4019 Comm: syz-executor210 Not tainted 5.15.176-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+0xe8/0x148 fs/inode.c:307
lr : drop_nlink+0xe8/0x148 fs/inode.c:307
sp : ffff80001f217620
x29: ffff80001f217620 x28: ffff80001f217780 x27: 1fffe0001c3a7390
x26: dfff800000000000 x25: ffff0000e1d3a678 x24: 000000001443fd00
x23: 1fffe0001c3a74c9 x22: dfff800000000000 x21: 0000000000000000
x20: ffff0000e1d3a648 x19: ffff0000e1d3a600 x18: ffff80001f217340
x17: 0000000000000000 x16: ffff8000082e5510 x15: 000000000000c054
x14: 0000000081c84cb1 x13: dfff800000000000 x12: 0000000000000001
x11: 0000000000000000 x10: 0000000000000000 x9 : ffff0000d916d1c0
x8 : ffff8000089e9c90 x7 : 0000000000000000 x6 : 0000000000000000
x5 : ffff800017849940 x4 : 0000000000000002 x3 : ffff8000082e5758
x2 : 0000000000000001 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_rename fs/f2fs/namei.c:972 [inline]
 f2fs_rename2+0x1424/0x200c fs/f2fs/namei.c:1246
 vfs_rename+0xac8/0xe04 fs/namei.c:4832
 do_renameat2+0xa00/0x10c0 fs/namei.c:4985
 __do_sys_renameat2 fs/namei.c:5018 [inline]
 __se_sys_renameat2 fs/namei.c:5015 [inline]
 __arm64_sys_renameat2+0xe0/0xfc fs/namei.c:5015
 __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: 285038
hardirqs last  enabled at (285037): [<ffff8000083c6d88>] seqcount_lockdep_reader_access+0x208/0x2cc include/linux/seqlock.h:105
hardirqs last disabled at (285038): [<ffff800011b478f4>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396
softirqs last  enabled at (284606): [<ffff8000080309b8>] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:31
softirqs last disabled at (284604): [<ffff800008030984>] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:18
---[ end trace 4bae02c0ca7d6ec7 ]---

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/01/10 17:18 linux-5.15.y 4735586da88e 67d7ec0a .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 WARNING in f2fs_rename2
2025/01/10 16:23 linux-5.15.y 4735586da88e 67d7ec0a .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 WARNING in f2fs_rename2
2025/01/10 15:28 linux-5.15.y 4735586da88e 67d7ec0a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in f2fs_rename2
* Struck through repros no longer work on HEAD.