================================================================== BUG: KCSAN: data-race in __add_to_page_cache_locked / ext4_writepages write to 0xffff888106f78970 of 8 bytes by task 14073 on cpu 0: __add_to_page_cache_locked+0x256/0x4b0 mm/filemap.c:914 add_to_page_cache_lru+0xa0/0x1b0 mm/filemap.c:967 pagecache_get_page+0x6a3/0x900 mm/filemap.c:1896 grab_cache_page_write_begin+0x3f/0x70 mm/filemap.c:3610 ext4_da_write_begin+0x305/0x820 fs/ext4/inode.c:2984 generic_perform_write+0x196/0x3c0 mm/filemap.c:3656 ext4_buffered_write_iter+0x2f2/0x3f0 fs/ext4/file.c:269 ext4_file_write_iter+0x2e7/0x11d0 fs/ext4/file.c:519 call_write_iter include/linux/fs.h:2114 [inline] new_sync_write fs/read_write.c:518 [inline] vfs_write+0x69d/0x770 fs/read_write.c:605 ksys_write+0xce/0x180 fs/read_write.c:658 __do_sys_write fs/read_write.c:670 [inline] __se_sys_write fs/read_write.c:667 [inline] __x64_sys_write+0x3e/0x50 fs/read_write.c:667 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0x90 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffff888106f78970 of 8 bytes by task 14066 on cpu 1: ext4_writepages+0x111/0x1d10 fs/ext4/inode.c:2668 do_writepages+0x7b/0x150 mm/page-writeback.c:2355 __filemap_fdatawrite_range mm/filemap.c:413 [inline] __filemap_fdatawrite mm/filemap.c:421 [inline] filemap_flush+0x132/0x160 mm/filemap.c:448 ext4_alloc_da_blocks+0x47/0xd0 fs/ext4/inode.c:3164 ext4_release_file+0x5b/0x1d0 fs/ext4/file.c:141 __fput+0x25b/0x4e0 fs/file_table.c:280 ____fput+0x11/0x20 fs/file_table.c:313 task_work_run+0xae/0x130 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:175 [inline] exit_to_user_mode_prepare+0x156/0x190 kernel/entry/common.c:209 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline] syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:302 do_syscall_64+0x49/0x90 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae value changed: 0x0000000000000004 -> 0x0000000000000008 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 14066 Comm: syz-executor.3 Not tainted 5.14.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================