================================================================== BUG: KCSAN: data-race in __lru_add_drain_all / folios_put_refs write to 0xffff888237d25a68 of 1 bytes by task 9030 on cpu 1: folio_batch_reinit include/linux/pagevec.h:50 [inline] folios_put_refs+0x285/0x2d0 mm/swap.c:986 folios_put include/linux/mm.h:1639 [inline] folio_batch_move_lru+0x1fd/0x230 mm/swap.c:175 __folio_batch_add_and_move mm/swap.c:196 [inline] folio_add_lru+0x14a/0x1f0 mm/swap.c:505 filemap_add_folio+0x129/0x1b0 mm/filemap.c:985 page_cache_ra_unbounded+0x1f3/0x380 mm/readahead.c:275 do_page_cache_ra mm/readahead.c:327 [inline] page_cache_ra_order mm/readahead.c:532 [inline] page_cache_async_ra+0x438/0x440 mm/readahead.c:687 filemap_readahead mm/filemap.c:2560 [inline] filemap_get_pages+0x510/0x1160 mm/filemap.c:2605 filemap_splice_read+0x333/0x6b0 mm/filemap.c:2981 ext4_file_splice_read+0x8f/0xb0 fs/ext4/file.c:158 do_splice_read fs/splice.c:979 [inline] splice_direct_to_actor+0x26f/0x680 fs/splice.c:1083 do_splice_direct_actor fs/splice.c:1201 [inline] do_splice_direct+0xda/0x150 fs/splice.c:1227 do_sendfile+0x380/0x640 fs/read_write.c:1368 __do_sys_sendfile64 fs/read_write.c:1429 [inline] __se_sys_sendfile64 fs/read_write.c:1415 [inline] __x64_sys_sendfile64+0x105/0x150 fs/read_write.c:1415 x64_sys_call+0xb39/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:41 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 0xffff888237d25a68 of 1 bytes by task 3314 on cpu 0: folio_batch_count include/linux/pagevec.h:56 [inline] cpu_needs_drain mm/swap.c:773 [inline] __lru_add_drain_all+0x12b/0x3f0 mm/swap.c:867 lru_add_drain_all+0x10/0x20 mm/swap.c:883 invalidate_bdev+0x47/0x70 block/bdev.c:101 ext4_put_super+0x624/0x7d0 fs/ext4/super.c:1343 generic_shutdown_super+0xe3/0x210 fs/super.c:642 kill_block_super+0x2a/0x70 fs/super.c:1710 ext4_kill_sb+0x42/0x80 fs/ext4/super.c:7393 deactivate_locked_super+0x75/0x1c0 fs/super.c:473 deactivate_super+0x97/0xa0 fs/super.c:506 cleanup_mnt+0x269/0x2e0 fs/namespace.c:1431 __cleanup_mnt+0x19/0x20 fs/namespace.c:1438 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: 0x1f -> 0x02 Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 3314 Comm: syz-executor Not tainted 6.15.0-rc7-syzkaller-00014-gd608703fcdd9 #0 PREEMPT(voluntary) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 ==================================================================