================================================================== BUG: KCSAN: data-race in __mpage_writepage / generic_write_end write to 0xffff888108f6d620 of 8 bytes by task 17904 on cpu 0: i_size_write include/linux/fs.h:932 [inline] generic_write_end+0x94/0x230 fs/buffer.c:2291 fat_write_end+0x4e/0x160 fs/fat/inode.c:244 cont_expand_zero fs/buffer.c:2514 [inline] cont_write_begin+0x2c0/0x690 fs/buffer.c:2572 fat_write_begin+0x61/0xf0 fs/fat/inode.c:230 generic_cont_expand_simple+0xa7/0x140 fs/buffer.c:2473 fat_cont_expand+0x3a/0x160 fs/fat/file.c:223 fat_setattr+0x2a9/0x840 fs/fat/file.c:513 notify_change+0x866/0x8e0 fs/attr.c:499 do_truncate+0x116/0x150 fs/open.c:66 do_sys_ftruncate+0x2ba/0x3b0 fs/open.c:194 __do_sys_ftruncate fs/open.c:205 [inline] __se_sys_ftruncate fs/open.c:203 [inline] __x64_sys_ftruncate+0x33/0x40 fs/open.c:203 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x44/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b read to 0xffff888108f6d620 of 8 bytes by task 17930 on cpu 1: i_size_read include/linux/fs.h:910 [inline] __mpage_writepage+0xc0/0xd90 fs/mpage.c:488 write_cache_pages+0x38d/0x740 mm/page-writeback.c:2474 mpage_writepages+0x72/0xe0 fs/mpage.c:678 fat_writepages+0x24/0x30 fs/fat/inode.c:200 do_writepages+0x1c2/0x340 mm/page-writeback.c:2553 filemap_fdatawrite_wbc+0xdb/0xf0 mm/filemap.c:387 __filemap_fdatawrite_range mm/filemap.c:420 [inline] file_write_and_wait_range+0xf4/0x190 mm/filemap.c:778 __generic_file_fsync+0x4c/0x140 fs/libfs.c:1440 fat_file_fsync+0x4c/0x100 fs/fat/file.c:191 vfs_fsync_range fs/sync.c:188 [inline] vfs_fsync fs/sync.c:202 [inline] do_fsync fs/sync.c:212 [inline] __do_sys_fdatasync fs/sync.c:225 [inline] __se_sys_fdatasync fs/sync.c:223 [inline] __x64_sys_fdatasync+0x84/0xd0 fs/sync.c:223 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x44/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b value changed: 0x00000000006d1000 -> 0x00000000006d2000 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 17930 Comm: syz-executor.1 Not tainted 6.6.0-syzkaller-15494-g6bc986ab839c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 ==================================================================