syzbot


kernel BUG in f2fs_do_truncate_blocks (2)

Status: upstream: reported on 2026/05/05 18:27
Subsystems: f2fs
[Documentation on labels]
Reported-by: syzbot+2488d8d751b27f7ce268@syzkaller.appspotmail.com
First crash: 6d03h, last: 6d03h
✨ AI Jobs (2)
ID Workflow Result Correct Bug Created Started Finished Revision Error
78882671-30d3-4867-bc5b-07080ae27bd7 assessment-security DenialOfService: ❌ Exploitable: ❌ FilesystemTrigger: ✅ NetworkTrigger: ❌ PeripheralTrigger: ❌ RemoteTrigger: ❌ Unprivileged: ✅ UserNamespace: ✅ VMGuestTrigger: ❌ VMHostTrigger: ❌ kernel BUG in f2fs_do_truncate_blocks (2) 2026/05/07 19:41 2026/05/07 19:41 2026/05/07 20:25 06a6ee865c1ddbbe04beddc5a2bf68cc0e8aa03c
64b406b5-9145-41de-90f0-79c972bf351f assessment-security 💥 kernel BUG in f2fs_do_truncate_blocks (2) 2026/05/07 04:58 2026/05/07 05:07 2026/05/07 07:04 f250db59430dfb0102692e53ab92e84e82178c3e Error 503, Message: This model is currently experiencing high demand. Spikes in demand are usually temporary. Please try again later., Status: UNAVAILABLE, Details: []
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [f2fs?] kernel BUG in f2fs_do_truncate_blocks (2) 0 (1) 2026/05/05 18:27
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG in f2fs_do_truncate_blocks f2fs -1 3 194d 249d 0/29 auto-obsoleted due to no activity on 2026/02/02 16:58

