------------[ cut here ]------------ kernel BUG at fs/buffer.c:622! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 1687 Comm: syz.0.308 Not tainted 6.1.115-syzkaller-00017-g22b7ded8b55b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/25/2024 RIP: 0010:mark_buffer_dirty_inode+0x305/0x310 fs/buffer.c:622 Code: ef e8 df 1e e7 ff 48 8b 45 b8 49 89 45 00 48 89 df e8 df e3 4b 03 48 83 c4 28 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 fb ab 9f ff <0f> 0b 66 0f 1f 84 00 00 00 00 00 55 48 89 e5 41 57 41 56 41 55 41 RSP: 0018:ffffc9000c0471e8 EFLAGS: 00010246 RAX: ffffffff81d5dab5 RBX: 1ffff1102304e4d3 RCX: 0000000000080000 RDX: ffffc900016da000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffffc9000c047238 R08: ffffffff81ab4203 R09: fffff940008cbd81 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000 R13: ffff8881182725b0 R14: ffff88810f89e000 R15: ffff888118272698 FS: 00007f023d5546c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 000000013e927000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: fat_mirror_bhs+0x335/0x470 fs/fat/fatent.c:398 fat_alloc_clusters+0xd85/0x1190 fs/fat/fatent.c:543 fat_add_cluster fs/fat/inode.c:108 [inline] __fat_get_block fs/fat/inode.c:155 [inline] fat_get_block+0x4c0/0xcf0 fs/fat/inode.c:190 __block_write_begin_int+0x49c/0x1440 fs/buffer.c:2034 __block_write_begin fs/buffer.c:2084 [inline] block_write_begin fs/buffer.c:2145 [inline] cont_write_begin+0x68e/0x950 fs/buffer.c:2504 fat_write_begin+0xa1/0x170 fs/fat/inode.c:235 generic_perform_write+0x318/0x780 mm/filemap.c:3877 __generic_file_write_iter+0x174/0x3a0 mm/filemap.c:4006 generic_file_write_iter+0xb1/0x310 mm/filemap.c:4038 call_write_iter include/linux/fs.h:2274 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0xaf6/0xed0 fs/read_write.c:584 ksys_write+0x199/0x2c0 fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __x64_sys_write+0x7b/0x90 fs/read_write.c:646 x64_sys_call+0x2f/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:2 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f023c785d19 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:00007f023d554038 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f023c975fa0 RCX: 00007f023c785d19 RDX: 000000000208e24b RSI: 0000000020000240 RDI: 0000000000000006 RBP: 00007f023c801a20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f023c975fa0 R15: 00007ffc7b296c28 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:mark_buffer_dirty_inode+0x305/0x310 fs/buffer.c:622 Code: ef e8 df 1e e7 ff 48 8b 45 b8 49 89 45 00 48 89 df e8 df e3 4b 03 48 83 c4 28 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 fb ab 9f ff <0f> 0b 66 0f 1f 84 00 00 00 00 00 55 48 89 e5 41 57 41 56 41 55 41 RSP: 0018:ffffc9000c0471e8 EFLAGS: 00010246 RAX: ffffffff81d5dab5 RBX: 1ffff1102304e4d3 RCX: 0000000000080000 RDX: ffffc900016da000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffffc9000c047238 R08: ffffffff81ab4203 R09: fffff940008cbd81 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000 R13: ffff8881182725b0 R14: ffff88810f89e000 R15: ffff888118272698 FS: 00007f023d5546c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 000000013e927000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400