lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <68e5d698.050a0220.256323.0032.GAE@google.com>
Date: Tue, 07 Oct 2025 20:12:24 -0700
From: syzbot <syzbot+24124df3170c3638b35f@...kaller.appspotmail.com>
To: chao@...nel.org, jaegeuk@...nel.org, 
	linux-f2fs-devel@...ts.sourceforge.net, linux-kernel@...r.kernel.org, 
	syzkaller-bugs@...glegroups.com
Subject: [syzbot] [f2fs?] kernel BUG in __update_extent_tree_range

Hello,

syzbot found the following issue on:

HEAD commit:    2ccb4d203fe4 Merge tag 'for-linus' of git://git.kernel.org..
git tree:       upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=130b4458580000
kernel config:  https://syzkaller.appspot.com/x/.config?x=e0e74def2d38a839
dashboard link: https://syzkaller.appspot.com/bug?extid=24124df3170c3638b35f
compiler:       Debian clang version 20.1.8 (++20250708063551+0c9f909b7976-1~exp1~20250708183702.136), Debian LLD 20.1.8

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

Downloadable assets:
disk image (non-bootable): https://storage.googleapis.com/syzbot-assets/d900f083ada3/non_bootable_disk-2ccb4d20.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/749f87aeac3d/vmlinux-2ccb4d20.xz
kernel image: https://storage.googleapis.com/syzbot-assets/0c8888fbaabd/bzImage-2ccb4d20.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+24124df3170c3638b35f@...kaller.appspotmail.com

loop0: detected capacity change from 0 to 131072
F2FS-fs (loop0): f2fs_recover_fsync_data: recovery fsync data, check_only: 0
F2FS-fs (loop0): Mounted with checkpoint version = 1b41e955
F2FS-fs (loop0): access invalid blkaddr:16711680
CPU: 0 UID: 0 PID: 5336 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120
 __f2fs_is_valid_blkaddr+0xe52/0x14f0 fs/f2fs/checkpoint.c:213
 f2fs_do_zero_range fs/f2fs/file.c:1647 [inline]
 f2fs_zero_range+0xef0/0x1580 fs/f2fs/file.c:1737
 f2fs_fallocate+0x583/0x990 fs/f2fs/file.c:2030
 vfs_fallocate+0x669/0x7e0 fs/open.c:342
 ioctl_preallocate fs/ioctl.c:289 [inline]
 file_ioctl+0x611/0x780 fs/ioctl.c:-1
 do_vfs_ioctl+0xb33/0x1430 fs/ioctl.c:576
 __do_sys_ioctl fs/ioctl.c:595 [inline]
 __se_sys_ioctl+0x82/0x170 fs/ioctl.c:583
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f07bc58eec9
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:00007f07bd4f2038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f07bc7e5fa0 RCX: 00007f07bc58eec9
RDX: 0000200000000040 RSI: 0000000040305839 RDI: 0000000000000004
RBP: 00007f07bc611f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f07bc7e6038 R14: 00007f07bc7e5fa0 R15: 00007ffdf7c46b18
 </TASK>
F2FS-fs (loop0): __update_extent_tree_range: extent len is zero, type: 0, extent [0, 0, 0], age [0, 0]
------------[ cut here ]------------
kernel BUG at fs/f2fs/extent_cache.c:678!
Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI
CPU: 0 UID: 0 PID: 5336 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
RIP: 0010:__update_extent_tree_range+0x13bc/0x1500 fs/f2fs/extent_cache.c:678
Code: 48 c7 c2 60 62 93 8b 48 c7 c1 a4 09 6c 8d 44 8b 44 24 0c 4c 8b 4c 24 30 41 ff 37 41 56 6a 00 53 e8 89 09 ef ff 48 83 c4 20 90 <0f> 0b f3 0f 1e fa 65 44 8b 3d 5a 3e 2e 0e bf 07 00 00 00 44 89 fe
RSP: 0018:ffffc9000d47f4e0 EFLAGS: 00010282
RAX: 2b7eb175dbc53d00 RBX: 0000000000000000 RCX: 2b7eb175dbc53d00
RDX: ffffc9000e052000 RSI: 00000000000125e2 RDI: 00000000000125e3
RBP: ffffc9000d47f6b0 R08: ffffc9000d47f0a7 R09: 1ffff92001a8fe14
R10: dffffc0000000000 R11: fffff52001a8fe15 R12: 1ffff92001a8fec0
R13: ffff8880123b9ae8 R14: 0000000000000000 R15: ffffc9000d47f6d8
FS:  00007f07bd4f26c0(0000) GS:ffff88808d97f000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f54bb84ad50 CR3: 00000000420fe000 CR4: 0000000000352ef0
Call Trace:
 <TASK>
 f2fs_update_read_extent_cache_range+0x192/0x3e0 fs/f2fs/extent_cache.c:1085
 f2fs_do_zero_range fs/f2fs/file.c:1657 [inline]
 f2fs_zero_range+0x10c1/0x1580 fs/f2fs/file.c:1737
 f2fs_fallocate+0x583/0x990 fs/f2fs/file.c:2030
 vfs_fallocate+0x669/0x7e0 fs/open.c:342
 ioctl_preallocate fs/ioctl.c:289 [inline]
 file_ioctl+0x611/0x780 fs/ioctl.c:-1
 do_vfs_ioctl+0xb33/0x1430 fs/ioctl.c:576
 __do_sys_ioctl fs/ioctl.c:595 [inline]
 __se_sys_ioctl+0x82/0x170 fs/ioctl.c:583
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f07bc58eec9
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:00007f07bd4f2038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f07bc7e5fa0 RCX: 00007f07bc58eec9
RDX: 0000200000000040 RSI: 0000000040305839 RDI: 0000000000000004
RBP: 00007f07bc611f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f07bc7e6038 R14: 00007f07bc7e5fa0 R15: 00007ffdf7c46b18
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__update_extent_tree_range+0x13bc/0x1500 fs/f2fs/extent_cache.c:678
Code: 48 c7 c2 60 62 93 8b 48 c7 c1 a4 09 6c 8d 44 8b 44 24 0c 4c 8b 4c 24 30 41 ff 37 41 56 6a 00 53 e8 89 09 ef ff 48 83 c4 20 90 <0f> 0b f3 0f 1e fa 65 44 8b 3d 5a 3e 2e 0e bf 07 00 00 00 44 89 fe
RSP: 0018:ffffc9000d47f4e0 EFLAGS: 00010282
RAX: 2b7eb175dbc53d00 RBX: 0000000000000000 RCX: 2b7eb175dbc53d00
RDX: ffffc9000e052000 RSI: 00000000000125e2 RDI: 00000000000125e3
RBP: ffffc9000d47f6b0 R08: ffffc9000d47f0a7 R09: 1ffff92001a8fe14
R10: dffffc0000000000 R11: fffff52001a8fe15 R12: 1ffff92001a8fec0
R13: ffff8880123b9ae8 R14: 0000000000000000 R15: ffffc9000d47f6d8
FS:  00007f07bd4f26c0(0000) GS:ffff88808d97f000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f07bd4d19a0 CR3: 00000000420fe000 CR4: 0000000000352ef0


---
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 syzkaller@...glegroups.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