kernel BUG at fs/fat/inode.c:161! FAT-fs (loop4): error, corrupted file size (i_pos 195, 9000) FAT-fs (loop4): Filesystem has been set read-only FAT-fs (loop4): error, corrupted file size (i_pos 195, 9000) invalid opcode: 0000 [#1] PREEMPT SMP KASAN Modules linked in: CPU: 1 PID: 9686 Comm: syz-executor.5 Not tainted 4.14.302-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 task: ffff888040294140 task.stack: ffff888041db0000 RIP: 0010:__fat_get_block fs/fat/inode.c:161 [inline] RIP: 0010:fat_get_block+0x647/0x750 fs/fat/inode.c:176 RSP: 0018:ffff888041db77c0 EFLAGS: 00010212 RAX: 0000000000040000 RBX: ffff8880482f40a8 RCX: ffffc90005fea000 RDX: 00000000000002b7 RSI: ffffffff81d001f7 RDI: ffff888048368ae8 RBP: ffff888048368ba0 R08: ffff888041db7858 R09: 0000000000000000 R10: 0000000000000000 R11: ffff888040294140 R12: ffff8880a9344880 R13: 0000000000000000 R14: 000000000000000b R15: 0000000000000001 FS: 00007ff4a6fcd700(0000) GS:ffff8880ba500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffd2d96d9b0 CR3: 0000000092fb7000 CR4: 00000000003406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __block_write_begin_int+0x35c/0x11d0 fs/buffer.c:2038 __block_write_begin fs/buffer.c:2088 [inline] block_write_begin+0x58/0x270 fs/buffer.c:2147 cont_write_begin+0x4a3/0x740 fs/buffer.c:2497 fat_write_begin+0x89/0x170 fs/fat/inode.c:222 generic_perform_write+0x1d5/0x430 mm/filemap.c:3055 __generic_file_write_iter+0x227/0x590 mm/filemap.c:3180 generic_file_write_iter+0x36f/0x650 mm/filemap.c:3208 call_write_iter include/linux/fs.h:1780 [inline] new_sync_write fs/read_write.c:469 [inline] __vfs_write+0x44c/0x630 fs/read_write.c:482 vfs_write+0x17f/0x4d0 fs/read_write.c:544 SYSC_write fs/read_write.c:590 [inline] SyS_write+0xf2/0x210 fs/read_write.c:582 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 RIP: 0033:0x7ff4a8a5b0a9 RSP: 002b:00007ff4a6fcd168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007ff4a8b7af80 RCX: 00007ff4a8a5b0a9 RDX: 000000000000002f RSI: 00000000200000c0 RDI: 0000000000000004 RBP: 00007ff4a8ab6ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe4c658b1f R14: 00007ff4a6fcd300 R15: 0000000000022000 Code: 19 af ff e9 bd fa ff ff 48 8b 7c 24 20 e8 82 18 af ff e9 f4 fb ff ff 48 8b 7c 24 38 e8 83 17 af ff e9 52 fe ff ff e8 49 58 85 ff <0f> 0b e8 42 58 85 ff 0f 0b e8 3b 19 af ff e9 b1 fa ff ff 48 8b RIP: __fat_get_block fs/fat/inode.c:161 [inline] RSP: ffff888041db77c0 RIP: fat_get_block+0x647/0x750 fs/fat/inode.c:176 RSP: ffff888041db77c0 ---[ end trace ba55b64aa05625f7 ]---