================================================================== BUG: KCSAN: data-race in __lru_add_drain_all / folio_batch_move_lru write to 0xffff888237c29b88 of 1 bytes by task 27578 on cpu 0: folio_batch_reinit include/linux/pagevec.h:48 [inline] folio_batch_move_lru+0x2bf/0x2f0 mm/swap.c:225 folio_batch_add_and_move mm/swap.c:234 [inline] folio_activate+0x15c/0x1c0 mm/swap.c:361 folio_mark_accessed+0x119/0x190 mm/swap.c:481 mark_page_accessed+0x44/0xf0 mm/folio-compat.c:45 zap_pte_range mm/memory.c:1452 [inline] zap_pmd_range mm/memory.c:1573 [inline] zap_pud_range mm/memory.c:1602 [inline] zap_p4d_range mm/memory.c:1623 [inline] unmap_page_range+0xc41/0x1db0 mm/memory.c:1644 unmap_single_vma+0x142/0x1d0 mm/memory.c:1690 unmap_vmas+0xf6/0x1a0 mm/memory.c:1731 exit_mmap+0x167/0x640 mm/mmap.c:3210 __mmput+0x28/0x1c0 kernel/fork.c:1349 mmput+0x4c/0x60 kernel/fork.c:1371 exit_mm+0xe3/0x180 kernel/exit.c:567 do_exit+0x580/0x1660 kernel/exit.c:861 do_group_exit+0x101/0x150 kernel/exit.c:1024 get_signal+0xf3c/0x1090 kernel/signal.c:2892 arch_do_signal_or_restart+0x95/0x4b0 arch/x86/kernel/signal.c:309 exit_to_user_mode_loop+0x6f/0xe0 kernel/entry/common.c:168 exit_to_user_mode_prepare+0x6c/0xb0 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline] syscall_exit_to_user_mode+0x26/0x140 kernel/entry/common.c:296 do_syscall_64+0x4d/0xc0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd read to 0xffff888237c29b88 of 1 bytes by task 22018 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+0x54/0x70 block/bdev.c:86 ext4_put_super+0x51b/0x7d0 fs/ext4/super.c:1353 generic_shutdown_super+0xdb/0x210 fs/super.c:693 kill_block_super+0x2a/0x60 fs/super.c:1646 ext4_kill_sb+0x44/0x80 fs/ext4/super.c:7305 deactivate_locked_super+0x73/0x1c0 fs/super.c:481 deactivate_super+0x9b/0xb0 fs/super.c:514 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:285 [inline] syscall_exit_to_user_mode+0x26/0x140 kernel/entry/common.c:296 do_syscall_64+0x4d/0xc0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd value changed: 0x0f -> 0x06 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 22018 Comm: syz-executor.3 Not tainted 6.6.0-rc2-syzkaller-00048-g42dc814987c1 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023 ==================================================================