syzbot
WARNING in fat_ent_write
Status:
upstream: reported C repro on 2026/10/23 04:05
Reported-by: syzbot+6f91393516227d281252@syzkaller.appspotmail.com
First crash: 2d06h, last: 20h16m
Sample crash report:
syz.0.17: attempt to access beyond end of device
loop0: rw=1, sector=1, nr_sectors = 1 limit=0
Buffer I/O error on dev loop0, logical block 1, lost sync page write
------------[ cut here ]------------
WARNING: CPU: 0 PID: 4468 at fs/buffer.c:1081 mark_buffer_dirty+0x383/0x7a0 fs/buffer.c:1081
Modules linked in:
CPU: 0 PID: 4468 Comm: syz.0.17 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026
RIP: 0010:mark_buffer_dirty+0x383/0x7a0 fs/buffer.c:1081
Code: c3 66 e2 ff 49 8b 3f be 04 00 00 00 5b 41 5c 41 5d 41 5e 41 5f 5d e9 ac a8 fc ff e8 b7 0a 91 ff e9 43 ff ff ff e8 ad 0a 91 ff <0f> 0b e9 ba fc ff ff e8 a1 0a 91 ff 0f 0b e9 00 fd ff ff e8 95 0a
RSP: 0018:ffffc900034b72f0 EFLAGS: 00010293
RAX: ffffffff81f13bd3 RBX: ffff88805e9989f8 RCX: ffff88807a151e00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000002
RBP: ffff888140c9bf01 R08: ffff88805e9989ff R09: 1ffff1100bd3313f
R10: dffffc0000000000 R11: ffffed100bd33140 R12: dffffc0000000000
R13: ffff88805cc10368 R14: ffffea0001af5458 R15: 000000000fffffff
FS: 00007f42bbf5a6c0(0000) GS:ffff8880b8c00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f42bbf18d58 CR3: 000000002430f000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
mark_buffer_dirty_inode+0x82/0x2c0 fs/buffer.c:575
fat_ent_write+0xae/0x180 fs/fat/fatent.c:417
fat_chain_add+0x3e5/0x880 fs/fat/misc.c:140
fat_add_cluster fs/fat/inode.c:113 [inline]
__fat_get_block fs/fat/inode.c:155 [inline]
fat_get_block+0x761/0xae0 fs/fat/inode.c:190
__block_write_begin_int+0x577/0x1ab0 fs/buffer.c:1991
__block_write_begin fs/buffer.c:2041 [inline]
block_write_begin+0x96/0x1e0 fs/buffer.c:2102
cont_write_begin+0x5f9/0x800 fs/buffer.c:2456
fat_write_begin+0x93/0x160 fs/fat/inode.c:235
generic_perform_write+0x2fa/0x5c0 mm/filemap.c:3862
__generic_file_write_iter+0x148/0x2a0 mm/filemap.c:3960
generic_file_write_iter+0xab/0x2e0 mm/filemap.c:3989
do_iter_readv_writev fs/read_write.c:-1 [inline]
do_iter_write+0x638/0xb10 fs/read_write.c:861
vfs_writev fs/read_write.c:934 [inline]
do_pwritev+0x23e/0x3a0 fs/read_write.c:1031
do_syscall_x64 arch/x86/entry/common.c:46 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f42baf9f559
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f42bbf5a028 EFLAGS: 00000246 ORIG_RAX: 0000000000000148
RAX: ffffffffffffffda RBX: 00007f42bb225fa0 RCX: 00007f42baf9f559
RDX: 0000000000000001 RSI: 0000200000022500 RDI: 0000000000000005
RBP: 00007f42bb036b20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000e7b R11: 0000000000000246 R12: 0000000000000000
R13: 00007f42bb226038 R14: 00007f42bb225fa0 R15: 00007ffea98699e8
</TASK>
* Struck through repros no longer work on HEAD.