------------[ cut here ]------------ kernel BUG at fs/buffer.c:622! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 24646 Comm: syz.0.6320 Not tainted 6.1.115-syzkaller-00011-g904ebc320c2c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/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 0f d7 4b 03 48 83 c4 28 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 2b af 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:ffffc9000258f300 EFLAGS: 00010246 RAX: ffffffff81d5d785 RBX: 1ffff1102720464d RCX: 0000000000080000 RDX: ffffc9001464a000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffffc9000258f350 R08: ffffffff81ab3ed3 R09: fffff940009db6d9 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000 R13: ffff888139023180 R14: ffff888119ecde70 R15: ffff888139023268 FS: 00007f399f1516c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020391000 CR3: 00000001229e8000 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_ent_write+0x12c/0x170 fs/fat/fatent.c:423 fat_chain_add+0x24d/0xa30 fs/fat/misc.c:136 fat_add_cluster fs/fat/inode.c:113 [inline] __fat_get_block fs/fat/inode.c:155 [inline] fat_get_block+0x8b2/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+0x2f9/0x5c0 mm/filemap.c:3877 __generic_file_write_iter+0x174/0x3a0 mm/filemap.c:4005 generic_file_write_iter+0xb1/0x310 mm/filemap.c:4037 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:0x7f399e37ff19 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:00007f399f151058 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f399e546080 RCX: 00007f399e37ff19 RDX: 00000000ffffff6a RSI: 0000000020000000 RDI: 0000000000000009 RBP: 00007f399e3f3cc8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f399e546080 R15: 00007fffb0e66ae8 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 0f d7 4b 03 48 83 c4 28 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 2b af 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:ffffc9000258f300 EFLAGS: 00010246 RAX: ffffffff81d5d785 RBX: 1ffff1102720464d RCX: 0000000000080000 RDX: ffffc9001464a000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffffc9000258f350 R08: ffffffff81ab3ed3 R09: fffff940009db6d9 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000 R13: ffff888139023180 R14: ffff888119ecde70 R15: ffff888139023268 FS: 00007f399f1516c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb383b7cfb8 CR3: 00000001229e8000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400