================================================================== BUG: KCSAN: data-race in __filemap_remove_folio / folio_mapping write to 0xffffea00052e1298 of 8 bytes by task 21067 on cpu 0: page_cache_delete mm/filemap.c:143 [inline] __filemap_remove_folio+0x1b7/0x2c0 mm/filemap.c:219 filemap_remove_folio+0x69/0x210 mm/filemap.c:251 truncate_inode_folio+0x14c/0x160 mm/truncate.c:223 truncate_inode_pages_range+0x6a2/0x8b0 mm/truncate.c:435 truncate_inode_pages+0x20/0x30 mm/truncate.c:461 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 __ext4_fill_super+0x10e/0x59b0 fs/ext4/super.c:4380 ext4_fill_super+0x10b/0x2f0 fs/ext4/super.c:5554 get_tree_bdev+0x2c2/0x3d0 fs/super.c:1292 vfs_get_tree+0x4a/0x1a0 fs/super.c:1497 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 0xffffea00052e1298 of 8 bytes by task 2255 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 lru_cache_add+0x37/0x50 mm/folio-compat.c:108 shmem_getpage_gfp+0xc00/0x12c0 mm/shmem.c:1907 shmem_getpage mm/shmem.c:149 [inline] shmem_write_begin+0x7e/0x100 mm/shmem.c:2437 generic_perform_write+0x1c8/0x400 mm/filemap.c:3765 __generic_file_write_iter+0xf7/0x2b0 mm/filemap.c:3892 generic_file_write_iter+0x75/0x130 mm/filemap.c:3924 call_write_iter include/linux/fs.h:2074 [inline] new_sync_write fs/read_write.c:503 [inline] vfs_write+0x7f5/0x950 fs/read_write.c:590 ksys_write+0xd9/0x190 fs/read_write.c:643 __do_sys_write fs/read_write.c:655 [inline] __se_sys_write fs/read_write.c:652 [inline] __x64_sys_write+0x3e/0x50 fs/read_write.c:652 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: 0xffff888101b83b70 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 2255 Comm: udevd Not tainted 5.17.0-rc4-syzkaller-00052-g359303076163-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================