================================================================== BUG: KCSAN: data-race in mem_cgroup_track_foreign_dirty_slowpath / mem_cgroup_track_foreign_dirty_slowpath write to 0xffff88811b380770 of 8 bytes by task 6970 on cpu 1: mem_cgroup_track_foreign_dirty_slowpath+0x3b3/0x440 mem_cgroup_track_foreign_dirty include/linux/memcontrol.h:1731 [inline] folio_account_dirtied mm/page-writeback.c:2629 [inline] __folio_mark_dirty+0x3fe/0x4e0 mm/page-writeback.c:2669 mark_buffer_dirty+0x148/0x250 fs/buffer.c:1200 __block_commit_write fs/buffer.c:2175 [inline] block_write_end+0x158/0x2e0 fs/buffer.c:2251 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+0x267/0x410 mm/filemap.c:3941 ext4_buffered_write_iter+0x1f6/0x370 fs/ext4/file.c:299 ext4_file_write_iter+0x297/0xe10 __kernel_write_iter+0x25f/0x480 fs/read_write.c:523 dump_emit_page fs/coredump.c:888 [inline] dump_user_range+0x25d/0x480 fs/coredump.c:915 elf_core_dump+0x1a8e/0x1bb0 fs/binfmt_elf.c:2077 do_coredump+0x102a/0x1890 fs/coredump.c:764 get_signal+0xdb5/0x10a0 kernel/signal.c:2879 arch_do_signal_or_restart+0x95/0x4b0 arch/x86/kernel/signal.c:310 exit_to_user_mode_loop kernel/entry/common.c:105 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] irqentry_exit_to_user_mode+0x9c/0x130 kernel/entry/common.c:225 irqentry_exit+0x12/0x40 kernel/entry/common.c:328 exc_general_protection+0x33b/0x4c0 arch/x86/kernel/traps.c:643 asm_exc_general_protection+0x26/0x30 arch/x86/include/asm/idtentry.h:564 read to 0xffff88811b380770 of 8 bytes by task 6984 on cpu 0: mem_cgroup_track_foreign_dirty_slowpath+0x2fc/0x440 mm/memcontrol.c:4901 mem_cgroup_track_foreign_dirty include/linux/memcontrol.h:1731 [inline] folio_account_dirtied mm/page-writeback.c:2629 [inline] __folio_mark_dirty+0x3fe/0x4e0 mm/page-writeback.c:2669 mark_buffer_dirty+0x148/0x250 fs/buffer.c:1200 __block_commit_write fs/buffer.c:2175 [inline] block_write_end+0x158/0x2e0 fs/buffer.c:2251 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+0x267/0x410 mm/filemap.c:3941 ext4_buffered_write_iter+0x1f6/0x370 fs/ext4/file.c:299 ext4_file_write_iter+0x297/0xe10 __kernel_write_iter+0x25f/0x480 fs/read_write.c:523 dump_emit_page fs/coredump.c:888 [inline] dump_user_range+0x25d/0x480 fs/coredump.c:915 elf_core_dump+0x1a8e/0x1bb0 fs/binfmt_elf.c:2077 do_coredump+0x102a/0x1890 fs/coredump.c:764 get_signal+0xdb5/0x10a0 kernel/signal.c:2879 arch_do_signal_or_restart+0x95/0x4b0 arch/x86/kernel/signal.c:310 exit_to_user_mode_loop kernel/entry/common.c:105 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] irqentry_exit_to_user_mode+0x9c/0x130 kernel/entry/common.c:225 irqentry_exit+0x12/0x40 kernel/entry/common.c:328 exc_general_protection+0x33b/0x4c0 arch/x86/kernel/traps.c:643 asm_exc_general_protection+0x26/0x30 arch/x86/include/asm/idtentry.h:564 value changed: 0x0000000100008cb2 -> 0x0000000100008d17 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 6984 Comm: syz-executor.2 Not tainted 6.8.0-rc3-syzkaller-00293-ga5b6244cf87c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 ================================================================== syz-executor.2 (6984) used greatest stack depth: 10024 bytes left