================================================================== BUG: KCSAN: data-race in __lru_add_drain_all / folio_add_lru_vma read-write to 0xffff888237d29c88 of 1 bytes by task 28787 on cpu 1: folio_batch_add include/linux/pagevec.h:74 [inline] folio_batch_add_and_move mm/swap.c:231 [inline] folio_add_lru mm/swap.c:517 [inline] folio_add_lru_vma+0x6c/0x160 mm/swap.c:537 set_pte_range+0x239/0x780 mm/memory.c:4544 finish_fault+0x3fc/0x510 mm/memory.c:4622 do_cow_fault mm/memory.c:4797 [inline] do_fault mm/memory.c:4890 [inline] do_pte_missing mm/memory.c:3745 [inline] handle_pte_fault mm/memory.c:5164 [inline] __handle_mm_fault mm/memory.c:5305 [inline] handle_mm_fault+0x1264/0x27c0 mm/memory.c:5470 do_user_addr_fault arch/x86/mm/fault.c:1406 [inline] handle_page_fault arch/x86/mm/fault.c:1498 [inline] exc_page_fault+0x2f9/0x6d0 arch/x86/mm/fault.c:1554 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570 rep_stos_alternative+0x40/0x80 arch/x86/lib/clear_page_64.S:92 __clear_user arch/x86/include/asm/uaccess_64.h:174 [inline] clear_user arch/x86/include/asm/uaccess_64.h:191 [inline] padzero fs/binfmt_elf.c:125 [inline] elf_load+0x392/0x510 fs/binfmt_elf.c:421 load_elf_interp+0x2c2/0x650 fs/binfmt_elf.c:675 load_elf_binary+0x1074/0x1800 fs/binfmt_elf.c:1200 search_binary_handler fs/exec.c:1783 [inline] exec_binprm fs/exec.c:1825 [inline] bprm_execve+0x4e2/0xc50 fs/exec.c:1877 kernel_execve+0x60e/0x670 fs/exec.c:2044 call_usermodehelper_exec_async+0x199/0x240 kernel/umh.c:110 ret_from_fork+0x48/0x60 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:243 read to 0xffff888237d29c88 of 1 bytes by task 3100 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_add_drain_all+0x10/0x20 mm/swap.c:905 invalidate_bdev+0x54/0x70 block/bdev.c:89 ext4_put_super+0x51b/0x7e0 fs/ext4/super.c:1361 generic_shutdown_super+0xdb/0x210 fs/super.c:641 kill_block_super+0x2a/0x60 fs/super.c:1675 ext4_kill_sb+0x44/0x80 fs/ext4/super.c:7319 deactivate_locked_super+0x7a/0x1c0 fs/super.c:472 deactivate_super+0x9b/0xb0 fs/super.c:505 cleanup_mnt+0x272/0x2e0 fs/namespace.c:1267 __cleanup_mnt+0x19/0x20 fs/namespace.c:1274 task_work_run+0x135/0x1a0 kernel/task_work.c:180 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop kernel/entry/common.c:108 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:201 [inline] syscall_exit_to_user_mode+0xbd/0x120 kernel/entry/common.c:212 do_syscall_64+0xda/0x1d0 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x63/0x6b value changed: 0x00 -> 0x01 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 3100 Comm: syz-executor.2 Not tainted 6.8.0-rc6-syzkaller-00024-ge326df53af00 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 ================================================================== EXT4-fs (loop2): unmounting filesystem 00000000-0000-0000-0000-000000000000. EXT4-fs (loop2): unmounting filesystem 00000000-0000-0000-0000-000000000000. EXT4-fs (loop2): unmounting filesystem 00000000-0000-0000-0000-000000000000. EXT4-fs (loop2): unmounting filesystem 00000000-0000-0000-0000-000000000000. EXT4-fs (loop2): unmounting filesystem 00000000-0000-0000-0000-000000000000. EXT4-fs (loop2): unmounting filesystem 00000000-0000-0000-0000-000000000000. EXT4-fs (loop2): unmounting filesystem 00000000-0000-0000-0000-000000000000. EXT4-fs (loop2): unmounting filesystem 00000000-0000-0000-0000-000000000000. EXT4-fs (loop2): unmounting filesystem 00000000-0000-0000-0000-000000000000. EXT4-fs (loop2): unmounting filesystem 00000000-0000-0000-0000-000000000000. EXT4-fs (loop2): unmounting filesystem 00000000-0000-0000-0000-000000000000. EXT4-fs (loop2): unmounting filesystem 00000000-0000-0000-0000-000000000000.