================================================================== BUG: KCSAN: data-race in __filemap_remove_folio / folio_mapping write to 0xffffea0004cc1ed8 of 8 bytes by task 2789 on cpu 1: 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 fat_fill_super+0xe95/0x2af0 fs/fat/inode.c:1646 msdos_fill_super+0x29/0x30 fs/fat/namei_msdos.c:655 mount_bdev+0x1e8/0x290 fs/super.c:1367 msdos_mount+0x2d/0x40 fs/fat/namei_msdos.c:662 legacy_get_tree+0x70/0xc0 fs/fs_context.c:610 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 0xffffea0004cc1ed8 of 8 bytes by task 2785 on cpu 0: 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:965 __filemap_get_folio+0x4c4/0x690 mm/filemap.c:2001 pagecache_get_page+0x26/0xe0 mm/folio-compat.c:125 grab_cache_page_write_begin+0x3f/0x50 mm/folio-compat.c:139 block_write_begin fs/buffer.c:2117 [inline] cont_write_begin+0x4ab/0x7e0 fs/buffer.c:2470 fat_write_begin+0x61/0xf0 fs/fat/inode.c:235 generic_perform_write+0x1c8/0x400 mm/filemap.c:3765 __generic_file_write_iter+0x195/0x2b0 mm/filemap.c:3860 generic_file_write_iter+0x75/0x130 mm/filemap.c:3924 call_write_iter include/linux/fs.h:2074 [inline] do_iter_readv_writev+0x2de/0x380 fs/read_write.c:725 do_iter_write+0x192/0x5c0 fs/read_write.c:851 vfs_iter_write+0x4c/0x70 fs/read_write.c:892 iter_file_splice_write+0x43a/0x790 fs/splice.c:689 do_splice_from fs/splice.c:767 [inline] direct_splice_actor+0x80/0xa0 fs/splice.c:936 splice_direct_to_actor+0x345/0x650 fs/splice.c:891 do_splice_direct+0x106/0x190 fs/splice.c:979 do_sendfile+0x675/0xc40 fs/read_write.c:1245 __do_sys_sendfile64 fs/read_write.c:1310 [inline] __se_sys_sendfile64 fs/read_write.c:1296 [inline] __x64_sys_sendfile64+0x102/0x140 fs/read_write.c:1296 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: 0xffff888101b82570 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 2785 Comm: syz-executor.3 Not tainted 5.17.0-rc3-syzkaller-00188-g1d41d2e82623-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ================================================================== syz-executor.3 (2785) used greatest stack depth: 10832 bytes left