================================================================== BUG: KCSAN: data-race in mem_cgroup_track_foreign_dirty_slowpath / mem_cgroup_track_foreign_dirty_slowpath write to 0xffff888117f3d770 of 8 bytes by task 756 on cpu 0: mem_cgroup_track_foreign_dirty_slowpath+0x3b3/0x440 mem_cgroup_track_foreign_dirty include/linux/memcontrol.h:1730 [inline] folio_account_dirtied mm/page-writeback.c:2683 [inline] __folio_mark_dirty+0x403/0x4e0 mm/page-writeback.c:2723 mark_buffer_dirty+0x148/0x250 fs/buffer.c:1200 __ext4_handle_dirty_metadata+0x1fa/0x470 fs/ext4/ext4_jbd2.c:384 ext4_quota_write+0x2a1/0x370 fs/ext4/super.c:7252 v2_write_file_info+0x175/0x220 fs/quota/quota_v2.c:218 dquot_commit_info+0x3f/0x50 fs/quota/dquot.c:2176 ext4_write_info+0x79/0xb0 fs/ext4/super.c:6937 dquot_set_dqinfo+0x29f/0x2c0 fs/quota/dquot.c:2898 quota_setinfo+0x1ef/0x200 fs/quota/quota.c:174 do_quotactl+0x4ea/0x6d0 fs/quota/quota.c:796 __do_sys_quotactl_fd fs/quota/quota.c:1002 [inline] __se_sys_quotactl_fd+0x278/0x410 fs/quota/quota.c:973 __x64_sys_quotactl_fd+0x55/0x70 fs/quota/quota.c:973 x64_sys_call+0x2721/0x2d30 arch/x86/include/generated/asm/syscalls_64.h:444 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffff888117f3d770 of 8 bytes by task 749 on cpu 1: mem_cgroup_track_foreign_dirty_slowpath+0xdb/0x440 mm/memcontrol.c:4890 mem_cgroup_track_foreign_dirty include/linux/memcontrol.h:1730 [inline] folio_account_dirtied mm/page-writeback.c:2683 [inline] __folio_mark_dirty+0x403/0x4e0 mm/page-writeback.c:2723 mark_buffer_dirty+0x148/0x250 fs/buffer.c:1200 __block_commit_write fs/buffer.c:2177 [inline] block_write_end+0x158/0x2e0 fs/buffer.c:2253 ext4_da_do_write_end fs/ext4/inode.c:2955 [inline] ext4_da_write_end+0x1ad/0x860 fs/ext4/inode.c:3028 generic_perform_write+0x276/0x410 mm/filemap.c:3985 ext4_buffered_write_iter+0x1f6/0x380 fs/ext4/file.c:299 ext4_file_write_iter+0x29f/0xe30 __kernel_write_iter+0x265/0x490 fs/read_write.c:523 dump_emit_page fs/coredump.c:890 [inline] dump_user_range+0x3a7/0x550 fs/coredump.c:951 elf_core_dump+0x1aa6/0x1bc0 fs/binfmt_elf.c:2077 do_coredump+0x1033/0x1890 fs/coredump.c:764 get_signal+0xdc1/0x1080 kernel/signal.c:2896 arch_do_signal_or_restart+0x95/0x4b0 arch/x86/kernel/signal.c:310 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] irqentry_exit_to_user_mode+0x94/0x130 kernel/entry/common.c:231 irqentry_exit+0x12/0x50 kernel/entry/common.c:334 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 value changed: 0x000000010001767b -> 0x00000001000176e6 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 749 Comm: syz-executor.4 Tainted: G W 6.9.0-rc5-syzkaller-00036-g9d1ddab261f3 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 ==================================================================