================================================================== BUG: KCSAN: data-race in __add_to_page_cache_locked / file_write_and_wait_range write to 0xffff8880b91bf840 of 8 bytes by task 22800 on cpu 1: __add_to_page_cache_locked+0x28a/0x770 mm/filemap.c:868 add_to_page_cache_lru+0xc7/0x260 mm/filemap.c:921 pagecache_get_page+0x2b0/0x700 mm/filemap.c:1656 grab_cache_page_write_begin+0x56/0x80 mm/filemap.c:3252 ext4_da_write_begin+0x1b4/0x860 fs/ext4/inode.c:2964 generic_perform_write+0x13a/0x320 mm/filemap.c:3302 ext4_buffered_write_iter+0x14e/0x280 fs/ext4/file.c:270 ext4_file_write_iter+0xf4/0xd30 fs/ext4/file.c:642 call_write_iter include/linux/fs.h:1907 [inline] new_sync_write+0x303/0x400 fs/read_write.c:484 __vfs_write+0x9e/0xb0 fs/read_write.c:497 vfs_write fs/read_write.c:559 [inline] vfs_write+0x189/0x380 fs/read_write.c:543 ksys_write+0xc5/0x1a0 fs/read_write.c:612 __do_sys_write fs/read_write.c:624 [inline] __se_sys_write fs/read_write.c:621 [inline] __x64_sys_write+0x49/0x60 fs/read_write.c:621 do_syscall_64+0xc7/0x3b0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x44/0xa9 read to 0xffff8880b91bf840 of 8 bytes by task 22796 on cpu 0: mapping_needs_writeback mm/filemap.c:632 [inline] file_write_and_wait_range+0x7c/0x160 mm/filemap.c:759 ext4_sync_file+0x26e/0x8b0 fs/ext4/fsync.c:153 vfs_fsync_range+0x7c/0x150 fs/sync.c:197 vfs_fsync fs/sync.c:211 [inline] do_fsync+0x57/0x90 fs/sync.c:221 __do_sys_fdatasync fs/sync.c:234 [inline] __se_sys_fdatasync fs/sync.c:232 [inline] __x64_sys_fdatasync+0x2a/0x40 fs/sync.c:232 do_syscall_64+0xc7/0x3b0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 22796 Comm: syz-executor.4 Not tainted 5.7.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================