================================================================== BUG: KCSAN: data-race in ext4_ext_insert_extent / ext4_mark_iloc_dirty read to 0xffff888128f6d618 of 4 bytes by task 13452 on cpu 0: ext4_do_update_inode fs/ext4/inode.c:4968 [inline] ext4_mark_iloc_dirty+0xa32/0x1580 fs/ext4/inode.c:5547 ext4_mark_inode_dirty+0xe9/0x420 fs/ext4/inode.c:5740 ext4_dirty_inode+0xb1/0xe0 fs/ext4/inode.c:5771 __mark_inode_dirty+0x5d4/0x940 fs/fs-writeback.c:2258 mark_inode_dirty include/linux/fs.h:2172 [inline] generic_write_end+0x1b7/0x1f0 fs/buffer.c:2199 ext4_da_write_end+0x158/0x620 fs/ext4/inode.c:3091 generic_perform_write+0x1d3/0x320 mm/filemap.c:3320 ext4_buffered_write_iter+0x143/0x290 fs/ext4/file.c:252 ext4_file_write_iter+0xf4/0xd40 fs/ext4/file.c:547 call_write_iter include/linux/fs.h:1902 [inline] do_iter_readv_writev+0x487/0x5b0 fs/read_write.c:693 do_iter_write fs/read_write.c:970 [inline] do_iter_write+0x13b/0x3c0 fs/read_write.c:951 vfs_iter_write+0x5c/0x80 fs/read_write.c:983 ovl_write_iter+0x366/0x550 fs/overlayfs/file.c:278 call_write_iter include/linux/fs.h:1902 [inline] new_sync_write+0x388/0x4a0 fs/read_write.c:483 __vfs_write+0xb1/0xc0 fs/read_write.c:496 __kernel_write+0xb8/0x240 fs/read_write.c:515 write_pipe_buf+0xb6/0xf0 fs/splice.c:809 splice_from_pipe_feed fs/splice.c:512 [inline] __splice_from_pipe+0x295/0x4a0 fs/splice.c:636 splice_from_pipe+0xbb/0x100 fs/splice.c:671 default_file_splice_write+0x45/0x90 fs/splice.c:821 do_splice_from fs/splice.c:863 [inline] direct_splice_actor+0xa0/0xc0 fs/splice.c:1037 splice_direct_to_actor+0x22b/0x540 fs/splice.c:992 do_splice_direct+0x161/0x1e0 fs/splice.c:1080 do_sendfile+0x384/0x7f0 fs/read_write.c:1464 __do_sys_sendfile64 fs/read_write.c:1525 [inline] __se_sys_sendfile64 fs/read_write.c:1511 [inline] __x64_sys_sendfile64+0x12a/0x140 fs/read_write.c:1511 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x44/0xa9 write to 0xffff888128f6d618 of 4 bytes by task 8917 on cpu 1: ext4_ext_insert_extent+0x8e5/0x25c0 fs/ext4/extents.c:2152 ext4_ext_map_blocks+0xc52/0x2320 fs/ext4/extents.c:4507 ext4_map_blocks+0x23a/0xff0 fs/ext4/inode.c:623 mpage_map_one_extent fs/ext4/inode.c:2366 [inline] mpage_map_and_submit_extent fs/ext4/inode.c:2419 [inline] ext4_writepages+0x135e/0x2500 fs/ext4/inode.c:2771 do_writepages+0x6b/0x170 mm/page-writeback.c:2344 __writeback_single_inode+0xaf/0x8e0 fs/fs-writeback.c:1452 writeback_sb_inodes+0x4ba/0xa50 fs/fs-writeback.c:1716 wb_writeback+0x1f9/0x6a0 fs/fs-writeback.c:1892 wb_do_writeback fs/fs-writeback.c:2037 [inline] wb_workfn+0x22e/0x970 fs/fs-writeback.c:2078 process_one_work+0x3d4/0x890 kernel/workqueue.c:2264 worker_thread+0xa0/0x800 kernel/workqueue.c:2410 kthread+0x1d4/0x200 drivers/block/aoe/aoecmd.c:1253 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 8917 Comm: kworker/u4:6 Not tainted 5.5.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: writeback wb_workfn (flush-8:0) ==================================================================