================================================================== BUG: KCSAN: data-race in __pagevec_lru_add / lru_add_drain_all write to 0xffff88813bc27550 of 1 bytes by task 21755 on cpu 0: pagevec_reinit include/linux/pagevec.h:56 [inline] __pagevec_lru_add+0x24b/0x280 mm/swap.c:1017 lru_add_drain_cpu+0x6a/0x260 mm/swap.c:606 lru_add_drain mm/swap.c:710 [inline] __pagevec_release+0x5a/0xd0 mm/swap.c:940 pagevec_release include/linux/pagevec.h:81 [inline] shmem_undo_range+0x327/0x1220 mm/shmem.c:931 shmem_truncate_range mm/shmem.c:1030 [inline] shmem_evict_inode+0x115/0x550 mm/shmem.c:1132 evict+0x1aa/0x410 fs/inode.c:578 iput_final fs/inode.c:1654 [inline] iput+0x3fd/0x520 fs/inode.c:1680 dentry_unlink_inode+0x210/0x220 fs/dcache.c:374 __dentry_kill+0x293/0x450 fs/dcache.c:580 dentry_kill fs/dcache.c:693 [inline] dput+0x218/0x430 fs/dcache.c:886 __fput+0x3b3/0x4f0 fs/file_table.c:293 ____fput+0x11/0x20 fs/file_table.c:313 task_work_run+0x8e/0x110 kernel/task_work.c:140 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:174 [inline] exit_to_user_mode_prepare+0x17c/0x1b0 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:301 do_syscall_64+0x45/0x80 arch/x86/entry/common.c:56 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffff88813bc27550 of 1 bytes by task 14199 on cpu 1: pagevec_count include/linux/pagevec.h:61 [inline] lru_add_drain_all+0x108/0x3c0 mm/swap.c:813 invalidate_bdev+0x50/0x70 fs/block_dev.c:96 btrfs_close_bdev fs/btrfs/volumes.c:1116 [inline] btrfs_close_one_device fs/btrfs/volumes.c:1135 [inline] close_fs_devices+0x25e/0x4d0 fs/btrfs/volumes.c:1165 btrfs_close_devices+0x44/0x210 fs/btrfs/volumes.c:1180 open_ctree+0x529/0x230b fs/btrfs/disk-io.c:3599 btrfs_fill_super fs/btrfs/super.c:1356 [inline] btrfs_mount_root+0x742/0x830 fs/btrfs/super.c:1723 legacy_get_tree+0x70/0xc0 fs/fs_context.c:592 vfs_get_tree+0x4a/0x1a0 fs/super.c:1497 fc_mount fs/namespace.c:993 [inline] vfs_kern_mount+0xc6/0x130 fs/namespace.c:1023 btrfs_mount+0x278/0x740 fs/btrfs/super.c:1783 legacy_get_tree+0x70/0xc0 fs/fs_context.c:592 vfs_get_tree+0x4a/0x1a0 fs/super.c:1497 do_new_mount fs/namespace.c:2903 [inline] path_mount+0x11b9/0x1c00 fs/namespace.c:3233 do_mount fs/namespace.c:3246 [inline] __do_sys_mount fs/namespace.c:3454 [inline] __se_sys_mount+0x23d/0x2e0 fs/namespace.c:3431 __x64_sys_mount+0x63/0x70 fs/namespace.c:3431 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xae Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 14199 Comm: syz-executor.5 Not tainted 5.12.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ================================================================== BTRFS error (device loop2): open_ctree failed loop5: detected capacity change from 0 to 258 BTRFS error (device loop5): superblock checksum mismatch BTRFS error (device loop5): open_ctree failed