================================================================== BUG: KCSAN: data-race in mark_buffer_dirty_inode / sync_mapping_buffers write to 0xffff888119e37ef8 of 8 bytes by task 18653 on cpu 1: __remove_assoc_queue fs/buffer.c:523 [inline] fsync_buffers_list fs/buffer.c:796 [inline] sync_mapping_buffers+0x163/0x7d0 fs/buffer.c:584 fat_file_fsync+0xaa/0x100 fs/fat/file.c:195 vfs_fsync_range+0x10d/0x130 fs/sync.c:187 generic_write_sync include/linux/fs.h:3042 [inline] generic_file_write_iter+0x1b8/0x2f0 mm/filemap.c:4322 do_iter_readv_writev+0x499/0x540 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+0x2c55/0x2ff0 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 read to 0xffff888119e37ef8 of 8 bytes by task 18645 on cpu 0: mark_buffer_dirty_inode+0x95/0x1c0 fs/buffer.c:689 fat_mirror_bhs+0x234/0x320 fs/fat/fatent.c:398 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+0x3fd/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+0x1ad/0x970 fs/buffer.c:2584 fat_write_begin+0x4f/0xe0 fs/fat/inode.c:229 generic_cont_expand_simple+0xb0/0x150 fs/buffer.c:2485 fat_cont_expand+0x3e/0x170 fs/fat/file.c:223 fat_setattr+0x2a5/0x8a0 fs/fat/file.c:513 notify_change+0x809/0x890 fs/attr.c:552 do_truncate fs/open.c:68 [inline] do_ftruncate+0x34b/0x450 fs/open.c:195 do_sys_ftruncate fs/open.c:210 [inline] __do_sys_ftruncate fs/open.c:215 [inline] __se_sys_ftruncate fs/open.c:213 [inline] __x64_sys_ftruncate+0x68/0xc0 fs/open.c:213 x64_sys_call+0x2d52/0x2ff0 arch/x86/include/generated/asm/syscalls_64.h:78 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 value changed: 0xffff888119d5d708 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 18645 Comm: syz.7.5167 Not tainted syzkaller #0 PREEMPT(voluntary) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 ==================================================================