================================================================== BUG: KCSAN: data-race in fat12_ent_put / fat_mirror_bhs read-write to 0xffff888139fc95c4 of 1 bytes by task 10107 on cpu 0: fat12_ent_put+0xc4/0x170 fs/fat/fatent.c:165 fat_alloc_clusters+0x4d1/0xa80 fs/fat/fatent.c:503 fat_alloc_new_dir+0xbb/0x530 fs/fat/dir.c:1156 vfat_mkdir+0x9b/0x1f0 fs/fat/namei_vfat.c:856 vfs_mkdir+0x213/0x340 fs/namei.c:4366 do_mkdirat+0x132/0x3f0 fs/namei.c:4399 __do_sys_mkdir fs/namei.c:4421 [inline] __se_sys_mkdir fs/namei.c:4419 [inline] __x64_sys_mkdir+0x42/0x50 fs/namei.c:4419 x64_sys_call+0x2289/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:84 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 0xffff888139fc9400 of 512 bytes by task 10097 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+0x3fd/0xf90 fs/buffer.c:2151 block_write_begin fs/buffer.c:2262 [inline] cont_write_begin+0x5fc/0x970 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+0x1ad/0x970 fs/buffer.c:2591 fat_write_begin+0x4f/0xe0 fs/fat/inode.c:228 generic_cont_expand_simple+0xb0/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+0x413/0x450 fs/open.c:341 ksys_fallocate fs/open.c:365 [inline] __do_sys_fallocate fs/open.c:370 [inline] __se_sys_fallocate fs/open.c:368 [inline] __x64_sys_fallocate+0x7a/0xd0 fs/open.c:368 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+0xd2/0x200 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: 10097 Comm: syz.7.1689 Not tainted 6.15.0-syzkaller-13659-g5b032cac6225 #0 PREEMPT(voluntary) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 ================================================================== FAT-fs (loop7): error, corrupted directory (invalid entries) FAT-fs (loop7): Filesystem has been set read-only