================================================================== BUG: KCSAN: data-race in __delete_from_page_cache / ext4_writepages write to 0xffff888104a11440 of 8 bytes by task 3303 on cpu 1: page_cache_delete mm/filemap.c:146 [inline] __delete_from_page_cache+0x1e1/0x2c0 mm/filemap.c:231 invalidate_complete_page2 mm/truncate.c:575 [inline] invalidate_inode_pages2_range+0x580/0x790 mm/truncate.c:662 __iomap_dio_rw+0x5d2/0x1070 fs/iomap/direct-io.c:570 iomap_dio_rw+0x38/0x80 fs/iomap/direct-io.c:679 ext4_dio_write_iter fs/ext4/file.c:568 [inline] ext4_file_write_iter+0xa72/0x1200 fs/ext4/file.c:679 call_write_iter include/linux/fs.h:2162 [inline] do_iter_readv_writev+0x2de/0x380 fs/read_write.c:725 do_iter_write+0x192/0x5c0 fs/read_write.c:851 vfs_iter_write+0x4c/0x70 fs/read_write.c:892 iter_file_splice_write+0x43a/0x790 fs/splice.c:689 do_splice_from fs/splice.c:767 [inline] direct_splice_actor+0x80/0xa0 fs/splice.c:936 splice_direct_to_actor+0x345/0x650 fs/splice.c:891 do_splice_direct+0x106/0x190 fs/splice.c:979 do_sendfile+0x675/0xc40 fs/read_write.c:1245 __do_sys_sendfile64 fs/read_write.c:1310 [inline] __se_sys_sendfile64 fs/read_write.c:1296 [inline] __x64_sys_sendfile64+0x102/0x140 fs/read_write.c:1296 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffff888104a11440 of 8 bytes by task 8 on cpu 0: ext4_writepages+0x16d/0x1e80 fs/ext4/inode.c:2666 do_writepages+0x1cb/0x330 mm/page-writeback.c:2364 __writeback_single_inode+0x80/0x4d0 fs/fs-writeback.c:1616 writeback_sb_inodes+0x677/0xdf0 fs/fs-writeback.c:1881 __writeback_inodes_wb+0xb0/0x2b0 fs/fs-writeback.c:1951 wb_writeback+0x280/0x650 fs/fs-writeback.c:2056 wb_check_start_all fs/fs-writeback.c:2178 [inline] wb_do_writeback+0x378/0x560 fs/fs-writeback.c:2204 wb_workfn+0xc8/0x440 fs/fs-writeback.c:2238 process_one_work+0x3fc/0x980 kernel/workqueue.c:2298 worker_thread+0x616/0xa70 kernel/workqueue.c:2445 kthread+0x2c7/0x2e0 kernel/kthread.c:327 ret_from_fork+0x1f/0x30 value changed: 0x0000000000000001 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 8 Comm: kworker/u4:0 Not tainted 5.15.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: writeback wb_workfn (flush-8:0) ==================================================================