loop0: detected capacity change from 0 to 1036 ================================================================== BUG: KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range read-write to 0xffff888101b95c00 of 8 bytes by task 4504 on cpu 0: __filemap_add_folio+0x2d9/0x7f0 mm/filemap.c:904 filemap_add_folio+0x6b/0x150 mm/filemap.c:959 page_cache_ra_unbounded+0x19e/0x2e0 mm/readahead.c:243 do_page_cache_ra mm/readahead.c:291 [inline] force_page_cache_ra+0x1c6/0x200 mm/readahead.c:322 page_cache_sync_ra+0x190/0x1b0 mm/readahead.c:688 page_cache_sync_readahead include/linux/pagemap.h:1185 [inline] filemap_get_pages mm/filemap.c:2592 [inline] filemap_read+0x3e5/0x1400 mm/filemap.c:2679 blkdev_read_iter+0x2c6/0x370 block/fops.c:611 call_read_iter include/linux/fs.h:2044 [inline] new_sync_read fs/read_write.c:401 [inline] vfs_read+0x5a5/0x6a0 fs/read_write.c:482 ksys_read+0xe8/0x1a0 fs/read_write.c:620 __do_sys_read fs/read_write.c:630 [inline] __se_sys_read fs/read_write.c:628 [inline] __x64_sys_read+0x3e/0x50 fs/read_write.c:628 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffff888101b95c00 of 8 bytes by task 4523 on cpu 1: mapping_needs_writeback mm/filemap.c:627 [inline] file_write_and_wait_range+0x4b/0x170 mm/filemap.c:778 blkdev_fsync+0x35/0x80 block/fops.c:462 vfs_fsync_range+0x107/0x120 fs/sync.c:188 generic_write_sync include/linux/fs.h:2732 [inline] blkdev_write_iter+0x2cf/0x340 block/fops.c:556 do_iter_readv_writev+0x27b/0x300 do_iter_write+0x16f/0x5c0 fs/read_write.c:852 vfs_iter_write+0x4c/0x70 fs/read_write.c:893 iter_file_splice_write+0x44a/0x7c0 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/0x660 fs/splice.c:891 do_splice_direct+0xfb/0x180 fs/splice.c:979 do_sendfile+0x3ad/0x900 fs/read_write.c:1246 __do_sys_sendfile64 fs/read_write.c:1311 [inline] __se_sys_sendfile64 fs/read_write.c:1297 [inline] __x64_sys_sendfile64+0x10c/0x150 fs/read_write.c:1297 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae value changed: 0x000000000000000b -> 0x000000000000000c Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 4523 Comm: syz-executor.0 Not tainted 5.18.0-rc4-syzkaller-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================