syzbot


kernel BUG in f2fs_allocate_data_block

Status: upstream: reported C repro on 2025/06/16 20:16
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+fd1280572f6ac45a8a80@syzkaller.appspotmail.com
First crash: 169d, last: 13h36m
Bug presence (2)
Date Name Commit Repro Result
2025/06/22 linux-6.6.y (ToT) 6282921b6825 C [report] kernel BUG in f2fs_allocate_data_block
2025/06/22 upstream (ToT) 739a6c93cc75 C Didn't crash
Fix bisection attempts (1)
Created Duration User Patch Repo Result
2025/09/15 11:56 1h48m fix candidate upstream OK (0) job log

Sample crash report:
syz.0.17[5969]: memfd_create() called without MFD_EXEC or MFD_NOEXEC_SEAL set
loop0: detected capacity change from 0 to 40427
F2FS-fs (loop0): invalid crc value
F2FS-fs (loop0): Found nat_bits in checkpoint
F2FS-fs (loop0): Mounted with checkpoint version = 48b305e5
------------[ cut here ]------------
kernel BUG at fs/f2fs/segment.c:3481!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 5969 Comm: syz.0.17 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025
RIP: 0010:f2fs_allocate_data_block+0x3f08/0x3f50 fs/f2fs/segment.c:3481
Code: 21 fe 48 8b 54 24 30 e9 c6 eb ff ff e8 01 d3 c9 fd 48 c7 c7 f0 b5 2f 8d 4c 89 f6 e8 42 ee 95 00 e9 e2 eb ff ff e8 e8 d2 c9 fd <0f> 0b e8 e1 d2 c9 fd 0f 0b e8 da d2 c9 fd 0f 0b e8 d3 d2 c9 fd 0f
RSP: 0018:ffffc900033a7830 EFLAGS: 00010293
RAX: ffffffff83bbc4b8 RBX: 0000000000000200 RCX: ffff888029d10000
RDX: 0000000000000000 RSI: 0000000000000200 RDI: 0000000000000200
RBP: 0000000000000200 R08: ffff88807e10305f R09: 1ffff1100fc2060b
R10: dffffc0000000000 R11: ffffed100fc2060c R12: 1ffff92000674f7c
R13: 0000000000000000 R14: 0000000000002a00 R15: dffffc0000000000
FS:  000055555bf95500(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2ec63fff CR3: 0000000077715000 CR4: 00000000003506e0
Call Trace:
 <TASK>
 __allocate_data_block fs/f2fs/data.c:1421 [inline]
 f2fs_map_blocks+0x1301/0x3d60 fs/f2fs/data.c:1604
 f2fs_expand_inode_data+0x5c2/0x970 fs/f2fs/file.c:1837
 f2fs_fallocate+0x416/0x8a0 fs/f2fs/file.c:1940
 vfs_fallocate+0x58e/0x700 fs/open.c:324
 ksys_fallocate fs/open.c:347 [inline]
 __do_sys_fallocate fs/open.c:355 [inline]
 __se_sys_fallocate fs/open.c:353 [inline]
 __x64_sys_fallocate+0xc1/0x110 fs/open.c:353
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7faa9718eec9
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:00007fff68b9e6c8 EFLAGS: 00000246 ORIG_RAX: 000000000000011d
RAX: ffffffffffffffda RBX: 00007faa973e5fa0 RCX: 00007faa9718eec9
RDX: 000000000000fc01 RSI: 0000000000000000 RDI: 0000000000000005
RBP: 00007faa97211f91 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000001000f4 R11: 0000000000000246 R12: 0000000000000000
R13: 00007faa973e5fa0 R14: 00007faa973e5fa0 R15: 0000000000000004
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:f2fs_allocate_data_block+0x3f08/0x3f50 fs/f2fs/segment.c:3481
Code: 21 fe 48 8b 54 24 30 e9 c6 eb ff ff e8 01 d3 c9 fd 48 c7 c7 f0 b5 2f 8d 4c 89 f6 e8 42 ee 95 00 e9 e2 eb ff ff e8 e8 d2 c9 fd <0f> 0b e8 e1 d2 c9 fd 0f 0b e8 da d2 c9 fd 0f 0b e8 d3 d2 c9 fd 0f
RSP: 0018:ffffc900033a7830 EFLAGS: 00010293
RAX: ffffffff83bbc4b8 RBX: 0000000000000200 RCX: ffff888029d10000
RDX: 0000000000000000 RSI: 0000000000000200 RDI: 0000000000000200
RBP: 0000000000000200 R08: ffff88807e10305f R09: 1ffff1100fc2060b
R10: dffffc0000000000 R11: ffffed100fc2060c R12: 1ffff92000674f7c
R13: 0000000000000000 R14: 0000000000002a00 R15: dffffc0000000000
FS:  000055555bf95500(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f192c75a000 CR3: 0000000077715000 CR4: 00000000003506f0

Crashes (287):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/09/30 07:24 linux-6.6.y 147338df3487 86341da6 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/06/20 09:27 linux-6.6.y 6282921b6825 ed3e87f7 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/12/02 09:32 linux-6.6.y 4791134e4aeb d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/11/29 10:33 linux-6.6.y 1e89a1be4fe9 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/11/08 15:57 linux-6.6.y 0a805b6ea8cd 4e1406b4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/11/04 05:46 linux-6.6.y 0a805b6ea8cd 686bf657 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/11/01 08:37 linux-6.6.y e5bbb12db2c7 2c50b6a9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/11/01 08:37 linux-6.6.y e5bbb12db2c7 2c50b6a9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/10/31 19:54 linux-6.6.y e5bbb12db2c7 2c50b6a9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/10/26 23:24 linux-6.6.y 4a243110dc88 c0460fcd .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/10/25 17:40 linux-6.6.y 4a243110dc88 c0460fcd .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/10/23 09:20 linux-6.6.y f231f248323d c0460fcd .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/10/22 17:42 linux-6.6.y f231f248323d 252fbbad .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/10/21 17:26 linux-6.6.y f231f248323d 9832ed61 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/10/04 07:03 linux-6.6.y f34f16e5c632 49379ee0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/10/02 23:31 linux-6.6.y f34f16e5c632 49379ee0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/10/01 04:28 linux-6.6.y 147338df3487 65a0eece .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/09/30 06:21 linux-6.6.y 147338df3487 86341da6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/09/25 20:19 linux-6.6.y 147338df3487 0abd0691 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/09/25 03:26 linux-6.6.y af1544b5d072 0abd0691 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/09/24 23:28 linux-6.6.y af1544b5d072 0abd0691 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/09/23 00:24 linux-6.6.y af1544b5d072 0ac7291c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/09/22 23:18 linux-6.6.y af1544b5d072 0ac7291c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/09/22 03:57 linux-6.6.y af1544b5d072 67c37560 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/09/22 02:38 linux-6.6.y af1544b5d072 67c37560 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/09/21 09:25 linux-6.6.y af1544b5d072 67c37560 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/09/20 22:32 linux-6.6.y af1544b5d072 67c37560 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/09/20 20:37 linux-6.6.y af1544b5d072 67c37560 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/09/20 16:37 linux-6.6.y af1544b5d072 67c37560 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/09/20 04:37 linux-6.6.y af1544b5d072 67c37560 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/09/18 12:40 linux-6.6.y 60a9e718726f e2beed91 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/09/18 02:31 linux-6.6.y 60a9e718726f e2beed91 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/09/14 01:26 linux-6.6.y 60a9e718726f e2beed91 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/09/13 22:06 linux-6.6.y 60a9e718726f e2beed91 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/09/13 18:08 linux-6.6.y 60a9e718726f e2beed91 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/09/13 04:54 linux-6.6.y 60a9e718726f e2beed91 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/09/12 17:07 linux-6.6.y 60a9e718726f e2beed91 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/09/12 17:07 linux-6.6.y 60a9e718726f e2beed91 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/09/12 08:56 linux-6.6.y 60a9e718726f e2beed91 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/09/09 17:25 linux-6.6.y 355bd0b51d2f d291dd2d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/08/29 08:14 linux-6.6.y cc1a1c5b404a d401b9d7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/08/28 10:09 linux-6.6.y bb9c90ab9c5a e12e5ba4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/08/25 17:59 linux-6.6.y bb9c90ab9c5a bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/08/25 00:07 linux-6.6.y bb9c90ab9c5a bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/08/24 16:46 linux-6.6.y bb9c90ab9c5a bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/08/24 02:43 linux-6.6.y bb9c90ab9c5a bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/08/21 08:26 linux-6.6.y bb9c90ab9c5a 0b9605c8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/08/19 11:50 linux-6.6.y bb9c90ab9c5a 523f460e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/06/16 20:16 linux-6.6.y c2603c511feb d1716036 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
* Struck through repros no longer work on HEAD.