================================================================== BUG: KCSAN: data-race in folio_mapping / page_cache_delete_batch write to 0xffffea0005085c58 of 8 bytes by task 3104 on cpu 1: page_cache_delete_batch+0x1a7/0x470 mm/filemap.c:308 delete_from_page_cache_batch+0x18f/0x2a0 mm/filemap.c:334 truncate_inode_pages_range+0x3ca/0xae0 mm/truncate.c:370 truncate_inode_pages+0x20/0x30 mm/truncate.c:452 kill_bdev block/bdev.c:77 [inline] set_blocksize+0x24e/0x270 block/bdev.c:153 sb_set_blocksize block/bdev.c:162 [inline] sb_min_blocksize+0x92/0x110 block/bdev.c:178 isofs_fill_super+0x702/0x17b0 fs/isofs/inode.c:658 mount_bdev+0x1e2/0x280 fs/super.c:1367 isofs_mount+0x2d/0x40 fs/isofs/inode.c:1567 legacy_get_tree+0x70/0xc0 fs/fs_context.c:610 vfs_get_tree+0x49/0x190 fs/super.c:1497 do_new_mount+0x200/0x650 fs/namespace.c:3040 path_mount+0x4b1/0xb60 fs/namespace.c:3370 do_mount fs/namespace.c:3383 [inline] __do_sys_mount fs/namespace.c:3591 [inline] __se_sys_mount+0x281/0x2d0 fs/namespace.c:3568 __x64_sys_mount+0x63/0x70 fs/namespace.c:3568 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffffea0005085c58 of 8 bytes by task 5387 on cpu 0: folio_mapping+0x92/0x120 mm/util.c:773 folio_evictable mm/internal.h:121 [inline] __pagevec_lru_add_fn+0x134/0x520 mm/swap.c:1024 __pagevec_lru_add+0x1c6/0x320 mm/swap.c:1060 folio_add_lru+0x112/0x160 mm/swap.c:467 lru_cache_add+0x3b/0xe0 mm/folio-compat.c:109 shmem_getpage_gfp+0x9a6/0x16c0 mm/shmem.c:1913 shmem_getpage mm/shmem.c:149 [inline] shmem_write_begin+0x84/0x110 mm/shmem.c:2446 generic_perform_write+0x1d6/0x3f0 mm/filemap.c:3787 __generic_file_write_iter+0xe3/0x280 mm/filemap.c:3915 generic_file_write_iter+0x75/0x130 mm/filemap.c:3947 call_write_iter include/linux/fs.h:2050 [inline] new_sync_write fs/read_write.c:504 [inline] vfs_write+0x71c/0x890 fs/read_write.c:591 ksys_write+0xe8/0x1a0 fs/read_write.c:644 __do_sys_write fs/read_write.c:656 [inline] __se_sys_write fs/read_write.c:653 [inline] __x64_sys_write+0x3e/0x50 fs/read_write.c:653 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae value changed: 0xffff88810042d600 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 5387 Comm: udevd Not tainted 5.18.0-rc3-syzkaller-00250-g42740a2ff5d3-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================