================================================================== BUG: KCSAN: data-race in folio_mapping / page_cache_delete write to 0xffffea0004d85098 of 8 bytes by task 9627 on cpu 1: page_cache_delete+0x313/0x370 mm/filemap.c:143 __filemap_remove_folio+0x3b/0xf0 mm/filemap.c:223 filemap_remove_folio+0x69/0x120 mm/filemap.c:255 truncate_inode_folio+0x204/0x210 mm/truncate.c:196 truncate_inode_pages_range+0x832/0xae0 mm/truncate.c:426 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+0x2c/0xa0 block/bdev.c:162 __ext4_fill_super+0x1a04/0x5a00 fs/ext4/super.c:4822 ext4_fill_super+0x10b/0x2f0 fs/ext4/super.c:5587 get_tree_bdev+0x2c2/0x3d0 fs/super.c:1292 vfs_get_tree+0x4a/0x1a0 fs/super.c:1497 do_new_mount fs/namespace.c:3040 [inline] path_mount+0x11cf/0x1c40 fs/namespace.c:3370 do_mount fs/namespace.c:3383 [inline] __do_sys_mount fs/namespace.c:3591 [inline] __se_sys_mount+0x24b/0x2f0 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 0xffffea0004d85098 of 8 bytes by task 2009 on cpu 0: folio_mapping+0x92/0x120 mm/util.c:766 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+0x115/0x160 mm/swap.c:467 filemap_add_folio+0xf8/0x150 mm/filemap.c:974 page_cache_ra_unbounded+0x1b0/0x310 mm/readahead.c:243 do_page_cache_ra mm/readahead.c:291 [inline] force_page_cache_ra+0x1c6/0x200 mm/readahead.c:322 page_cache_sync_ra+0x184/0x1b0 mm/readahead.c:688 page_cache_sync_readahead include/linux/pagemap.h:1185 [inline] filemap_get_pages mm/filemap.c:2598 [inline] filemap_read+0x3d5/0xe10 mm/filemap.c:2685 blkdev_read_iter+0x2cc/0x380 block/fops.c:611 call_read_iter include/linux/fs.h:2044 [inline] new_sync_read fs/read_write.c:401 [inline] vfs_read+0x5e2/0x6c0 fs/read_write.c:482 ksys_read+0xd9/0x190 fs/read_write.c:620 __do_sys_read fs/read_write.c:630 [inline] __se_sys_read fs/read_write.c:628 [inline] __x64_sys_read+0x3e/0x50 fs/read_write.c:628 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: 0xffff88810042f600 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 2009 Comm: udevd Not tainted 5.18.0-rc1-syzkaller-00016-g3e732ebf7316-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================