================================================================== BUG: KCSAN: data-race in fat16_ent_put / fat_mirror_bhs write to 0xffff888122c81a24 of 2 bytes by task 8053 on cpu 0: fat16_ent_put+0x28/0x60 fs/fat/fatent.c:183 fat_ent_write+0x69/0xe0 fs/fat/fatent.c:417 fat_chain_add+0x15b/0x3f0 fs/fat/misc.c:136 fat_add_cluster fs/fat/inode.c:112 [inline] __fat_get_block fs/fat/inode.c:154 [inline] fat_get_block+0x46c/0x5e0 fs/fat/inode.c:189 __block_write_begin_int+0x419/0xf70 fs/buffer.c:2151 block_write_begin fs/buffer.c:2262 [inline] cont_write_begin+0x5a3/0x8e0 fs/buffer.c:2601 fat_write_begin+0x4f/0xe0 fs/fat/inode.c:228 generic_perform_write+0x181/0x490 mm/filemap.c:4103 __generic_file_write_iter+0xec/0x120 mm/filemap.c:4217 generic_file_write_iter+0x8d/0x2f0 mm/filemap.c:4246 do_iter_readv_writev+0x41e/0x4c0 fs/read_write.c:-1 vfs_writev+0x2c9/0x870 fs/read_write.c:1055 do_writev+0xe7/0x210 fs/read_write.c:1101 __do_sys_writev fs/read_write.c:1169 [inline] __se_sys_writev fs/read_write.c:1166 [inline] __x64_sys_writev+0x45/0x50 fs/read_write.c:1166 x64_sys_call+0x2006/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:21 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd0/0x1a0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffff888122c81a00 of 512 bytes by task 8037 on cpu 1: fat_mirror_bhs+0x1df/0x320 fs/fat/fatent.c:395 fat_ent_write+0xd0/0xe0 fs/fat/fatent.c:423 fat_chain_add+0x15b/0x3f0 fs/fat/misc.c:136 fat_add_cluster fs/fat/inode.c:112 [inline] __fat_get_block fs/fat/inode.c:154 [inline] fat_get_block+0x46c/0x5e0 fs/fat/inode.c:189 __block_write_begin_int+0x419/0xf70 fs/buffer.c:2151 block_write_begin fs/buffer.c:2262 [inline] cont_write_begin+0x5a3/0x8e0 fs/buffer.c:2601 fat_write_begin+0x4f/0xe0 fs/fat/inode.c:228 cont_expand_zero fs/buffer.c:2528 [inline] cont_write_begin+0x198/0x8e0 fs/buffer.c:2591 fat_write_begin+0x4f/0xe0 fs/fat/inode.c:228 generic_cont_expand_simple+0xad/0x150 fs/buffer.c:2492 fat_cont_expand+0x3e/0x170 fs/fat/file.c:223 fat_fallocate+0x177/0x1c0 fs/fat/file.c:301 vfs_fallocate+0x410/0x450 fs/open.c:338 ksys_fallocate fs/open.c:362 [inline] __do_sys_fallocate fs/open.c:367 [inline] __se_sys_fallocate fs/open.c:365 [inline] __x64_sys_fallocate+0x7a/0xd0 fs/open.c:365 x64_sys_call+0x2b88/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:286 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd0/0x1a0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 8037 Comm: syz.5.1826 Not tainted 6.15.0-rc5-syzkaller-00275-gbec6f00f120e #0 PREEMPT(voluntary) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025 ==================================================================