================================================================== BUG: KCSAN: data-race in lru_add_drain_all / pagevec_lru_move_fn write to 0xffff88813bc276f0 of 1 bytes by task 24788 on cpu 0: pagevec_reinit include/linux/pagevec.h:63 [inline] pagevec_lru_move_fn+0x175/0x190 mm/swap.c:232 __pagevec_lru_add mm/swap.c:1070 [inline] lru_add_drain_cpu+0x75/0x290 mm/swap.c:630 lru_add_drain+0x30/0x70 mm/swap.c:734 free_pages_and_swap_cache+0x1d/0x1f0 mm/swap_state.c:352 tlb_batch_pages_flush mm/mmu_gather.c:49 [inline] tlb_flush_mmu_free mm/mmu_gather.c:242 [inline] tlb_flush_mmu+0x597/0x5f0 mm/mmu_gather.c:249 zap_pte_range+0x1134/0x13c0 mm/memory.c:1319 zap_pmd_range mm/memory.c:1357 [inline] zap_pud_range mm/memory.c:1386 [inline] zap_p4d_range mm/memory.c:1407 [inline] unmap_page_range+0x560/0x660 mm/memory.c:1428 unmap_single_vma+0x157/0x210 mm/memory.c:1473 unmap_vmas+0xbf/0x150 mm/memory.c:1505 exit_mmap+0x1c7/0x3b0 mm/mmap.c:3222 __mmput+0xa2/0x220 kernel/fork.c:1079 mmput+0x38/0x40 kernel/fork.c:1100 exit_mm+0x307/0x370 kernel/exit.c:486 do_exit+0x3c2/0x15a0 kernel/exit.c:796 do_group_exit+0xc8/0x170 kernel/exit.c:906 get_signal+0xf9b/0x1510 kernel/signal.c:2758 arch_do_signal+0x25/0x260 arch/x86/kernel/signal.c:811 exit_to_user_mode_loop kernel/entry/common.c:161 [inline] exit_to_user_mode_prepare+0xde/0x170 kernel/entry/common.c:191 syscall_exit_to_user_mode+0x16/0x30 kernel/entry/common.c:266 do_syscall_64+0x45/0x80 arch/x86/entry/common.c:56 entry_SYSCALL_64_after_hwframe+0x44/0xa9 read to 0xffff88813bc276f0 of 1 bytes by task 24805 on cpu 1: pagevec_count include/linux/pagevec.h:68 [inline] lru_add_drain_all+0x108/0x3c0 mm/swap.c:837 invalidate_bdev+0x50/0x70 fs/block_dev.c:96 btrfs_get_bdev_and_sb+0xe0/0x150 fs/btrfs/volumes.c:527 btrfs_open_one_device fs/btrfs/volumes.c:631 [inline] open_fs_devices+0x13d/0x6d0 fs/btrfs/volumes.c:1197 btrfs_open_devices+0x7a/0x90 fs/btrfs/volumes.c:1251 btrfs_mount_root+0x3da/0x810 fs/btrfs/super.c:1644 legacy_get_tree+0x70/0xc0 fs/fs_context.c:592 vfs_get_tree+0x4a/0x190 fs/super.c:1549 fc_mount fs/namespace.c:978 [inline] vfs_kern_mount+0xc6/0x130 fs/namespace.c:1008 btrfs_mount+0x27b/0x770 fs/btrfs/super.c:1732 legacy_get_tree+0x70/0xc0 fs/fs_context.c:592 vfs_get_tree+0x4a/0x190 fs/super.c:1549 do_new_mount fs/namespace.c:2875 [inline] path_mount+0x119d/0x1c10 fs/namespace.c:3205 do_mount fs/namespace.c:3218 [inline] __do_sys_mount fs/namespace.c:3426 [inline] __se_sys_mount+0x23d/0x2e0 fs/namespace.c:3403 __x64_sys_mount+0x63/0x70 fs/namespace.c:3403 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 24805 Comm: syz-executor.3 Not tainted 5.10.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================