================================================================== BUG: KCSAN: data-race in fat_bmap / generic_write_end write to 0xffff8881066d3470 of 8 bytes by task 4935 on cpu 0: i_size_write include/linux/fs.h:932 [inline] generic_write_end+0x94/0x230 fs/buffer.c:2292 fat_write_end+0x4e/0x160 fs/fat/inode.c:244 generic_perform_write+0x267/0x410 mm/filemap.c:3980 __generic_file_write_iter+0xa1/0x120 mm/filemap.c:4064 generic_file_write_iter+0x7d/0x1c0 mm/filemap.c:4090 do_iter_write+0x4b4/0x7b0 fs/read_write.c:860 vfs_iter_write+0x56/0x70 fs/read_write.c:901 iter_file_splice_write+0x462/0x7e0 fs/splice.c:736 do_splice_from fs/splice.c:933 [inline] direct_splice_actor+0x8a/0xb0 fs/splice.c:1142 splice_direct_to_actor+0x31d/0x690 fs/splice.c:1088 do_splice_direct+0x10d/0x190 fs/splice.c:1194 do_sendfile+0x3b6/0x9a0 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 read to 0xffff8881066d3470 of 8 bytes by task 4919 on cpu 1: i_size_read include/linux/fs.h:910 [inline] is_exceed_eof fs/fat/cache.c:340 [inline] fat_bmap+0x1d2/0x290 fs/fat/cache.c:375 __fat_get_block fs/fat/inode.c:129 [inline] fat_get_block+0xd1/0x5e0 fs/fat/inode.c:190 do_mpage_readpage+0x478/0xd90 fs/mpage.c:234 mpage_readahead+0x1ad/0x2d0 fs/mpage.c:382 fat_readahead+0x1c/0x20 fs/fat/inode.c:210 read_pages+0x9f/0x530 mm/readahead.c:160 page_cache_ra_unbounded+0x2aa/0x2e0 mm/readahead.c:269 do_page_cache_ra mm/readahead.c:299 [inline] page_cache_ra_order+0xd5/0xf0 mm/readahead.c:546 do_sync_mmap_readahead+0x410/0x450 mm/filemap.c:3199 filemap_fault+0x3e6/0xbf0 mm/filemap.c:3291 __do_fault mm/memory.c:4204 [inline] do_shared_fault mm/memory.c:4635 [inline] do_fault mm/memory.c:4709 [inline] do_pte_missing mm/memory.c:3669 [inline] handle_pte_fault mm/memory.c:4978 [inline] __handle_mm_fault mm/memory.c:5119 [inline] handle_mm_fault+0x170f/0x2cc0 mm/memory.c:5284 do_user_addr_fault arch/x86/mm/fault.c:1413 [inline] handle_page_fault arch/x86/mm/fault.c:1505 [inline] exc_page_fault+0x2f7/0x6c0 arch/x86/mm/fault.c:1561 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570 value changed: 0x00000000000fa000 -> 0x00000000000fa632 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 4919 Comm: syz-executor.2 Not tainted 6.6.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023 ==================================================================