================================================================== BUG: KCSAN: data-race in __lru_add_drain_all / folio_batch_move_lru write to 0xffff888237d29c88 of 1 bytes by task 1559 on cpu 1: 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_add_lru+0xc4/0x120 mm/swap.c:517 filemap_add_folio+0x103/0x160 mm/filemap.c:953 __filemap_get_folio+0x2f1/0x5a0 mm/filemap.c:1927 ext4_da_write_begin+0x2eb/0x550 fs/ext4/inode.c:2891 generic_perform_write+0x1c9/0x410 mm/filemap.c:3930 ext4_buffered_write_iter+0x1f6/0x370 fs/ext4/file.c:299 ext4_file_write_iter+0x297/0xe10 __kernel_write_iter+0x25f/0x480 fs/read_write.c:523 dump_emit_page fs/coredump.c:888 [inline] dump_user_range+0x25d/0x480 fs/coredump.c:915 elf_core_dump+0x1a8e/0x1bb0 fs/binfmt_elf.c:2077 do_coredump+0x102a/0x1890 fs/coredump.c:764 get_signal+0xdb5/0x10a0 kernel/signal.c:2879 arch_do_signal_or_restart+0x95/0x4b0 arch/x86/kernel/signal.c:310 exit_to_user_mode_loop kernel/entry/common.c:105 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] irqentry_exit_to_user_mode+0x9c/0x130 kernel/entry/common.c:225 irqentry_exit+0x12/0x40 kernel/entry/common.c:328 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570 read to 0xffff888237d29c88 of 1 bytes by task 1580 on cpu 0: folio_batch_count include/linux/pagevec.h:53 [inline] cpu_needs_drain mm/swap.c:795 [inline] __lru_add_drain_all+0x137/0x420 mm/swap.c:889 lru_cache_disable+0x1f/0x20 mm/swap.c:942 do_mbind mm/mempolicy.c:1263 [inline] kernel_mbind mm/mempolicy.c:1486 [inline] __do_sys_mbind mm/mempolicy.c:1560 [inline] __se_sys_mbind+0x487/0x1000 mm/mempolicy.c:1556 __x64_sys_mbind+0x78/0x90 mm/mempolicy.c:1556 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b value changed: 0x0b -> 0x00 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 1580 Comm: syz-executor.2 Not tainted 6.8.0-rc2-syzkaller-00055-g6764c317b6bb #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 ==================================================================