syzbot


KCSAN: data-race in mem_cgroup_track_foreign_dirty_slowpath / mem_cgroup_track_foreign_dirty_slowpath (5)

Status: auto-obsoleted due to no activity on 2024/08/02 02:51
Subsystems: fs mm
[Documentation on labels]
Reported-by: syzbot+6be51af9cf4d528bfd02@syzkaller.appspotmail.com
First crash: 98d, last: 98d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in mem_cgroup_track_foreign_dirty_slowpath / mem_cgroup_track_foreign_dirty_slowpath (3) fs mm 1 818d 818d 0/28 auto-closed as invalid on 2022/08/13 15:03
upstream KCSAN: data-race in mem_cgroup_track_foreign_dirty_slowpath / mem_cgroup_track_foreign_dirty_slowpath (4) fs mm 128 158d 302d 0/28 auto-obsoleted due to no activity on 2024/06/03 11:30
upstream KCSAN: data-race in mem_cgroup_track_foreign_dirty_slowpath / mem_cgroup_track_foreign_dirty_slowpath (2) fs mm 1 896d 896d 0/28 auto-closed as invalid on 2022/05/27 17:05
upstream KCSAN: data-race in mem_cgroup_track_foreign_dirty_slowpath / mem_cgroup_track_foreign_dirty_slowpath cgroups mm 1 1727d 1727d 0/28 auto-closed as invalid on 2020/03/22 09:49
upstream KCSAN: data-race in mem_cgroup_track_foreign_dirty_slowpath / mem_cgroup_track_foreign_dirty_slowpath (6) fs mm 1 17d 17d 0/28 moderation: reported on 2024/09/17 15:40

Sample crash report:
==================================================================
BUG: KCSAN: data-race in mem_cgroup_track_foreign_dirty_slowpath / mem_cgroup_track_foreign_dirty_slowpath

write to 0xffff888103101770 of 8 bytes by task 15865 on cpu 0:
 mem_cgroup_track_foreign_dirty_slowpath+0x3b3/0x440
 mem_cgroup_track_foreign_dirty include/linux/memcontrol.h:1695 [inline]
 folio_account_dirtied mm/page-writeback.c:2705 [inline]
 __folio_mark_dirty+0x3f5/0x4e0 mm/page-writeback.c:2748
 mark_buffer_dirty+0x148/0x250 fs/buffer.c:1207
 __block_commit_write fs/buffer.c:2200 [inline]
 block_write_end+0x158/0x2e0 fs/buffer.c:2276
 ext4_da_do_write_end fs/ext4/inode.c:2952 [inline]
 ext4_da_write_end+0x1ad/0x860 fs/ext4/inode.c:3025
 generic_perform_write+0x276/0x410 mm/filemap.c:4026
 ext4_buffered_write_iter+0x1f6/0x380 fs/ext4/file.c:299
 ext4_file_write_iter+0x29f/0xe30
 __kernel_write_iter+0x24f/0x4d0 fs/read_write.c:523
 dump_emit_page fs/coredump.c:893 [inline]
 dump_user_range+0x3a7/0x550 fs/coredump.c:954
 elf_core_dump+0x1aeb/0x1c30 fs/binfmt_elf.c:2083
 do_coredump+0xff6/0x1860 fs/coredump.c:767
 get_signal+0xdc1/0x1080 kernel/signal.c:2894
 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
 exc_general_protection+0x33d/0x4d0 arch/x86/kernel/traps.c:644
 asm_exc_general_protection+0x26/0x30 arch/x86/include/asm/idtentry.h:617

read to 0xffff888103101770 of 8 bytes by task 14696 on cpu 1:
 mem_cgroup_track_foreign_dirty_slowpath+0x2fc/0x440 mm/memcontrol.c:5111
 mem_cgroup_track_foreign_dirty include/linux/memcontrol.h:1695 [inline]
 folio_account_dirtied mm/page-writeback.c:2705 [inline]
 __folio_mark_dirty+0x3f5/0x4e0 mm/page-writeback.c:2748
 mark_buffer_dirty+0x148/0x250 fs/buffer.c:1207
 __block_commit_write fs/buffer.c:2200 [inline]
 block_write_end+0x158/0x2e0 fs/buffer.c:2276
 ext4_da_do_write_end fs/ext4/inode.c:2952 [inline]
 ext4_da_write_end+0x1ad/0x860 fs/ext4/inode.c:3025
 generic_perform_write+0x276/0x410 mm/filemap.c:4026
 ext4_buffered_write_iter+0x1f6/0x380 fs/ext4/file.c:299
 ext4_file_write_iter+0x29f/0xe30
 __kernel_write_iter+0x24f/0x4d0 fs/read_write.c:523
 dump_emit_page fs/coredump.c:893 [inline]
 dump_user_range+0x3a7/0x550 fs/coredump.c:954
 elf_core_dump+0x1aeb/0x1c30 fs/binfmt_elf.c:2083
 do_coredump+0xff6/0x1860 fs/coredump.c:767
 get_signal+0xdc1/0x1080 kernel/signal.c:2894
 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: 0x0000000100001d66 -> 0x0000000100001dce

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 14696 Comm: syz.4.3102 Tainted: G        W          6.10.0-rc5-syzkaller-00155-g66e55ff12e73 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/06/28 02:50 upstream 66e55ff12e73 6ef39602 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mem_cgroup_track_foreign_dirty_slowpath / mem_cgroup_track_foreign_dirty_slowpath
* Struck through repros no longer work on HEAD.