================================================================== BUG: KCSAN: data-race in mark_buffer_dirty_inode / mark_buffer_dirty_inode write to 0xffff8881255e7b50 of 8 bytes by task 28722 on cpu 0: mark_buffer_dirty_inode+0x18d/0x1c0 fs/buffer.c:682 fat16_ent_put+0x4f/0x60 fs/fat/fatent.c:184 fat_ent_write+0x66/0xe0 fs/fat/fatent.c:417 fat_chain_add+0x15f/0x400 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+0x46b/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 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 0xffff8881255e7b50 of 8 bytes by task 28723 on cpu 1: mark_buffer_dirty_inode+0x96/0x1c0 fs/buffer.c:678 fat16_ent_put+0x4f/0x60 fs/fat/fatent.c:184 fat_alloc_clusters+0x4c9/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+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 iter_file_splice_write+0x5f1/0x980 fs/splice.c:743 do_splice_from fs/splice.c:941 [inline] direct_splice_actor+0x160/0x2c0 fs/splice.c:1164 splice_direct_to_actor+0x302/0x670 fs/splice.c:1108 do_splice_direct_actor fs/splice.c:1207 [inline] do_splice_direct+0xd7/0x150 fs/splice.c:1233 do_sendfile+0x39b/0x970 fs/read_write.c:1388 __do_sys_sendfile64 fs/read_write.c:1449 [inline] __se_sys_sendfile64 fs/read_write.c:1441 [inline] __x64_sys_sendfile64+0xbd/0x150 fs/read_write.c:1441 x64_sys_call+0xed5/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:41 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 -> 0xffff888106942f08 Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 28723 Comm: syz.3.7387 Not tainted 6.12.0-rc3-syzkaller-00044-g2f87d0916ce0 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 ==================================================================