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: 74d, last: 23h30m
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

Sample crash report:
syz-executor343[5762]: 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:3475!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 5762 Comm: syz-executor343 Not tainted 6.6.94-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
RIP: 0010:f2fs_allocate_data_block+0x3f0c/0x3f50 fs/f2fs/segment.c:3475
Code: 22 fe 48 8b 54 24 30 e9 c6 eb ff ff e8 cd 59 c9 fd 48 c7 c7 30 d6 2f 8d 4c 89 f6 e8 4e f6 95 00 e9 e2 eb ff ff e8 b4 59 c9 fd <0f> 0b e8 ad 59 c9 fd 0f 0b e8 a6 59 c9 fd 0f 0b e8 9f 59 c9 fd 0f
RSP: 0018:ffffc9000459f850 EFLAGS: 00010293
RAX: ffffffff83bc3c1c RBX: 0000000000000201 RCX: ffff88802f610000
RDX: 0000000000000000 RSI: 0000000000000201 RDI: 0000000000000200
RBP: 0000000000000200 R08: ffff888025e8a45f R09: 1ffff11004bd148b
R10: dffffc0000000000 R11: ffffed1004bd148c R12: 1ffff920008b3f7c
R13: 0000000000000000 R14: 0000000000002401 R15: dffffc0000000000
FS:  0000555590526380(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fad6de12000 CR3: 000000005a16f000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __allocate_data_block fs/f2fs/data.c:1421 [inline]
 f2fs_map_blocks+0x1697/0x3c00 fs/f2fs/data.c:1601
 f2fs_expand_inode_data+0x543/0x8e0 fs/f2fs/file.c:1798
 f2fs_fallocate+0x416/0x8a0 fs/f2fs/file.c:1901
 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:0x7f1f9fbe5879
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:00007ffcc9777b08 EFLAGS: 00000246 ORIG_RAX: 000000000000011d
RAX: ffffffffffffffda RBX: 0000200000000180 RCX: 00007f1f9fbe5879
RDX: 000000000000fc01 RSI: 0000000000000000 RDI: 0000000000000005
RBP: 00007f1f9fc5d610 R08: 00000000000b55f8 R09: 00000000000b55f8
R10: 00000000001000f4 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffcc9777cd8 R14: 0000000000000001 R15: 0000000000000001
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:f2fs_allocate_data_block+0x3f0c/0x3f50 fs/f2fs/segment.c:3475
Code: 22 fe 48 8b 54 24 30 e9 c6 eb ff ff e8 cd 59 c9 fd 48 c7 c7 30 d6 2f 8d 4c 89 f6 e8 4e f6 95 00 e9 e2 eb ff ff e8 b4 59 c9 fd <0f> 0b e8 ad 59 c9 fd 0f 0b e8 a6 59 c9 fd 0f 0b e8 9f 59 c9 fd 0f
RSP: 0018:ffffc9000459f850 EFLAGS: 00010293
RAX: ffffffff83bc3c1c RBX: 0000000000000201 RCX: ffff88802f610000
RDX: 0000000000000000 RSI: 0000000000000201 RDI: 0000000000000200
RBP: 0000000000000200 R08: ffff888025e8a45f R09: 1ffff11004bd148b
R10: dffffc0000000000 R11: ffffed1004bd148c R12: 1ffff920008b3f7c
R13: 0000000000000000 R14: 0000000000002401 R15: dffffc0000000000
FS:  0000555590526380(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fad6de12000 CR3: 000000005a16f000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (212):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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/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/08/18 11:12 linux-6.6.y bb9c90ab9c5a 1804e95e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/08/17 21:44 linux-6.6.y bb9c90ab9c5a 1804e95e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/08/17 14:08 linux-6.6.y bb9c90ab9c5a 1804e95e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/08/17 11:07 linux-6.6.y bb9c90ab9c5a 1804e95e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/08/17 01:22 linux-6.6.y bb9c90ab9c5a 1804e95e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/08/16 19:15 linux-6.6.y bb9c90ab9c5a 1804e95e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/08/16 18:49 linux-6.6.y bb9c90ab9c5a 1804e95e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/08/12 12:35 linux-6.6.y 3a8ababb8b6a c06e8995 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/08/12 04:50 linux-6.6.y 3a8ababb8b6a c06e8995 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/08/11 06:21 linux-6.6.y 3a8ababb8b6a 32a0e5ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/08/11 02:55 linux-6.6.y 3a8ababb8b6a 32a0e5ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/08/11 00:56 linux-6.6.y 3a8ababb8b6a 32a0e5ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/08/10 22:46 linux-6.6.y 3a8ababb8b6a 32a0e5ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/08/10 11:20 linux-6.6.y 3a8ababb8b6a 32a0e5ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/08/10 11:12 linux-6.6.y 3a8ababb8b6a 32a0e5ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/08/10 02:17 linux-6.6.y 3a8ababb8b6a 32a0e5ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/08/09 01:35 linux-6.6.y 3a8ababb8b6a 32a0e5ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/08/08 10:45 linux-6.6.y 3a8ababb8b6a 6a893178 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/08/07 22:02 linux-6.6.y 3a8ababb8b6a 04cffc22 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/08/06 17:57 linux-6.6.y 3a8ababb8b6a ffe1dd46 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/08/06 10:55 linux-6.6.y 3a8ababb8b6a ffe1dd46 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/08/06 08:57 linux-6.6.y 3a8ababb8b6a ffe1dd46 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/08/04 13:52 linux-6.6.y 3a8ababb8b6a 7368264b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/08/03 14:44 linux-6.6.y 3a8ababb8b6a 7368264b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/08/03 12:17 linux-6.6.y 3a8ababb8b6a 7368264b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/08/03 12:17 linux-6.6.y 3a8ababb8b6a 7368264b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/08/03 11:01 linux-6.6.y 3a8ababb8b6a 7368264b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/08/03 02:19 linux-6.6.y 3a8ababb8b6a 7368264b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/08/02 20:56 linux-6.6.y 3a8ababb8b6a 7368264b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/08/02 14:43 linux-6.6.y 3a8ababb8b6a 7368264b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/08/02 12:23 linux-6.6.y 3a8ababb8b6a 7368264b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/08/01 03:47 linux-6.6.y dbcb8d8e4163 0c075d67 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/08/01 03:46 linux-6.6.y dbcb8d8e4163 0c075d67 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/07/31 02:30 linux-6.6.y dbcb8d8e4163 f8f2b4da .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/07/29 13:21 linux-6.6.y dbcb8d8e4163 c4a95487 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/07/29 01:21 linux-6.6.y dbcb8d8e4163 6654ea9c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/07/29 00:19 linux-6.6.y dbcb8d8e4163 6654ea9c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in f2fs_allocate_data_block
2025/07/29 00:14 linux-6.6.y dbcb8d8e4163 6654ea9c .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.