================================================================== BUG: KCSAN: data-race in fat16_ent_put / fat_mirror_bhs write to 0xffff88812d20c342 of 2 bytes by task 7369 on cpu 1: fat16_ent_put+0x28/0x60 fs/fat/fatent.c:183 fat_free_clusters+0x2a9/0x790 fs/fat/fatent.c:597 fat_free fs/fat/file.c:376 [inline] fat_truncate_blocks+0x4c2/0x550 fs/fat/file.c:394 fat_write_failed fs/fat/inode.c:218 [inline] fat_write_end+0xba/0x160 fs/fat/inode.c:246 generic_perform_write+0x312/0x490 mm/filemap.c:4196 __generic_file_write_iter+0x9e/0x120 mm/filemap.c:4292 generic_file_write_iter+0x8d/0x2f0 mm/filemap.c:4318 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x52a/0x960 fs/read_write.c:686 ksys_write+0xda/0x1a0 fs/read_write.c:738 __do_sys_write fs/read_write.c:749 [inline] __se_sys_write fs/read_write.c:746 [inline] __x64_sys_write+0x40/0x50 fs/read_write.c:746 x64_sys_call+0x27fe/0x2ff0 arch/x86/include/generated/asm/syscalls_64.h:2 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffff88812d20c200 of 512 bytes by task 7373 on cpu 0: fat_mirror_bhs+0x1df/0x320 fs/fat/fatent.c:395 fat_alloc_clusters+0x98b/0xa80 fs/fat/fatent.c:543 fat_add_cluster fs/fat/inode.c:107 [inline] __fat_get_block fs/fat/inode.c:154 [inline] fat_get_block+0x258/0x5e0 fs/fat/inode.c:189 __block_write_begin_int+0x400/0xf90 fs/buffer.c:2145 block_write_begin fs/buffer.c:2256 [inline] cont_write_begin+0x5fc/0x970 fs/buffer.c:2594 fat_write_begin+0x4f/0xe0 fs/fat/inode.c:229 cont_expand_zero fs/buffer.c:2522 [inline] cont_write_begin+0x1b0/0x970 fs/buffer.c:2584 fat_write_begin+0x4f/0xe0 fs/fat/inode.c:229 generic_perform_write+0x184/0x490 mm/filemap.c:4175 __generic_file_write_iter+0x9e/0x120 mm/filemap.c:4292 generic_file_write_iter+0x8d/0x2f0 mm/filemap.c:4318 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x52a/0x960 fs/read_write.c:686 ksys_pwrite64 fs/read_write.c:793 [inline] __do_sys_pwrite64 fs/read_write.c:801 [inline] __se_sys_pwrite64 fs/read_write.c:798 [inline] __x64_sys_pwrite64+0xfd/0x150 fs/read_write.c:798 x64_sys_call+0xc4d/0x2ff0 arch/x86/include/generated/asm/syscalls_64.h:19 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 7373 Comm: syz.0.10076 Not tainted 6.17.0-rc2-syzkaller #0 PREEMPT(voluntary) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 ==================================================================