================================================================== BUG: KCSAN: data-race in __mpage_writepage / generic_write_end write to 0xffff88813fc51620 of 8 bytes by task 18602 on cpu 0: i_size_write include/linux/fs.h:932 [inline] generic_write_end+0x94/0x230 fs/buffer.c:2275 fat_write_end+0x4e/0x160 fs/fat/inode.c:244 cont_expand_zero fs/buffer.c:2497 [inline] cont_write_begin+0x2c0/0x690 fs/buffer.c:2555 fat_write_begin+0x61/0xf0 fs/fat/inode.c:230 generic_cont_expand_simple+0xa7/0x140 fs/buffer.c:2456 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:52 [inline] do_syscall_64+0x59/0x120 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b read to 0xffff88813fc51620 of 8 bytes by task 18620 on cpu 1: i_size_read include/linux/fs.h:910 [inline] __mpage_writepage+0xa6/0xdc0 fs/mpage.c:478 write_cache_pages+0x38d/0x740 mm/page-writeback.c:2474 mpage_writepages+0x72/0xe0 fs/mpage.c:672 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:388 __filemap_fdatawrite_range mm/filemap.c:421 [inline] file_write_and_wait_range+0xf4/0x190 mm/filemap.c:779 __generic_file_fsync+0x4c/0x140 fs/libfs.c:1438 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:52 [inline] do_syscall_64+0x59/0x120 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b value changed: 0x0000000000357000 -> 0x0000000000358000 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 18620 Comm: syz-executor.0 Not tainted 6.7.0-syzkaller-09928-g052d534373b7 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 ==================================================================