================================================================== BUG: KCSAN: data-race in __filemap_remove_folio / folio_mapping write to 0xffffea000510ba18 of 8 bytes by task 7483 on cpu 0: page_cache_delete mm/filemap.c:142 [inline] __filemap_remove_folio+0x1b7/0x2c0 mm/filemap.c:228 filemap_remove_folio+0x69/0x210 mm/filemap.c:262 truncate_inode_folio+0x14c/0x160 mm/truncate.c:224 truncate_inode_pages_range+0x6a2/0x8b0 mm/truncate.c:437 truncate_inode_pages+0x20/0x30 mm/truncate.c:466 kill_bdev block/bdev.c:78 [inline] set_blocksize+0x24e/0x270 block/bdev.c:158 sb_set_blocksize block/bdev.c:167 [inline] sb_min_blocksize+0x92/0x110 block/bdev.c:183 __ext4_fill_super+0x10e/0x59b0 fs/ext4/super.c:4383 ext4_fill_super+0xfd/0x2f0 fs/ext4/super.c:5557 get_tree_bdev+0x2c2/0x3d0 fs/super.c:1295 vfs_get_tree+0x4a/0x1a0 fs/super.c:1500 do_new_mount fs/namespace.c:2994 [inline] path_mount+0x11cf/0x1c40 fs/namespace.c:3324 do_mount fs/namespace.c:3337 [inline] __do_sys_mount fs/namespace.c:3545 [inline] __se_sys_mount+0x24b/0x2f0 fs/namespace.c:3522 __x64_sys_mount+0x63/0x70 fs/namespace.c:3522 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffffea000510ba18 of 8 bytes by task 2064 on cpu 1: folio_mapping+0x92/0x120 mm/util.c:715 folio_evictable mm/internal.h:121 [inline] __pagevec_lru_add_fn+0x81/0x380 mm/swap.c:1043 __pagevec_lru_add+0x1c3/0x270 mm/swap.c:1071 folio_add_lru+0x11a/0x160 mm/swap.c:469 filemap_add_folio+0xf8/0x150 mm/filemap.c:976 page_cache_ra_unbounded+0x274/0x400 mm/readahead.c:221 do_page_cache_ra mm/readahead.c:268 [inline] force_page_cache_ra+0x1e6/0x220 mm/readahead.c:300 page_cache_sync_ra+0xcc/0xe0 mm/readahead.c:574 page_cache_sync_readahead include/linux/pagemap.h:1056 [inline] filemap_get_pages mm/filemap.c:2511 [inline] filemap_read+0x3ed/0x1430 mm/filemap.c:2598 blkdev_read_iter+0xcb/0x350 block/fops.c:610 call_read_iter include/linux/fs.h:2080 [inline] new_sync_read fs/read_write.c:400 [inline] vfs_read+0x66c/0x750 fs/read_write.c:481 ksys_read+0xd9/0x190 fs/read_write.c:619 __do_sys_read fs/read_write.c:629 [inline] __se_sys_read fs/read_write.c:627 [inline] __x64_sys_read+0x3e/0x50 fs/read_write.c:627 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae value changed: 0xffff888101378570 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 2064 Comm: udevd Not tainted 5.16.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ================================================================== I/O error, dev loop1, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0 I/O error, dev loop1, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0 Buffer I/O error on dev loop1p3, logical block 0, async page read udevd[2064]: inotify_add_watch(7, /dev/loop1p3, 10) failed: No such file or directory udevd[2064]: inotify_add_watch(7, /dev/loop1p3, 10) failed: No such file or directory udevd[2064]: inotify_add_watch(7, /dev/loop1p3, 10) failed: No such file or directory I/O error, dev loop1, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0 udevd[2064]: inotify_add_watch(7, /dev/loop1p3, 10) failed: No such file or directory udevd[2064]: inotify_add_watch(7, /dev/loop1p3, 10) failed: No such file or directory