syzbot


KCSAN: data-race in mem_cgroup_flush_stats_delayed / tick_do_update_jiffies64 (3)

Status: auto-obsoleted due to no activity on 2023/04/04 17:35
Subsystems: kernel
[Documentation on labels]
First crash: 478d, last: 450d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in mem_cgroup_flush_stats_delayed / tick_do_update_jiffies64 (4) kernel 3 370d 382d 0/26 auto-obsoleted due to no activity on 2023/06/01 19:11
upstream KCSAN: data-race in mem_cgroup_flush_stats_delayed / tick_do_update_jiffies64 (2) kernel 7 528d 614d 0/26 auto-obsoleted due to no activity on 2023/01/03 10:47
upstream KCSAN: data-race in mem_cgroup_flush_stats_delayed / tick_do_update_jiffies64 kernel 7 656d 733d 0/26 auto-closed as invalid on 2022/08/20 02:16

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

read-write to 0xffffffff85a079c0 of 8 bytes by interrupt on cpu 0:
 tick_do_update_jiffies64+0x112/0x1b0
 tick_sched_timer+0x82/0x2c0
 __hrtimer_run_queues+0x217/0x700
 hrtimer_interrupt+0x224/0x7c0
 __sysvec_apic_timer_interrupt+0xa7/0x250
 sysvec_apic_timer_interrupt+0x3d/0xb0
 asm_sysvec_apic_timer_interrupt+0x1a/0x20

read to 0xffffffff85a079c0 of 8 bytes by task 3121 on cpu 1:
 mem_cgroup_flush_stats_delayed+0x38/0x140
 workingset_refault+0x2b9/0x720
 filemap_add_folio+0xe6/0x150
 __filemap_get_folio+0x554/0x750
 pagecache_get_page+0x2a/0xd0
 __getblk_gfp+0x182/0x7e0
 ext4_getblk+0x191/0x4e0
 ext4_bread+0x2c/0x110
 ext4_append+0x164/0x2a0
 ext4_init_new_dir+0x17b/0x510
 ext4_mkdir+0x312/0x740
 vfs_mkdir+0x27d/0x380
 do_mkdirat+0xf5/0x260
 __x64_sys_mkdirat+0x50/0x60
 do_syscall_64+0x41/0xc0
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x000000010004ddd5 -> 0x000000010004ddd6

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 3121 Comm: syz-executor.1 Not tainted 6.2.0-rc7-syzkaller-00002-gd2d11f342b17-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/02/07 00:05 upstream d2d11f342b17 0a9c11b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mem_cgroup_flush_stats_delayed / tick_do_update_jiffies64
2023/01/10 16:46 upstream 5a41237ad1d4 48bc529a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mem_cgroup_flush_stats_delayed / tick_do_update_jiffies64
* Struck through repros no longer work on HEAD.