================================================================== BUG: KCSAN: data-race in mark_buffer_dirty_inode / mark_buffer_dirty_inode write to 0xffff88810646b538 of 8 bytes by task 25511 on cpu 0: 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_write+0xeb/0x1b0 fs/read_write.c:736 __do_sys_write fs/read_write.c:748 [inline] __se_sys_write fs/read_write.c:745 [inline] __x64_sys_write+0x42/0x50 fs/read_write.c:745 x64_sys_call+0x27dd/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:2 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 0xffff88810646b538 of 8 bytes by task 25520 on cpu 1: 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_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 do_iter_readv_writev+0x394/0x450 vfs_writev+0x2d4/0x880 fs/read_write.c:1064 do_pwritev fs/read_write.c:1165 [inline] __do_sys_pwritev2 fs/read_write.c:1224 [inline] __se_sys_pwritev2+0x10c/0x1d0 fs/read_write.c:1215 __x64_sys_pwritev2+0x78/0x90 fs/read_write.c:1215 x64_sys_call+0x271f/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:329 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 -> 0xffff88810652bb08 Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 25520 Comm: syz.0.4596 Not tainted 6.12.0-rc2-syzkaller-00305-g7234e2ea0edd #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 ==================================================================