================================================================== BUG: KCSAN: data-race in __add_to_page_cache_locked / truncate_inode_pages_range write to 0xffff88810d7ae458 of 8 bytes by task 10149 on cpu 0: __add_to_page_cache_locked+0x3ad/0x6e0 mm/filemap.c:887 add_to_page_cache_lru+0xa0/0x1b0 mm/filemap.c:940 page_cache_ra_unbounded+0x272/0x4c0 mm/readahead.c:222 ondemand_readahead+0x560/0x780 mm/readahead.c:267 page_cache_async_ra+0x1aa/0x1d0 mm/readahead.c:607 page_cache_async_readahead include/linux/pagemap.h:863 [inline] filemap_readahead mm/filemap.c:2350 [inline] filemap_get_pages+0x2b4/0x660 mm/filemap.c:2391 filemap_read+0x1ba/0x7b0 mm/filemap.c:2458 generic_file_read_iter+0x82/0x410 mm/filemap.c:2609 ext4_file_read_iter+0x2e0/0x420 fs/ext4/file.c:74 __kernel_read+0x306/0x580 fs/read_write.c:454 integrity_kernel_read+0x4c/0x70 security/integrity/iint.c:191 ima_calc_file_hash_tfm security/integrity/ima/ima_crypto.c:484 [inline] ima_calc_file_shash security/integrity/ima/ima_crypto.c:515 [inline] ima_calc_file_hash+0x929/0x1310 security/integrity/ima/ima_crypto.c:572 ima_collect_measurement+0x168/0x310 security/integrity/ima/ima_api.c:252 process_measurement+0xa88/0x10f0 security/integrity/ima/ima_main.c:330 ima_file_check+0x75/0xa0 security/integrity/ima/ima_main.c:499 do_open fs/namei.c:3367 [inline] path_openat+0x19c5/0x21b0 fs/namei.c:3498 do_filp_open+0xbd/0x1d0 fs/namei.c:3525 do_sys_openat2+0xa3/0x250 fs/open.c:1187 do_sys_open fs/open.c:1203 [inline] __do_sys_open fs/open.c:1211 [inline] __se_sys_open fs/open.c:1207 [inline] __x64_sys_open+0xe2/0x110 fs/open.c:1207 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffff88810d7ae458 of 8 bytes by task 10151 on cpu 1: truncate_inode_pages_range+0x40/0xd60 mm/truncate.c:298 truncate_inode_pages+0x20/0x30 mm/truncate.c:428 swap_inode_boot_loader fs/ext4/ioctl.c:163 [inline] __ext4_ioctl fs/ext4/ioctl.c:1058 [inline] ext4_ioctl+0x282d/0x35e0 fs/ext4/ioctl.c:1332 vfs_ioctl fs/ioctl.c:48 [inline] __do_sys_ioctl fs/ioctl.c:753 [inline] __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:739 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:739 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: 10151 Comm: syz-executor.4 Not tainted 5.12.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================