================================================================== BUG: KCSAN: data-race in mem_cgroup_track_foreign_dirty_slowpath / mem_cgroup_track_foreign_dirty_slowpath write to 0xffff88811c82d770 of 8 bytes by task 31262 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+0x8f/0x120 kernel/entry/common.c:225 irqentry_exit+0x12/0x40 kernel/entry/common.c:328 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570 read to 0xffff88811c82d770 of 8 bytes by task 31231 on cpu 0: mem_cgroup_track_foreign_dirty_slowpath+0x2fc/0x440 mm/memcontrol.c:4906 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+0x8f/0x120 kernel/entry/common.c:225 irqentry_exit+0x12/0x40 kernel/entry/common.c:328 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570 value changed: 0x0000000100035670 -> 0x000000010003576a Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 31231 Comm: syz-executor.4 Not tainted 6.8.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 ==================================================================