================================================================== BUG: KCSAN: data-race in __lru_add_drain_all / folio_activate read-write to 0xffff888237c29ac8 of 1 bytes by task 11776 on cpu 0: folio_batch_add include/linux/pagevec.h:74 [inline] folio_batch_add_and_move mm/swap.c:231 [inline] folio_activate+0xbb/0x1c0 mm/swap.c:361 folio_mark_accessed+0x114/0x190 mm/swap.c:481 shmem_file_read_iter+0x2ee/0x570 mm/shmem.c:2691 call_read_iter include/linux/fs.h:1865 [inline] new_sync_read fs/read_write.c:389 [inline] vfs_read+0x3da/0x5c0 fs/read_write.c:470 ksys_read+0xeb/0x1a0 fs/read_write.c:613 __do_sys_read fs/read_write.c:623 [inline] __se_sys_read fs/read_write.c:621 [inline] __x64_sys_read+0x42/0x50 fs/read_write.c:621 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd read to 0xffff888237c29ac8 of 1 bytes by task 3090 on cpu 1: folio_batch_count include/linux/pagevec.h:53 [inline] cpu_needs_drain mm/swap.c:800 [inline] __lru_add_drain_all+0x21d/0x420 mm/swap.c:889 lru_add_drain_all+0x10/0x20 mm/swap.c:905 invalidate_bdev+0x5a/0x80 block/bdev.c:86 ext4_put_super+0x502/0x7f0 fs/ext4/super.c:1340 generic_shutdown_super+0xd9/0x260 fs/super.c:499 kill_block_super+0x3b/0x60 fs/super.c:1417 deactivate_locked_super+0x6b/0xd0 fs/super.c:330 deactivate_super+0x9b/0xb0 fs/super.c:361 cleanup_mnt+0x272/0x2e0 fs/namespace.c:1254 __cleanup_mnt+0x19/0x20 fs/namespace.c:1261 task_work_run+0x135/0x1a0 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xd1/0xe0 kernel/entry/common.c:171 exit_to_user_mode_prepare+0x6c/0xb0 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x26/0x140 kernel/entry/common.c:297 do_syscall_64+0x4d/0xc0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd value changed: 0x00 -> 0x01 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 3090 Comm: syz-executor.4 Not tainted 6.5.0-rc3-syzkaller-00275-gffabf7c73176 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023 ================================================================== EXT4-fs (loop4): unmounting filesystem 00000000-0000-0000-0000-000000000000. EXT4-fs (loop4): unmounting filesystem 00000000-0000-0000-0000-000000000000. EXT4-fs (loop4): unmounting filesystem 00000000-0000-0000-0000-000000000000. EXT4-fs (loop4): unmounting filesystem 00000000-0000-0000-0000-000000000000. EXT4-fs (loop4): unmounting filesystem 00000000-0000-0000-0000-000000000000. EXT4-fs (loop4): unmounting filesystem 00000000-0000-0000-0000-000000000000. EXT4-fs (loop4): unmounting filesystem 00000000-0000-0000-0000-000000000000. EXT4-fs (loop4): unmounting filesystem 00000000-0000-0000-0000-000000000000.