loop7: detected capacity change from 0 to 4096 ================================================================== BUG: KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range read-write to 0xffff8881006311f0 of 8 bytes by task 3465 on cpu 1: __filemap_add_folio+0x5b9/0x7d0 mm/filemap.c:928 filemap_add_folio+0x98/0x1b0 mm/filemap.c:969 page_cache_ra_unbounded+0x1f3/0x380 mm/readahead.c:275 do_page_cache_ra mm/readahead.c:327 [inline] force_page_cache_ra mm/readahead.c:356 [inline] page_cache_sync_ra+0x258/0x6a0 mm/readahead.c:575 filemap_get_pages+0x2d0/0x1160 mm/filemap.c:2591 filemap_read+0x237/0x990 mm/filemap.c:2702 blkdev_read_iter+0x22d/0x2e0 block/fops.c:809 new_sync_read fs/read_write.c:489 [inline] vfs_read+0x5ca/0x6f0 fs/read_write.c:570 ksys_read+0xda/0x1a0 fs/read_write.c:713 __do_sys_read fs/read_write.c:722 [inline] __se_sys_read fs/read_write.c:720 [inline] __x64_sys_read+0x40/0x50 fs/read_write.c:720 x64_sys_call+0x2d77/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:1 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd0/0x1a0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffff8881006311f0 of 8 bytes by task 14925 on cpu 0: mapping_needs_writeback mm/filemap.c:641 [inline] filemap_write_and_wait_range+0x59/0x340 mm/filemap.c:690 filemap_write_and_wait include/linux/pagemap.h:68 [inline] sync_blockdev+0x35/0x50 block/bdev.c:260 kill_block_super+0x3c/0x70 fs/super.c:1712 ext4_kill_sb+0x42/0x80 fs/ext4/super.c:7393 deactivate_locked_super+0x72/0x1c0 fs/super.c:473 deactivate_super+0x97/0xa0 fs/super.c:506 cleanup_mnt+0x269/0x2e0 fs/namespace.c:1435 __cleanup_mnt+0x19/0x20 fs/namespace.c:1442 task_work_run+0x12e/0x1a0 kernel/task_work.c:227 resume_user_mode_work+0x6a/0x70 include/linux/resume_user_mode.h:50 exit_to_user_mode_loop kernel/entry/common.c:114 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x77/0xb0 kernel/entry/common.c:218 do_syscall_64+0xdd/0x1a0 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0x0000000000000003 -> 0x0000000000000004 Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 14925 Comm: syz.7.3494 Not tainted 6.15.0-rc4-syzkaller-00256-g95d3481af6dc #0 PREEMPT(voluntary) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025 ==================================================================