================================================================== BUG: KCSAN: data-race in __lru_add_drain_all / folio_activate read-write to 0xffff888237c2a188 of 1 bytes by task 14170 on cpu 0: folio_batch_add include/linux/pagevec.h:74 [inline] folio_batch_add_and_move mm/swap.c:231 [inline] folio_activate+0xc0/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:1461 [inline] zap_pmd_range mm/memory.c:1583 [inline] zap_pud_range mm/memory.c:1612 [inline] zap_p4d_range mm/memory.c:1633 [inline] unmap_page_range+0xcb1/0x1cd0 mm/memory.c:1654 unmap_single_vma+0x142/0x1d0 mm/memory.c:1700 zap_page_range_single+0x213/0x2f0 mm/memory.c:1778 unmap_mapping_range_vma mm/memory.c:3518 [inline] unmap_mapping_range_tree mm/memory.c:3535 [inline] unmap_mapping_pages mm/memory.c:3601 [inline] unmap_mapping_range+0x15b/0x1a0 mm/memory.c:3638 truncate_pagecache_range+0x6f/0x90 mm/truncate.c:853 ext4_punch_hole+0x345/0x7b0 fs/ext4/inode.c:3985 ext4_fallocate+0x209/0x1190 fs/ext4/extents.c:4707 vfs_fallocate+0x378/0x3e0 fs/open.c:328 madvise_remove mm/madvise.c:1001 [inline] madvise_vma_behavior mm/madvise.c:1025 [inline] madvise_walk_vmas mm/madvise.c:1260 [inline] do_madvise+0x741/0x26f0 mm/madvise.c:1440 __do_sys_madvise mm/madvise.c:1453 [inline] __se_sys_madvise mm/madvise.c:1451 [inline] __x64_sys_madvise+0x60/0x70 mm/madvise.c:1451 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x59/0x120 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b read to 0xffff888237c2a188 of 1 bytes by task 3095 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:89 ext4_put_super+0x51b/0x7e0 fs/ext4/super.c:1361 generic_shutdown_super+0xdb/0x210 fs/super.c:652 kill_block_super+0x2a/0x60 fs/super.c:1680 ext4_kill_sb+0x44/0x80 fs/ext4/super.c:7328 deactivate_locked_super+0x7a/0x1c0 fs/super.c:477 deactivate_super+0x9b/0xb0 fs/super.c:510 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:49 [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+0xbc/0x130 kernel/entry/common.c:212 do_syscall_64+0x65/0x120 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x63/0x6b value changed: 0x04 -> 0x01 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 3095 Comm: syz-executor.5 Not tainted 6.7.0-syzkaller-00562-g9f8413c4a66f #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 ==================================================================