================================================================== BUG: KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty read to 0xffff88812578599c of 4 bytes by task 32480 on cpu 1: ext4_do_update_inode fs/ext4/inode.c:5304 [inline] ext4_mark_iloc_dirty+0xa32/0x1580 fs/ext4/inode.c:5876 ext4_mark_inode_dirty+0xe9/0x420 fs/ext4/inode.c:6055 ext4_dirty_inode+0x86/0xb0 fs/ext4/inode.c:6086 __mark_inode_dirty+0x5d4/0x940 fs/fs-writeback.c:2258 mark_inode_dirty include/linux/fs.h:2165 [inline] generic_write_end+0x1b7/0x1f0 fs/buffer.c:2159 ext4_da_write_end+0x158/0x620 fs/ext4/inode.c:3189 generic_perform_write+0x1d3/0x320 mm/filemap.c:3316 __generic_file_write_iter+0x251/0x380 mm/filemap.c:3434 ext4_file_write_iter+0x1bd/0xa00 fs/ext4/file.c:268 call_write_iter include/linux/fs.h:1895 [inline] new_sync_write+0x388/0x4a0 fs/read_write.c:483 __vfs_write+0xb1/0xc0 fs/read_write.c:496 vfs_write fs/read_write.c:558 [inline] vfs_write+0x18a/0x390 fs/read_write.c:542 ksys_write+0xd5/0x1b0 fs/read_write.c:611 __do_sys_write fs/read_write.c:623 [inline] __se_sys_write fs/read_write.c:620 [inline] __x64_sys_write+0x4c/0x60 fs/read_write.c:620 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 write to 0xffff88812578599e of 2 bytes by task 32485 on cpu 0: ext4_ext_store_pblock fs/ext4/ext4_extents.h:253 [inline] ext4_ext_insert_extent+0x928/0x25c0 fs/ext4/extents.c:2147 ext4_ext_map_blocks+0xc5c/0x2330 fs/ext4/extents.c:4486 ext4_map_blocks+0x23a/0xfa0 fs/ext4/inode.c:640 mpage_map_one_extent fs/ext4/inode.c:2468 [inline] mpage_map_and_submit_extent fs/ext4/inode.c:2517 [inline] ext4_writepages+0x136e/0x2300 fs/ext4/inode.c:2869 do_writepages+0x6b/0x170 mm/page-writeback.c:2344 __filemap_fdatawrite_range+0x1c5/0x230 mm/filemap.c:421 __filemap_fdatawrite mm/filemap.c:429 [inline] filemap_flush+0x2d/0x40 mm/filemap.c:456 ext4_alloc_da_blocks+0x78/0x180 fs/ext4/inode.c:3243 ext4_ioctl+0xf62/0x31f0 fs/ext4/ioctl.c:1045 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:509 [inline] do_vfs_ioctl+0x991/0xc60 fs/ioctl.c:696 ksys_ioctl+0xbd/0xe0 fs/ioctl.c:713 __do_sys_ioctl fs/ioctl.c:720 [inline] __se_sys_ioctl fs/ioctl.c:718 [inline] __x64_sys_ioctl+0x4c/0x60 fs/ioctl.c:718 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 32485 Comm: syz-executor.2 Not tainted 5.4.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================