================================================================== BUG: KCSAN: data-race in mem_cgroup_track_foreign_dirty_slowpath / mem_cgroup_track_foreign_dirty_slowpath read to 0xffff88813cd80770 of 8 bytes by task 15893 on cpu 1: mem_cgroup_track_foreign_dirty_slowpath+0x2fc/0x440 mm/memcontrol.c:4860 mem_cgroup_track_foreign_dirty include/linux/memcontrol.h:1710 [inline] folio_account_dirtied mm/page-writeback.c:2629 [inline] __folio_mark_dirty+0x3fc/0x4e0 mm/page-writeback.c:2669 mark_buffer_dirty+0x148/0x240 fs/buffer.c:1200 __block_commit_write fs/buffer.c:2191 [inline] block_write_end+0x158/0x2e0 fs/buffer.c:2267 ext4_da_do_write_end fs/ext4/inode.c:2961 [inline] ext4_da_write_end+0x1fc/0x9c0 fs/ext4/inode.c:3033 generic_perform_write+0x267/0x410 mm/filemap.c:3938 ext4_buffered_write_iter+0x1f6/0x370 fs/ext4/file.c:299 ext4_file_write_iter+0x297/0xe10 __kernel_write_iter+0x162/0x390 fs/read_write.c:517 dump_emit_page fs/coredump.c:888 [inline] dump_user_range+0x25d/0x480 fs/coredump.c:915 elf_core_dump+0x1a85/0x1ba0 fs/binfmt_elf.c:2077 do_coredump+0x102a/0x1890 fs/coredump.c:764 get_signal+0xdb5/0x10a0 kernel/signal.c:2890 arch_do_signal_or_restart+0x95/0x4b0 arch/x86/kernel/signal.c:309 exit_to_user_mode_loop+0x6f/0xe0 kernel/entry/common.c:168 exit_to_user_mode_prepare+0x6c/0xb0 kernel/entry/common.c:204 irqentry_exit_to_user_mode+0x9/0x20 kernel/entry/common.c:309 irqentry_exit+0x12/0x40 kernel/entry/common.c:412 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570 write to 0xffff88813cd80770 of 8 bytes by task 15951 on cpu 0: mem_cgroup_track_foreign_dirty_slowpath+0x3b3/0x440 mem_cgroup_track_foreign_dirty include/linux/memcontrol.h:1710 [inline] folio_account_dirtied mm/page-writeback.c:2629 [inline] __folio_mark_dirty+0x3fc/0x4e0 mm/page-writeback.c:2669 mark_buffer_dirty+0x148/0x240 fs/buffer.c:1200 __block_commit_write fs/buffer.c:2191 [inline] block_write_end+0x158/0x2e0 fs/buffer.c:2267 ext4_da_do_write_end fs/ext4/inode.c:2961 [inline] ext4_da_write_end+0x1fc/0x9c0 fs/ext4/inode.c:3033 generic_perform_write+0x267/0x410 mm/filemap.c:3938 ext4_buffered_write_iter+0x1f6/0x370 fs/ext4/file.c:299 ext4_file_write_iter+0x297/0xe10 __kernel_write_iter+0x162/0x390 fs/read_write.c:517 dump_emit_page fs/coredump.c:888 [inline] dump_user_range+0x25d/0x480 fs/coredump.c:915 elf_core_dump+0x1a85/0x1ba0 fs/binfmt_elf.c:2077 do_coredump+0x102a/0x1890 fs/coredump.c:764 get_signal+0xdb5/0x10a0 kernel/signal.c:2890 arch_do_signal_or_restart+0x95/0x4b0 arch/x86/kernel/signal.c:309 exit_to_user_mode_loop+0x6f/0xe0 kernel/entry/common.c:168 exit_to_user_mode_prepare+0x6c/0xb0 kernel/entry/common.c:204 irqentry_exit_to_user_mode+0x9/0x20 kernel/entry/common.c:309 irqentry_exit+0x12/0x40 kernel/entry/common.c:412 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570 value changed: 0x0000000100029252 -> 0x00000001000292b9 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 15951 Comm: syz-executor.1 Not tainted 6.7.0-rc8-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 ==================================================================