syz.5.413: attempt to access beyond end of device loop5: rw=1, sector=1, nr_sectors = 1 limit=0 Buffer I/O error on dev loop5, logical block 1, lost sync page write ------------[ cut here ]------------ WARNING: CPU: 1 PID: 5859 at fs/buffer.c:1081 mark_buffer_dirty+0x383/0x7a0 fs/buffer.c:1081 Modules linked in: CPU: 1 PID: 5859 Comm: syz.5.413 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/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:ffffc900049ef2f0 EFLAGS: 00010283 RAX: ffffffff81f13bd3 RBX: ffff888073c78000 RCX: 0000000000080000 RDX: ffffc9001c400000 RSI: 0000000000023085 RDI: 0000000000023086 RBP: ffff888140c90801 R08: ffff888073c78007 R09: 1ffff1100e78f000 R10: dffffc0000000000 R11: ffffed100e78f001 R12: dffffc0000000000 R13: ffff888073c40368 R14: ffffea0001536b18 R15: 000000000fffffff FS: 00007ffb182316c0(0000) GS:ffff8880b8d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000028000 CR3: 0000000025df9000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: 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:0x7ffb1739f559 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:00007ffb18231028 EFLAGS: 00000246 ORIG_RAX: 0000000000000148 RAX: ffffffffffffffda RBX: 00007ffb17625fa0 RCX: 00007ffb1739f559 RDX: 0000000000000001 RSI: 0000200000022500 RDI: 0000000000000005 RBP: 00007ffb17436b20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000e7b R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffb17626038 R14: 00007ffb17625fa0 R15: 00007ffdb9c91318