syzbot


kernel BUG in __update_extent_tree_range

Status: fixed on 2026/01/07 12:29
Subsystems: f2fs
[Documentation on labels]
Reported-by: syzbot+24124df3170c3638b35f@syzkaller.appspotmail.com
Fix commit: 7c37c7951032 f2fs: fix to avoid updating zero-sized extent in extent cache
First crash: 98d, last: 32d
Discussions (4)
Title Replies (including bot) Last reply
[PATCH v2] f2fs: fix to avoid updating zero-sized extent in extent cache 2 (2) 2025/11/11 22:50
[syzbot] Monthly f2fs report (Nov 2025) 0 (1) 2025/11/03 13:10
[PATCH] f2fs: fix to avoid updating zero-sized extent in extent cache 1 (1) 2025/10/09 08:52
[syzbot] [f2fs?] kernel BUG in __update_extent_tree_range 0 (1) 2025/10/08 03:12

Sample crash report:
F2FS-fs (loop9): inject invalid blkaddr in f2fs_is_valid_blkaddr of f2fs_do_zero_range fs/f2fs/file.c:1647 [inline]
F2FS-fs (loop9): inject invalid blkaddr in f2fs_is_valid_blkaddr of f2fs_zero_range+0xefa/0x1590 fs/f2fs/file.c:1737
F2FS-fs (loop9): __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 PTI
CPU: 0 UID: 0 PID: 11487 Comm: syz.9.583 Not tainted syzkaller #0 PREEMPT_{RT,(full)} 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
RIP: 0010:__update_extent_tree_range+0x13bd/0x1500 fs/f2fs/extent_cache.c:678
Code: 48 c7 c2 00 ef 33 8b 48 c7 c1 d5 05 fa 8c 44 8b 44 24 0c 4c 8b 4c 24 30 41 ff 37 41 56 6a 00 53 e8 18 0a ef ff 48 83 c4 20 90 <0f> 0b f3 0f 1e fa 65 44 8b 3d 49 f5 99 0d bf 07 00 00 00 44 89 fe
RSP: 0018:ffffc90005d37920 EFLAGS: 00010282
RAX: 10bc5caaf38a6000 RBX: 0000000000000000 RCX: 10bc5caaf38a6000
RDX: ffffc90014659000 RSI: 00000000000033ea RDI: 00000000000033eb
RBP: ffffc90005d37af0 R08: 0000000000000000 R09: 0000000000000000
R10: dffffc0000000000 R11: ffffed1017104923 R12: 1ffff92000ba6f48
R13: ffff88805c8ad580 R14: 0000000000000000 R15: ffffc90005d37b18
FS:  00007fb7a42e66c0(0000) GS:ffff888126d12000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fba8476b000 CR3: 000000001f7c6000 CR4: 00000000003526f0
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+0x10cb/0x1590 fs/f2fs/file.c:1737
 f2fs_fallocate+0x576/0x970 fs/f2fs/file.c:2030
 vfs_fallocate+0x672/0x7f0 fs/open.c:339
 ksys_fallocate fs/open.c:363 [inline]
 __do_sys_fallocate fs/open.c:368 [inline]
 __se_sys_fallocate fs/open.c:366 [inline]
 __x64_sys_fallocate+0xc0/0x110 fs/open.c:366
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xfa/0xf80 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fb7a607f749
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:00007fb7a42e6038 EFLAGS: 00000246 ORIG_RAX: 000000000000011d
RAX: ffffffffffffffda RBX: 00007fb7a62d5fa0 RCX: 00007fb7a607f749
RDX: 0000000000000000 RSI: 0000000000000010 RDI: 0000000000000007
RBP: 00007fb7a6103f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000007000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fb7a62d6038 R14: 00007fb7a62d5fa0 R15: 00007fffdb3e6288
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__update_extent_tree_range+0x13bd/0x1500 fs/f2fs/extent_cache.c:678
Code: 48 c7 c2 00 ef 33 8b 48 c7 c1 d5 05 fa 8c 44 8b 44 24 0c 4c 8b 4c 24 30 41 ff 37 41 56 6a 00 53 e8 18 0a ef ff 48 83 c4 20 90 <0f> 0b f3 0f 1e fa 65 44 8b 3d 49 f5 99 0d bf 07 00 00 00 44 89 fe
RSP: 0018:ffffc90005d37920 EFLAGS: 00010282
RAX: 10bc5caaf38a6000 RBX: 0000000000000000 RCX: 10bc5caaf38a6000
RDX: ffffc90014659000 RSI: 00000000000033ea RDI: 00000000000033eb
RBP: ffffc90005d37af0 R08: 0000000000000000 R09: 0000000000000000
R10: dffffc0000000000 R11: ffffed1017104923 R12: 1ffff92000ba6f48
R13: ffff88805c8ad580 R14: 0000000000000000 R15: ffffc90005d37b18
FS:  00007fb7a42e66c0(0000) GS:ffff888126d12000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fba8476b000 CR3: 000000001f7c6000 CR4: 00000000003526f0

Crashes (18):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/12/09 00:02 upstream c2f2b01b74be d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in __update_extent_tree_range
2025/12/07 19:43 upstream 37bb2e7217b0 d1b870e1 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in __update_extent_tree_range
2025/12/07 07:06 upstream c06c303832ec d1b870e1 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in __update_extent_tree_range
2025/11/19 15:25 upstream 8b690556d8fe 82d7b894 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in __update_extent_tree_range
2025/11/14 07:47 upstream 2ccec5944606 07e030de .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in __update_extent_tree_range
2025/11/06 06:32 upstream dc77806cf3b4 a6c9c731 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in __update_extent_tree_range
2025/11/05 07:49 upstream c9cfc122f037 a6c9c731 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in __update_extent_tree_range
2025/10/23 12:29 upstream 43e9ad0c55a3 c0460fcd .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in __update_extent_tree_range
2025/10/20 04:37 upstream d9043c79ba68 1c8c8cd8 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in __update_extent_tree_range
2025/10/20 02:41 upstream d9043c79ba68 1c8c8cd8 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in __update_extent_tree_range
2025/10/10 17:33 upstream 5472d60c129f ff1712fe .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in __update_extent_tree_range
2025/10/09 17:24 upstream ec714e371f22 7e2882b3 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in __update_extent_tree_range
2025/10/08 14:32 upstream 0d97f2067c16 7e2882b3 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in __update_extent_tree_range
2025/10/04 04:21 upstream 2ccb4d203fe4 49379ee0 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in __update_extent_tree_range
2025/10/04 04:21 upstream 2ccb4d203fe4 49379ee0 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in __update_extent_tree_range
2025/10/04 04:19 upstream 2ccb4d203fe4 49379ee0 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in __update_extent_tree_range
2025/10/04 03:10 upstream 2ccb4d203fe4 49379ee0 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in __update_extent_tree_range
2025/11/20 18:30 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci ef10811e9f56 280ea308 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in __update_extent_tree_range
* Struck through repros no longer work on HEAD.