loop5: detected capacity change from 0 to 2048 ================================================================== BUG: KCSAN: data-race in ondemand_readahead / ondemand_readahead write to 0xffff88813086ac80 of 4 bytes by task 20207 on cpu 0: ondemand_readahead+0x2ea/0x690 mm/readahead.c:646 page_cache_sync_ra+0x27e/0x2a0 mm/readahead.c:695 page_cache_sync_readahead include/linux/pagemap.h:1283 [inline] filemap_get_pages+0x251/0xf90 mm/filemap.c:2497 filemap_splice_read+0x238/0x7f0 mm/filemap.c:2860 vfs_splice_read fs/splice.c:993 [inline] splice_direct_to_actor+0x28c/0x690 fs/splice.c:1069 do_splice_direct+0x10d/0x190 fs/splice.c:1194 do_sendfile+0x3c4/0x980 fs/read_write.c:1254 __do_sys_sendfile64 fs/read_write.c:1322 [inline] __se_sys_sendfile64 fs/read_write.c:1308 [inline] __x64_sys_sendfile64+0x110/0x150 fs/read_write.c:1308 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x44/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b write to 0xffff88813086ac80 of 4 bytes by task 20208 on cpu 1: ondemand_readahead+0x2ea/0x690 mm/readahead.c:646 page_cache_sync_ra+0x27e/0x2a0 mm/readahead.c:695 page_cache_sync_readahead include/linux/pagemap.h:1283 [inline] filemap_get_pages+0x251/0xf90 mm/filemap.c:2497 filemap_splice_read+0x238/0x7f0 mm/filemap.c:2860 vfs_splice_read fs/splice.c:993 [inline] splice_direct_to_actor+0x28c/0x690 fs/splice.c:1069 do_splice_direct+0x10d/0x190 fs/splice.c:1194 do_sendfile+0x3c4/0x980 fs/read_write.c:1254 __do_sys_sendfile64 fs/read_write.c:1322 [inline] __se_sys_sendfile64 fs/read_write.c:1308 [inline] __x64_sys_sendfile64+0x110/0x150 fs/read_write.c:1308 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x44/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b value changed: 0x00000000 -> 0x00000020 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 20208 Comm: syz-executor.5 Not tainted 6.7.0-rc6-syzkaller-00022-g55cb5f43689d #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 ================================================================== syz-executor.5: attempt to access beyond end of device loop5: rw=34817, sector=2048, nr_sectors = 2 limit=2048