================================================================== BUG: KCSAN: data-race in lru_add_drain_all / pagevec_lru_move_fn read to 0xffff88812bf27620 of 1 bytes by task 14098 on cpu 0: lru_add_drain_all+0xf5/0x350 mm/swap.c:728 invalidate_bdev+0x6e/0x90 fs/block_dev.c:97 btrfs_close_bdev.part.0+0xa8/0xb0 fs/btrfs/volumes.c:1238 btrfs_close_bdev fs/btrfs/volumes.c:1233 [inline] btrfs_close_one_device fs/btrfs/volumes.c:1262 [inline] close_fs_devices.part.0+0x170/0x520 fs/btrfs/volumes.c:1291 close_fs_devices fs/btrfs/volumes.c:1323 [inline] btrfs_close_devices+0x92/0x170 fs/btrfs/volumes.c:1309 open_ctree+0x194/0x3ce2 fs/btrfs/disk-io.c:3364 btrfs_fill_super fs/btrfs/super.c:1213 [inline] btrfs_mount_root+0x8c7/0xb00 fs/btrfs/super.c:1561 legacy_get_tree+0x7e/0xf0 fs/fs_context.c:647 vfs_get_tree+0x56/0x1a0 fs/super.c:1545 fc_mount+0x20/0x80 fs/namespace.c:962 vfs_kern_mount.part.0+0xe6/0xf0 fs/namespace.c:992 vfs_kern_mount+0x49/0x70 fs/namespace.c:979 btrfs_mount+0x250/0xf37 fs/btrfs/super.c:1621 legacy_get_tree+0x7e/0xf0 fs/fs_context.c:647 vfs_get_tree+0x56/0x1a0 fs/super.c:1545 do_new_mount fs/namespace.c:2822 [inline] do_mount+0x1004/0x14f0 fs/namespace.c:3142 ksys_mount+0xe8/0x160 fs/namespace.c:3351 __do_sys_mount fs/namespace.c:3365 [inline] __se_sys_mount fs/namespace.c:3362 [inline] __x64_sys_mount+0x70/0x90 fs/namespace.c:3362 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 write to 0xffff88812bf27620 of 1 bytes by task 14054 on cpu 1: pagevec_reinit include/linux/pagevec.h:63 [inline] pagevec_lru_move_fn+0x163/0x180 mm/swap.c:216 __pagevec_lru_add mm/swap.c:966 [inline] lru_add_drain_cpu+0x178/0x2e0 mm/swap.c:594 lru_add_drain+0x35/0x80 mm/swap.c:689 __pagevec_release+0x74/0x90 mm/swap.c:859 pagevec_release include/linux/pagevec.h:88 [inline] shmem_undo_range+0x7f3/0x13f0 mm/shmem.c:870 shmem_truncate_range+0x30/0x80 mm/shmem.c:992 shmem_evict_inode+0x1b5/0x550 mm/shmem.c:1092 evict+0x244/0x410 fs/inode.c:574 iput_final fs/inode.c:1563 [inline] iput+0x371/0x4e0 fs/inode.c:1589 dentry_unlink_inode+0x270/0x2e0 fs/dcache.c:374 __dentry_kill+0x220/0x3c0 fs/dcache.c:579 dentry_kill fs/dcache.c:698 [inline] dput+0x3b5/0x750 fs/dcache.c:859 do_renameat2+0x9f2/0xa50 fs/namei.c:4623 __do_sys_rename fs/namei.c:4665 [inline] __se_sys_rename fs/namei.c:4663 [inline] __x64_sys_rename+0x47/0x60 fs/namei.c:4663 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 14054 Comm: udevd Not tainted 5.4.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================