================================================================== BUG: KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty write to 0xffff888105f33cd0 of 8 bytes by task 7559 on cpu 1: __mark_inode_dirty+0x1c4/0x6a0 fs/fs-writeback.c:2433 mark_inode_dirty include/linux/fs.h:2452 [inline] dquot_alloc_space include/linux/quotaops.h:317 [inline] dquot_alloc_block include/linux/quotaops.h:334 [inline] ext4_mb_new_blocks+0x119b/0x1fc0 fs/ext4/mballoc.c:5548 ext4_ext_map_blocks+0x15ed/0x1ff0 fs/ext4/extents.c:4250 ext4_map_blocks+0x71e/0xf00 fs/ext4/inode.c:637 ext4_iomap_alloc fs/ext4/inode.c:3432 [inline] ext4_iomap_begin+0x4b0/0x630 fs/ext4/inode.c:3482 iomap_iter+0x39c/0x470 fs/iomap/iter.c:74 __iomap_dio_rw+0x698/0x1010 fs/iomap/direct-io.c:568 iomap_dio_rw+0x30/0x70 fs/iomap/direct-io.c:649 ext4_dio_write_iter fs/ext4/file.c:568 [inline] ext4_file_write_iter+0xaa9/0x11f0 fs/ext4/file.c:678 call_write_iter include/linux/fs.h:2163 [inline] do_iter_readv_writev+0x2de/0x380 fs/read_write.c:729 do_iter_write+0x192/0x5c0 fs/read_write.c:855 vfs_iter_write+0x4c/0x70 fs/read_write.c:896 iter_file_splice_write+0x43a/0x790 fs/splice.c:689 do_splice_from fs/splice.c:767 [inline] direct_splice_actor+0x80/0xa0 fs/splice.c:936 splice_direct_to_actor+0x345/0x650 fs/splice.c:891 do_splice_direct+0x106/0x190 fs/splice.c:979 do_sendfile+0x63e/0xbb0 fs/read_write.c:1249 __do_sys_sendfile64 fs/read_write.c:1314 [inline] __se_sys_sendfile64 fs/read_write.c:1300 [inline] __x64_sys_sendfile64+0x102/0x140 fs/read_write.c:1300 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffff888105f33cd0 of 8 bytes by task 7572 on cpu 0: __mark_inode_dirty+0xda/0x6a0 fs/fs-writeback.c:2419 mark_buffer_dirty+0x143/0x200 fs/buffer.c:1112 __block_commit_write fs/buffer.c:2083 [inline] block_commit_write fs/buffer.c:2476 [inline] block_page_mkwrite+0x26d/0x320 fs/buffer.c:2525 ext4_page_mkwrite+0x704/0xec0 fs/ext4/inode.c:6105 do_page_mkwrite mm/memory.c:2870 [inline] do_shared_fault mm/memory.c:4237 [inline] do_fault mm/memory.c:4305 [inline] handle_pte_fault mm/memory.c:4559 [inline] __handle_mm_fault mm/memory.c:4694 [inline] handle_mm_fault+0xd9c/0x1580 mm/memory.c:4792 do_user_addr_fault+0x609/0xbe0 arch/x86/mm/fault.c:1397 handle_page_fault arch/x86/mm/fault.c:1485 [inline] exc_page_fault+0x91/0x220 arch/x86/mm/fault.c:1541 asm_exc_page_fault+0x1e/0x30 copy_user_enhanced_fast_string+0xe/0x40 copy_user_generic arch/x86/include/asm/uaccess_64.h:37 [inline] raw_copy_to_user arch/x86/include/asm/uaccess_64.h:58 [inline] copyout lib/iov_iter.c:157 [inline] copy_page_to_iter_iovec lib/iov_iter.c:228 [inline] __copy_page_to_iter lib/iov_iter.c:805 [inline] copy_page_to_iter+0x2d9/0x950 lib/iov_iter.c:833 filemap_read+0xee6/0x1220 mm/filemap.c:2683 generic_file_read_iter+0x75/0x2c0 mm/filemap.c:2779 ext4_file_read_iter+0x1db/0x290 call_read_iter include/linux/fs.h:2157 [inline] new_sync_read fs/read_write.c:404 [inline] vfs_read+0x66c/0x750 fs/read_write.c:485 ksys_read+0xd9/0x190 fs/read_write.c:623 __do_sys_read fs/read_write.c:633 [inline] __se_sys_read fs/read_write.c:631 [inline] __x64_sys_read+0x3e/0x50 fs/read_write.c:631 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae value changed: 0x0000000000000004 -> 0x0000000000000007 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 7572 Comm: syz-executor.3 Not tainted 5.15.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================