[v6.1] WARNING in f2fs_unlink

3 views
Skip to first unread message

syzbot

unread,
Feb 10, 2025, 4:12:26 AM2/10/25
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 0cbb5f65e52f Linux 6.1.128
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=11bcbb18580000
kernel config: https://syzkaller.appspot.com/x/.config?x=ddc0722618a3964e
dashboard link: https://syzkaller.appspot.com/bug?extid=27489c6642fc3831fdbd
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/c6d849a518b0/disk-0cbb5f65.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/76ad82aaf432/vmlinux-0cbb5f65.xz
kernel image: https://storage.googleapis.com/syzbot-assets/5d4b74f07bf4/bzImage-0cbb5f65.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+27489c...@syzkaller.appspotmail.com

F2FS-fs (loop6): Mounted with checkpoint version = 48b305e4
------------[ cut here ]------------
WARNING: CPU: 0 PID: 5148 at fs/inode.c:332 drop_nlink+0xbb/0x100
Modules linked in:
CPU: 0 PID: 5148 Comm: syz.6.189 Not tainted 6.1.128-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
RIP: 0010:drop_nlink+0xbb/0x100 fs/inode.c:332
Code: 49 8b 1e 48 8d bb c0 07 00 00 be 08 00 00 00 e8 0b f1 e9 ff f0 48 ff 83 c0 07 00 00 5b 41 5c 41 5e 41 5f 5d c3 e8 65 5c 92 ff <0f> 0b eb 89 44 89 e1 80 e1 07 80 c1 03 38 c1 0f 8c 62 ff ff ff 4c
RSP: 0018:ffffc900033b7bd8 EFLAGS: 00010283
RAX: ffffffff81f8403b RBX: 1ffff1100b8d9009 RCX: 0000000000080000
RDX: ffffc900177dd000 RSI: 0000000000003e2e RDI: 0000000000003e2f
RBP: 0000000000000000 R08: ffffffff81f83fbf R09: fffffbfff224a073
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88805c6c8048
R13: ffff8880594f8000 R14: ffff88805c6c8000 R15: dffffc0000000000
FS: 00007f6a1c9dc6c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2d320000 CR3: 0000000056995000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
f2fs_i_links_write fs/f2fs/f2fs.h:3044 [inline]
f2fs_drop_nlink+0x13c/0x3f0 fs/f2fs/dir.c:899
f2fs_unlink+0x4ad/0xa10 fs/f2fs/namei.c:562
vfs_unlink+0x359/0x5f0 fs/namei.c:4322
do_unlinkat+0x4a5/0x820 fs/namei.c:4390
__do_sys_unlink fs/namei.c:4438 [inline]
__se_sys_unlink fs/namei.c:4436 [inline]
__x64_sys_unlink+0x45/0x50 fs/namei.c:4436
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f6a1bb8cde9
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:00007f6a1c9dc038 EFLAGS: 00000246 ORIG_RAX: 0000000000000057
RAX: ffffffffffffffda RBX: 00007f6a1bda5fa0 RCX: 00007f6a1bb8cde9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000400000000100
RBP: 00007f6a1bc0e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f6a1bda5fa0 R15: 00007ffe06df2598
</TASK>


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

syzbot

unread,
Feb 10, 2025, 4:33:27 AM2/10/25
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 0cbb5f65e52f Linux 6.1.128
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=15c5c2a4580000
kernel config: https://syzkaller.appspot.com/x/.config?x=ddc0722618a3964e
dashboard link: https://syzkaller.appspot.com/bug?extid=27489c6642fc3831fdbd
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1722bb18580000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=16a0ebdf980000
mounted in repro: https://storage.googleapis.com/syzbot-assets/4c4cea3eb5ad/mount_0.gz
fsck result: failed (log: https://syzkaller.appspot.com/x/fsck.log?x=177ad1b0580000)

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+27489c...@syzkaller.appspotmail.com

loop0: detected capacity change from 0 to 131072
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: 4245 at fs/inode.c:332 drop_nlink+0xbb/0x100
Modules linked in:
CPU: 1 PID: 4245 Comm: syz-executor249 Not tainted 6.1.128-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
RIP: 0010:drop_nlink+0xbb/0x100 fs/inode.c:332
Code: 49 8b 1e 48 8d bb c0 07 00 00 be 08 00 00 00 e8 0b f1 e9 ff f0 48 ff 83 c0 07 00 00 5b 41 5c 41 5e 41 5f 5d c3 e8 65 5c 92 ff <0f> 0b eb 89 44 89 e1 80 e1 07 80 c1 03 38 c1 0f 8c 62 ff ff ff 4c
RSP: 0018:ffffc900039d7bd8 EFLAGS: 00010293
RAX: ffffffff81f8403b RBX: 1ffff1100e24d241 RCX: ffff88802f903b80
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffff81f83fbf R09: fffffbfff224a066
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888071269208
R13: ffff88807586c000 R14: ffff8880712691c0 R15: dffffc0000000000
FS: 000055555fd73380(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 000000007ddc2000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
f2fs_i_links_write fs/f2fs/f2fs.h:3044 [inline]
f2fs_drop_nlink+0x13c/0x3f0 fs/f2fs/dir.c:899
f2fs_unlink+0x4ad/0xa10 fs/f2fs/namei.c:562
vfs_unlink+0x359/0x5f0 fs/namei.c:4322
do_unlinkat+0x4a5/0x820 fs/namei.c:4390
__do_sys_unlink fs/namei.c:4438 [inline]
__se_sys_unlink fs/namei.c:4436 [inline]
__x64_sys_unlink+0x45/0x50 fs/namei.c:4436
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f04d7cf9639
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffdbe8c6988 EFLAGS: 00000246 ORIG_RAX: 0000000000000057
RAX: ffffffffffffffda RBX: 00007ffdbe8c6b68 RCX: 00007f04d7cf9639
RDX: ffffffffffffffb8 RSI: 0000000000000042 RDI: 0000400000000100
RBP: 00007f04d7d7c610 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000000105b7 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffdbe8c6b58 R14: 0000000000000001 R15: 0000000000000001
</TASK>


---
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.
Reply all
Reply to author
Forward
0 new messages