loop0: detected capacity change from 0 to 8192 ================================================================== BUG: KCSAN: data-race in fat16_ent_put / fat_mirror_bhs write to 0xffff888196ca6f0c of 2 bytes by task 28461 on cpu 1: fat16_ent_put+0x28/0x60 fs/fat/fatent.c:183 fat_alloc_clusters+0x4ce/0xa80 fs/fat/fatent.c:503 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+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_perform_write+0x184/0x490 mm/filemap.c:4103 __generic_file_write_iter+0x9e/0x120 mm/filemap.c:4220 generic_file_write_iter+0x8d/0x2f0 mm/filemap.c:4246 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x4a0/0x8e0 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+0xe45/0x2fb0 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 read to 0xffff888196ca6e00 of 512 bytes by task 28452 on cpu 0: 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_perform_write+0x184/0x490 mm/filemap.c:4103 __generic_file_write_iter+0x9e/0x120 mm/filemap.c:4220 generic_file_write_iter+0x8d/0x2f0 mm/filemap.c:4246 do_iter_readv_writev+0x3ee/0x4b0 fs/read_write.c:-1 vfs_writev+0x2df/0x8b0 fs/read_write.c:1057 do_pwritev fs/read_write.c:1153 [inline] __do_sys_pwritev2 fs/read_write.c:1211 [inline] __se_sys_pwritev2+0xfc/0x1c0 fs/read_write.c:1202 __x64_sys_pwritev2+0x67/0x80 fs/read_write.c:1202 x64_sys_call+0x1cea/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:329 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: 28452 Comm: syz.0.8320 Tainted: G W 6.15.0-syzkaller-10815-gbb1556ec9464 #0 PREEMPT(voluntary) Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 ==================================================================