loop1: detected capacity change from 0 to 8192 ================================================================== BUG: KCSAN: data-race in block_read_full_folio / truncate_setsize read-write to 0xffff88813b86b428 of 8 bytes by task 10862 on cpu 0: i_size_write include/linux/fs.h:905 [inline] truncate_setsize+0x21/0xb0 mm/truncate.c:766 fat_setattr+0x71f/0x840 fs/fat/file.c:550 notify_change+0x8c3/0x930 fs/attr.c:483 do_truncate+0x116/0x150 fs/open.c:66 handle_truncate fs/namei.c:3295 [inline] do_open fs/namei.c:3640 [inline] path_openat+0x1984/0x1d00 fs/namei.c:3791 do_filp_open+0xf6/0x200 fs/namei.c:3818 do_sys_openat2+0xb5/0x2a0 fs/open.c:1356 do_sys_open fs/open.c:1372 [inline] __do_sys_creat fs/open.c:1448 [inline] __se_sys_creat fs/open.c:1442 [inline] __x64_sys_creat+0x66/0x90 fs/open.c:1442 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd read to 0xffff88813b86b428 of 8 bytes by task 10854 on cpu 1: i_size_read include/linux/fs.h:883 [inline] block_read_full_folio+0x6f/0x720 fs/buffer.c:2321 do_mpage_readpage+0xc93/0xdf0 fs/mpage.c:325 mpage_read_folio+0x5b/0xd0 fs/mpage.c:400 fat_read_folio+0x1c/0x20 fs/fat/inode.c:205 filemap_read_folio mm/filemap.c:2421 [inline] filemap_update_page mm/filemap.c:2505 [inline] filemap_get_pages+0xc14/0xea0 mm/filemap.c:2619 filemap_read+0x223/0x680 mm/filemap.c:2690 generic_file_read_iter+0x76/0x320 mm/filemap.c:2837 call_read_iter include/linux/fs.h:1862 [inline] generic_file_splice_read+0xe3/0x290 fs/splice.c:419 do_splice_to fs/splice.c:902 [inline] splice_direct_to_actor+0x25a/0x5f0 fs/splice.c:973 do_splice_direct+0x104/0x180 fs/splice.c:1082 do_sendfile+0x3b8/0x950 fs/read_write.c:1254 __do_sys_sendfile64 fs/read_write.c:1322 [inline] __se_sys_sendfile64 fs/read_write.c:1308 [inline] __x64_sys_sendfile64+0x110/0x150 fs/read_write.c:1308 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd value changed: 0x00000000001a6775 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 10854 Comm: syz-executor.1 Not tainted 6.4.0-rc4-syzkaller-00047-gafead42fdfca #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 ==================================================================