loop7: detected capacity change from 0 to 1036 ================================================================== BUG: KCSAN: data-race in __add_to_page_cache_locked / file_write_and_wait_range write to 0xffff8881010b2ca8 of 8 bytes by task 3218 on cpu 0: __add_to_page_cache_locked+0x276/0x4f0 mm/filemap.c:931 add_to_page_cache_lru+0xa0/0x1b0 mm/filemap.c:984 page_cache_ra_unbounded+0x274/0x430 mm/readahead.c:222 ondemand_readahead+0x58c/0x7c0 page_cache_async_ra+0x17e/0x1a0 mm/readahead.c:609 page_cache_async_readahead include/linux/pagemap.h:906 [inline] filemap_readahead mm/filemap.c:2520 [inline] filemap_get_pages mm/filemap.c:2561 [inline] filemap_read+0x4c0/0x1220 mm/filemap.c:2628 generic_file_read_iter+0x75/0x2c0 mm/filemap.c:2779 blkdev_read_iter+0xb9/0xf0 block/fops.c:545 call_read_iter include/linux/fs.h:2157 [inline] new_sync_read fs/read_write.c:404 [inline] vfs_read+0x66c/0x750 fs/read_write.c:485 ksys_read+0xd9/0x190 fs/read_write.c:623 __do_sys_read fs/read_write.c:633 [inline] __se_sys_read fs/read_write.c:631 [inline] __x64_sys_read+0x3e/0x50 fs/read_write.c:631 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 0xffff8881010b2ca8 of 8 bytes by task 27593 on cpu 1: mapping_needs_writeback mm/filemap.c:639 [inline] file_write_and_wait_range+0x4b/0x240 mm/filemap.c:809 blkdev_fsync+0x4a/0xa0 block/fops.c:412 vfs_fsync_range+0x107/0x120 fs/sync.c:200 generic_write_sync include/linux/fs.h:2955 [inline] blkdev_write_iter+0x272/0x2c0 block/fops.c:521 call_write_iter include/linux/fs.h:2163 [inline] do_iter_readv_writev+0x2de/0x380 fs/read_write.c:729 do_iter_write+0x192/0x5c0 fs/read_write.c:855 vfs_iter_write+0x4c/0x70 fs/read_write.c:896 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+0x63e/0xbb0 fs/read_write.c:1249 __do_sys_sendfile64 fs/read_write.c:1314 [inline] __se_sys_sendfile64 fs/read_write.c:1300 [inline] __x64_sys_sendfile64+0x102/0x140 fs/read_write.c:1300 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 value changed: 0x000000000000006c -> 0x0000000000000074 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 27593 Comm: syz-executor.4 Not tainted 5.15.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ================================================================== Buffer I/O error on dev loop7, logical block 0, async page read