================================================================== BUG: KCSAN: data-race in __add_to_page_cache_locked / filemap_write_and_wait_range read to 0xffff888125eddb10 of 8 bytes by task 13197 on cpu 0: mapping_needs_writeback mm/filemap.c:631 [inline] filemap_write_and_wait_range+0x6f/0x150 mm/filemap.c:679 ext4_direct_IO_read fs/ext4/inode.c:3831 [inline] ext4_direct_IO+0x2d4/0xf70 fs/ext4/inode.c:3869 generic_file_read_iter+0x1b0/0x1440 mm/filemap.c:2302 ext4_file_read_iter fs/ext4/file.c:77 [inline] ext4_file_read_iter+0xfa/0x240 fs/ext4/file.c:65 call_read_iter include/linux/fs.h:1889 [inline] generic_file_splice_read+0x35c/0x500 fs/splice.c:307 do_splice_to+0xf2/0x130 fs/splice.c:877 splice_direct_to_actor+0x1a1/0x510 fs/splice.c:954 do_splice_direct+0x161/0x1e0 fs/splice.c:1063 do_sendfile+0x384/0x7f0 fs/read_write.c:1464 __do_sys_sendfile64 fs/read_write.c:1525 [inline] __se_sys_sendfile64 fs/read_write.c:1511 [inline] __x64_sys_sendfile64+0x12a/0x140 fs/read_write.c:1511 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 write to 0xffff888125eddb10 of 8 bytes by task 13191 on cpu 1: __add_to_page_cache_locked+0x298/0x780 mm/filemap.c:889 add_to_page_cache_lru+0xe2/0x2d0 mm/filemap.c:942 ext4_mpage_readpages+0x3ab/0x12c0 fs/ext4/readpage.c:247 ext4_readpages+0x92/0xc0 fs/ext4/inode.c:3342 read_pages+0xa2/0x2d0 mm/readahead.c:126 __do_page_cache_readahead+0x353/0x390 mm/readahead.c:212 ra_submit mm/internal.h:62 [inline] ondemand_readahead+0x35d/0x710 mm/readahead.c:492 page_cache_sync_readahead+0x1ad/0x1e0 mm/readahead.c:527 generic_file_buffered_read mm/filemap.c:2050 [inline] generic_file_read_iter+0xeb6/0x1440 mm/filemap.c:2323 ext4_file_read_iter fs/ext4/file.c:77 [inline] ext4_file_read_iter+0xfa/0x240 fs/ext4/file.c:65 call_read_iter include/linux/fs.h:1889 [inline] generic_file_splice_read+0x35c/0x500 fs/splice.c:307 do_splice_to+0xf2/0x130 fs/splice.c:877 splice_direct_to_actor+0x1a1/0x510 fs/splice.c:954 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 13191 Comm: syz-executor.5 Not tainted 5.4.0-rc3+ #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================