syzbot


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

Status: auto-closed as invalid on 2022/05/27 17:05
Subsystems: fs mm
[Documentation on labels]
First crash: 895d, last: 895d
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 (5) fs mm 1 97d 97d 0/28 auto-obsoleted due to no activity on 2024/08/02 02:51
upstream KCSAN: data-race in mem_cgroup_track_foreign_dirty_slowpath / mem_cgroup_track_foreign_dirty_slowpath (3) fs mm 1 817d 817d 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 157d 300d 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 cgroups mm 1 1726d 1726d 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 16d 16d 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 0xffff88812a063d70 of 8 bytes by task 1405 on cpu 1:
 mem_cgroup_track_foreign_dirty_slowpath+0x3ac/0x430
 mem_cgroup_track_foreign_dirty include/linux/memcontrol.h:1606 [inline]
 folio_account_dirtied+0x438/0x450 mm/page-writeback.c:2459
 __folio_mark_dirty+0x8e/0x130 mm/page-writeback.c:2499
 __set_page_dirty include/linux/pagemap.h:1008 [inline]
 mark_buffer_dirty+0x159/0x390 fs/buffer.c:1105
 __jbd2_journal_unfile_buffer fs/jbd2/transaction.c:2066 [inline]
 __jbd2_journal_refile_buffer+0x149/0x190 fs/jbd2/transaction.c:2594
 jbd2_journal_commit_transaction+0x1a85/0x2480 fs/jbd2/commit.c:1071
 kjournald2+0x1af/0x370 fs/jbd2/journal.c:213
 kthread+0x1a9/0x1e0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30

read to 0xffff88812a063d70 of 8 bytes by task 2689 on cpu 0:
 mem_cgroup_track_foreign_dirty_slowpath+0xd4/0x430 mm/memcontrol.c:4512
 mem_cgroup_track_foreign_dirty include/linux/memcontrol.h:1606 [inline]
 folio_account_dirtied+0x438/0x450 mm/page-writeback.c:2459
 __folio_mark_dirty+0x8e/0x130 mm/page-writeback.c:2499
 __set_page_dirty include/linux/pagemap.h:1008 [inline]
 mark_buffer_dirty+0x159/0x390 fs/buffer.c:1105
 __block_commit_write fs/buffer.c:2080 [inline]
 block_write_end+0x13d/0x240 fs/buffer.c:2159
 generic_write_end+0x5d/0x230 fs/buffer.c:2173
 fat_write_end+0x4a/0x150 fs/fat/inode.c:249
 generic_perform_write+0x26a/0x3f0 mm/filemap.c:3798
 __generic_file_write_iter+0xe3/0x280 mm/filemap.c:3915
 generic_file_write_iter+0x75/0x130 mm/filemap.c:3947
 do_iter_readv_writev+0x27b/0x300
 do_iter_write+0x16f/0x5c0 fs/read_write.c:852
 vfs_iter_write+0x4c/0x70 fs/read_write.c:893
 iter_file_splice_write+0x44a/0x7c0 fs/splice.c:689
 do_splice_from fs/splice.c:767 [inline]
 direct_splice_actor+0x80/0xa0 fs/splice.c:936
 splice_direct_to_actor+0x345/0x660 fs/splice.c:891
 do_splice_direct+0xfb/0x180 fs/splice.c:979
 do_sendfile+0x3ad/0x900 fs/read_write.c:1246
 __do_sys_sendfile64 fs/read_write.c:1305 [inline]
 __se_sys_sendfile64 fs/read_write.c:1297 [inline]
 __x64_sys_sendfile64+0xb9/0x150 fs/read_write.c:1297
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x00000000ffffa663 -> 0x00000000ffffa90f

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 2689 Comm: syz-executor.1 Not tainted 5.18.0-rc3-syzkaller-00080-gd569e86915b7-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/04/22 17:02 upstream d569e86915b7 131df97d .config console log report info 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.