syzbot


KCSAN: data-race in mem_cgroup_track_foreign_dirty_slowpath / mem_cgroup_track_foreign_dirty_slowpath

Status: auto-closed as invalid on 2020/03/22 09:49
Subsystems: cgroups mm
[Documentation on labels]
First crash: 1553d, last: 1553d
Similar bugs (3)
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 643d 643d 0/26 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 124 3d11h 127d 0/26 moderation: reported on 2023/12/08 00:09
upstream KCSAN: data-race in mem_cgroup_track_foreign_dirty_slowpath / mem_cgroup_track_foreign_dirty_slowpath (2) fs mm 1 721d 721d 0/26 auto-closed as invalid on 2022/05/27 17:05

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

write to 0xffff8880a039ea48 of 8 bytes by task 25546 on cpu 1:
 mem_cgroup_track_foreign_dirty_slowpath+0x247/0x330 mm/memcontrol.c:4371
 mem_cgroup_track_foreign_dirty include/linux/memcontrol.h:1292 [inline]
 account_page_dirtied+0x46d/0x4a0 mm/page-writeback.c:2433
 __set_page_dirty+0x8a/0x270 fs/buffer.c:623
 mark_buffer_dirty+0x27f/0x2c0 fs/buffer.c:1152
 __ext4_handle_dirty_metadata+0x284/0x3e0 fs/ext4/ext4_jbd2.c:314
 ext4_do_update_inode fs/ext4/inode.c:4998 [inline]
 ext4_mark_iloc_dirty+0xdb3/0x1580 fs/ext4/inode.c:5547
 ext4_mark_inode_dirty+0xe9/0x420 fs/ext4/inode.c:5740
 ext4_dirty_inode+0xb1/0xe0 fs/ext4/inode.c:5771
 __mark_inode_dirty+0x5d4/0x940 fs/fs-writeback.c:2258
 mark_inode_dirty include/linux/fs.h:2172 [inline]
 generic_write_end+0x1b7/0x1f0 fs/buffer.c:2199
 ext4_da_write_end+0x158/0x620 fs/ext4/inode.c:3091
 generic_perform_write+0x1d3/0x320 mm/filemap.c:3320
 ext4_buffered_write_iter+0x143/0x290 fs/ext4/file.c:252
 ext4_file_write_iter+0xf4/0xd40 fs/ext4/file.c:547
 call_write_iter include/linux/fs.h:1902 [inline]
 new_sync_write+0x388/0x4a0 fs/read_write.c:483
 __vfs_write+0xb1/0xc0 fs/read_write.c:496
 vfs_write fs/read_write.c:558 [inline]
 vfs_write+0x18a/0x390 fs/read_write.c:542
 ksys_write+0xd5/0x1b0 fs/read_write.c:611
 __do_sys_write fs/read_write.c:623 [inline]
 __se_sys_write fs/read_write.c:620 [inline]
 __x64_sys_write+0x4c/0x60 fs/read_write.c:620
 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff8880a039ea48 of 8 bytes by task 25554 on cpu 0:
 mem_cgroup_track_foreign_dirty_slowpath+0xb9/0x330 mm/memcontrol.c:4351
 mem_cgroup_track_foreign_dirty include/linux/memcontrol.h:1292 [inline]
 account_page_dirtied+0x46d/0x4a0 mm/page-writeback.c:2433
 __set_page_dirty+0x8a/0x270 fs/buffer.c:623
 mark_buffer_dirty+0x27f/0x2c0 fs/buffer.c:1152
 __block_commit_write.isra.0+0x11f/0x170 fs/buffer.c:2081
 block_write_end+0x6d/0x140 fs/buffer.c:2159
 generic_write_end+0x8a/0x1f0 fs/buffer.c:2173
 fat_write_end+0x59/0x120 fs/fat/inode.c:249
 generic_perform_write+0x1d3/0x320 mm/filemap.c:3320
 __generic_file_write_iter+0x251/0x380 mm/filemap.c:3438
 generic_file_write_iter+0x28c/0x38c mm/filemap.c:3470
 call_write_iter include/linux/fs.h:1902 [inline]
 new_sync_write+0x388/0x4a0 fs/read_write.c:483
 __vfs_write+0xb1/0xc0 fs/read_write.c:496
 vfs_write fs/read_write.c:558 [inline]
 vfs_write+0x18a/0x390 fs/read_write.c:542
 ksys_write+0xd5/0x1b0 fs/read_write.c:611
 __do_sys_write fs/read_write.c:623 [inline]
 __se_sys_write fs/read_write.c:620 [inline]
 __x64_sys_write+0x4c/0x60 fs/read_write.c:620
 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 25554 Comm: syz-executor.1 Not tainted 5.5.0-rc1-syzkaller #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
2020/01/12 09:43 https://github.com/google/ktsan.git kcsan 245a43005292 4c04afaa .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.