================================================================== BUG: KCSAN: data-race in mark_buffer_dirty_inode / mark_buffer_dirty_inode write to 0xffff8881068fd6d8 of 8 bytes by task 11073 on cpu 1: mark_buffer_dirty_inode+0x18d/0x1c0 fs/buffer.c:682 fat_mirror_bhs+0x241/0x330 fs/fat/fatent.c:398 fat_alloc_clusters+0x994/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+0x25c/0x5e0 fs/fat/inode.c:189 __block_write_begin_int+0x417/0xfa0 fs/buffer.c:2121 block_write_begin fs/buffer.c:2231 [inline] cont_write_begin+0x546/0x860 fs/buffer.c:2582 fat_write_begin+0x51/0xe0 fs/fat/inode.c:228 generic_perform_write+0x1a8/0x4a0 mm/filemap.c:4054 __generic_file_write_iter+0xa1/0x120 mm/filemap.c:4155 generic_file_write_iter+0x77/0x1c0 mm/filemap.c:4181 new_sync_write fs/read_write.c:590 [inline] vfs_write+0x76a/0x910 fs/read_write.c:683 ksys_pwrite64 fs/read_write.c:798 [inline] __do_sys_pwrite64 fs/read_write.c:808 [inline] __se_sys_pwrite64 fs/read_write.c:805 [inline] __x64_sys_pwrite64+0xf7/0x150 fs/read_write.c:805 x64_sys_call+0x9d5/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:19 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffff8881068fd6d8 of 8 bytes by task 11074 on cpu 0: mark_buffer_dirty_inode+0x96/0x1c0 fs/buffer.c:678 fat_mirror_bhs+0x241/0x330 fs/fat/fatent.c:398 fat_alloc_clusters+0x994/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+0x25c/0x5e0 fs/fat/inode.c:189 __block_write_begin_int+0x417/0xfa0 fs/buffer.c:2121 block_write_begin fs/buffer.c:2231 [inline] cont_write_begin+0x546/0x860 fs/buffer.c:2582 fat_write_begin+0x51/0xe0 fs/fat/inode.c:228 cont_expand_zero fs/buffer.c:2509 [inline] cont_write_begin+0x18b/0x860 fs/buffer.c:2572 fat_write_begin+0x51/0xe0 fs/fat/inode.c:228 generic_cont_expand_simple+0xaa/0x150 fs/buffer.c:2473 fat_cont_expand+0x3a/0x160 fs/fat/file.c:223 fat_fallocate+0x17c/0x1d0 fs/fat/file.c:301 vfs_fallocate+0x368/0x3b0 fs/open.c:333 ksys_fallocate fs/open.c:356 [inline] __do_sys_fallocate fs/open.c:364 [inline] __se_sys_fallocate fs/open.c:362 [inline] __x64_sys_fallocate+0x79/0xc0 fs/open.c:362 x64_sys_call+0x2783/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:286 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0x0000000000000000 -> 0xffff88810685be08 Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 11074 Comm: syz.3.2570 Not tainted 6.12.0-rc2-syzkaller-00205-g1d227fcc7222 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 ==================================================================