Sample crash report:
loop0: detected capacity change from 0 to 131072
F2FS-fs (loop0): QUOTA feature is enabled, so ignore qf_name
F2FS-fs (loop0): build fault injection rate: 7
F2FS-fs (loop0): build fault injection type: 0x40004
F2FS-fs (loop0): invalid crc value
F2FS-fs (loop0): inject page alloc in f2fs_grab_cache_folio of read_compacted_summaries fs/f2fs/segment.c:4301 [inline]
F2FS-fs (loop0): inject page alloc in f2fs_grab_cache_folio of restore_curseg_summaries fs/f2fs/segment.c:4445 [inline]
F2FS-fs (loop0): inject page alloc in f2fs_grab_cache_folio of build_curseg+0x105c/0x30c0 fs/f2fs/segment.c:4983
F2FS-fs (loop0): inject page alloc in f2fs_grab_cache_folio of restore_curseg_summaries fs/f2fs/segment.c:4452 [inline]
F2FS-fs (loop0): inject page alloc in f2fs_grab_cache_folio of build_curseg+0x18ea/0x30c0 fs/f2fs/segment.c:4983
F2FS-fs (loop0): inject page alloc in f2fs_grab_cache_folio of build_sit_entries+0x26c/0x1f10 fs/f2fs/segment.c:5000
F2FS-fs (loop0): inject invalid blkaddr in f2fs_is_valid_blkaddr of f2fs_ra_meta_pages+0x21c/0xd60 fs/f2fs/checkpoint.c:472
F2FS-fs (loop0): inject page alloc in f2fs_grab_cache_folio of f2fs_get_meta_folio_retry+0x27/0x80 fs/f2fs/checkpoint.c:318
F2FS-fs (loop0): inject page alloc in f2fs_grab_cache_folio of f2fs_get_meta_folio_retry+0x27/0x80 fs/f2fs/checkpoint.c:318
------------[ cut here ]------------
kernel BUG at fs/f2fs/file.c:845!
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 04/01/2014
RIP: 0010:f2fs_do_truncate_blocks+0x1115/0x1140 fs/f2fs/file.c:845
Code: fc fc 90 0f 0b e8 8b 9d 9a fd 90 0f 0b e8 83 9d 9a fd 48 89 df 48 c7 c6 60 d1 1a 8c e8 54 f1 fc fc 90 0f 0b e8 6c 9d 9a fd 90 <0f> 0b e8 64 9d 9a fd 90 0f 0b 90 e9 93 fd ff ff e8 56 9d 9a fd 90
RSP: 0018:ffffc9000e4474c0 EFLAGS: 00010283
RAX: ffffffff842b1d34 RBX: 0000000000000003 RCX: 0000000000100000
RDX: ffffc9000f03a000 RSI: 0000000000035503 RDI: 0000000000035504
RBP: ffffc9000e447608 R08: ffff8880123b0000 R09: 0000000000000002
R10: 00000000fffffffe R11: 0000000000000002 R12: 0000000000000001
R13: 0000000000000000 R14: 1ffff92001c88ea0 R15: 00000000ffff039c
FS:  00007f7e02ee36c0(0000) GS:ffff88808c887000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ff0305c4000 CR3: 0000000012d4c000 CR4: 0000000000352ef0
Call Trace:
 <TASK>
 f2fs_truncate_blocks+0x10a/0x300 fs/f2fs/file.c:882
 f2fs_truncate+0x471/0x7c0 fs/f2fs/file.c:940
 f2fs_evict_inode+0xa3f/0x1ac0 fs/f2fs/inode.c:907
 evict+0x61e/0xb10 fs/inode.c:841
 f2fs_fill_super+0x5f43/0x78f0 fs/f2fs/super.c:5224
 get_tree_bdev_flags+0x431/0x4f0 fs/super.c:1694
 vfs_get_tree+0x92/0x2a0 fs/super.c:1754
 fc_mount fs/namespace.c:1193 [inline]
 do_new_mount_fc fs/namespace.c:3758 [inline]
 do_new_mount+0x341/0xd30 fs/namespace.c:3834
 do_mount fs/namespace.c:4167 [inline]
 __do_sys_mount fs/namespace.c:4383 [inline]
 __se_sys_mount+0x31d/0x420 fs/namespace.c:4360
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f7e01f9e04a
Code: 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f7e02ee2e18 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f7e02ee2ea0 RCX: 00007f7e01f9e04a
RDX: 0000200000000080 RSI: 00002000000105c0 RDI: 00007f7e02ee2e60
RBP: 0000200000000080 R08: 00007f7e02ee2ea0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00002000000105c0
R13: 00007f7e02ee2e60 R14: 0000000000010589 R15: 0000200000000000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:f2fs_do_truncate_blocks+0x1115/0x1140 fs/f2fs/file.c:845
Code: fc fc 90 0f 0b e8 8b 9d 9a fd 90 0f 0b e8 83 9d 9a fd 48 89 df 48 c7 c6 60 d1 1a 8c e8 54 f1 fc fc 90 0f 0b e8 6c 9d 9a fd 90 <0f> 0b e8 64 9d 9a fd 90 0f 0b 90 e9 93 fd ff ff e8 56 9d 9a fd 90
RSP: 0018:ffffc9000e4474c0 EFLAGS: 00010283
RAX: ffffffff842b1d34 RBX: 0000000000000003 RCX: 0000000000100000
RDX: ffffc9000f03a000 RSI: 0000000000035503 RDI: 0000000000035504
RBP: ffffc9000e447608 R08: ffff8880123b0000 R09: 0000000000000002
R10: 00000000fffffffe R11: 0000000000000002 R12: 0000000000000001
R13: 0000000000000000 R14: 1ffff92001c88ea0 R15: 00000000ffff039c
FS:  00007f7e02ee36c0(0000) GS:ffff88808c887000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055e028509c38 CR3: 0000000012d4c000 CR4: 0000000000352ef0

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/05/01 18:23 upstream 26fd6bff2c05 753c55b9 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in f2fs_do_truncate_blocks
* Struck through repros no longer work on HEAD.