================================================================== BUG: KCSAN: data-race in __lru_cache_add / lru_add_drain_all read to 0xffff88812c1299e0 of 1 bytes by task 10932 on cpu 0: lru_add_drain_all+0x17e/0x3d0 mm/swap.c:746 invalidate_bdev+0x6e/0x90 fs/block_dev.c:97 btrfs_close_bdev.part.0+0x93/0xa0 fs/btrfs/volumes.c:1058 btrfs_close_bdev fs/btrfs/volumes.c:1053 [inline] btrfs_close_one_device fs/btrfs/volumes.c:1082 [inline] close_fs_devices.part.0+0x161/0x510 fs/btrfs/volumes.c:1111 close_fs_devices fs/btrfs/volumes.c:1143 [inline] btrfs_close_devices+0x92/0x170 fs/btrfs/volumes.c:1129 btrfs_mount_root+0x793/0x9c0 fs/btrfs/super.c:1574 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/0x3a0 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x44/0xa9 write to 0xffff88812c1299e0 of 1 bytes by task 10921 on cpu 1: pagevec_add include/linux/pagevec.h:81 [inline] __lru_cache_add+0xbf/0x1d0 mm/swap.c:410 lru_cache_add+0x1f/0x30 mm/swap.c:447 add_to_page_cache_lru+0x16a/0x260 mm/filemap.c:959 ext4_mpage_readpages+0x329/0x1580 fs/ext4/readpage.c:247 ext4_readpages+0x92/0xc0 fs/ext4/inode.c:3244 read_pages+0xa2/0x2d0 mm/readahead.c:126 __do_page_cache_readahead+0x353/0x390 mm/readahead.c:212 ra_submit mm/internal.h:62 [inline] ondemand_readahead+0x35d/0x710 mm/readahead.c:492 page_cache_async_readahead+0x22c/0x250 mm/readahead.c:574 generic_file_buffered_read mm/filemap.c:2059 [inline] generic_file_read_iter+0xffc/0x1440 mm/filemap.c:2324 ext4_file_read_iter fs/ext4/file.c:130 [inline] ext4_file_read_iter+0x10c/0x380 fs/ext4/file.c:113 call_read_iter include/linux/fs.h:1896 [inline] new_sync_read+0x389/0x4f0 fs/read_write.c:414 __vfs_read+0xb1/0xc0 fs/read_write.c:427 integrity_kernel_read+0xa1/0xe0 security/integrity/iint.c:200 ima_calc_file_hash_tfm+0x1b5/0x260 security/integrity/ima/ima_crypto.c:360 ima_calc_file_shash security/integrity/ima/ima_crypto.c:389 [inline] ima_calc_file_hash+0x158/0xf30 security/integrity/ima/ima_crypto.c:454 ima_collect_measurement+0x3b1/0x3e0 security/integrity/ima/ima_api.c:247 process_measurement+0x9e3/0x1190 security/integrity/ima/ima_main.c:326 ima_file_check+0x7e/0xb0 security/integrity/ima/ima_main.c:442 do_last fs/namei.c:3424 [inline] path_openat+0xfdb/0x3580 fs/namei.c:3537 do_filp_open+0x11e/0x1b0 fs/namei.c:3567 do_sys_open+0x3b3/0x4f0 fs/open.c:1097 __do_sys_open fs/open.c:1115 [inline] __se_sys_open fs/open.c:1110 [inline] __x64_sys_open+0x55/0x70 fs/open.c:1110 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 10921 Comm: syz-executor.2 Not tainted 5.5.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================