================================================================== BUG: KCSAN: data-race in copy_page_to_iter / fat12_ent_put write to 0xffff888135c53412 of 1 bytes by task 26038 on cpu 0: fat12_ent_put+0x76/0x1b0 fs/fat/fatent.c:166 fat_alloc_clusters+0x430/0xa50 fs/fat/fatent.c:501 fat_add_cluster fs/fat/inode.c:108 [inline] __fat_get_block fs/fat/inode.c:155 [inline] fat_get_block+0x213/0x5a0 fs/fat/inode.c:190 __block_write_begin_int+0x4a2/0x1060 fs/buffer.c:2031 __block_write_begin fs/buffer.c:2081 [inline] block_write_begin fs/buffer.c:2141 [inline] cont_write_begin+0x522/0x850 fs/buffer.c:2490 fat_write_begin+0x61/0xf0 fs/fat/inode.c:235 pagecache_write_begin+0x54/0x70 mm/filemap.c:3479 cont_expand_zero fs/buffer.c:2417 [inline] cont_write_begin+0x164/0x850 fs/buffer.c:2480 fat_write_begin+0x61/0xf0 fs/fat/inode.c:235 pagecache_write_begin+0x54/0x70 mm/filemap.c:3479 generic_cont_expand_simple+0x6d/0x100 fs/buffer.c:2381 fat_cont_expand+0x3a/0x160 fs/fat/file.c:222 fat_setattr+0x267/0x7d0 fs/fat/file.c:503 notify_change+0x8a3/0xa80 fs/attr.c:398 do_truncate fs/open.c:64 [inline] do_sys_ftruncate+0x405/0x4c0 fs/open.c:196 __do_sys_ftruncate fs/open.c:207 [inline] __se_sys_ftruncate fs/open.c:205 [inline] __x64_sys_ftruncate+0x2f/0x40 fs/open.c:205 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffff888135c53000 of 1377 bytes by task 26036 on cpu 1: instrument_copy_to_user include/linux/instrumented.h:119 [inline] copyout lib/iov_iter.c:189 [inline] copy_page_to_iter_iovec lib/iov_iter.c:261 [inline] copy_page_to_iter+0x320/0x860 lib/iov_iter.c:973 filemap_read+0xf06/0x1230 mm/filemap.c:2605 generic_file_read_iter+0x75/0x2c0 mm/filemap.c:2701 blkdev_read_iter+0xb9/0xf0 fs/block_dev.c:1730 call_read_iter include/linux/fs.h:2108 [inline] new_sync_read fs/read_write.c:415 [inline] vfs_read+0x565/0x5d0 fs/read_write.c:496 ksys_read+0xce/0x180 fs/read_write.c:634 __do_sys_read fs/read_write.c:644 [inline] __se_sys_read fs/read_write.c:642 [inline] __x64_sys_read+0x3e/0x50 fs/read_write.c:642 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47 entry_SYSCALL_64_after_hwframe+0x44/0xae Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 26036 Comm: systemd-udevd Not tainted 5.13.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================