syzbot


KCSAN: data-race in __cgroup_account_cputime_field / cgroup_rstat_flush_locked (2)

Status: auto-obsoleted due to no activity on 2023/07/19 11:16
Subsystems: kernel
[Documentation on labels]
First crash: 417d, last: 324d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __cgroup_account_cputime_field / cgroup_rstat_flush_locked kernel 1 822d 822d 0/26 auto-closed as invalid on 2022/03/09 08:01

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

read-write to 0xffffe8ffffd75e08 of 8 bytes by interrupt on cpu 1:
 __cgroup_account_cputime_field+0x98/0x100
 cgroup_account_cputime_field include/linux/cgroup.h:737 [inline]
 task_group_account_field kernel/sched/cputime.c:113 [inline]
 account_user_time+0x7e/0x90 kernel/sched/cputime.c:132
 update_process_times+0x22/0x110 kernel/time/timer.c:2069
 tick_sched_handle kernel/time/tick-sched.c:243 [inline]
 tick_sched_timer+0x244/0x2c0 kernel/time/tick-sched.c:1481
 __run_hrtimer kernel/time/hrtimer.c:1685 [inline]
 __hrtimer_run_queues+0x217/0x700 kernel/time/hrtimer.c:1749
 hrtimer_interrupt+0x20d/0x7b0 kernel/time/hrtimer.c:1811
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1095 [inline]
 __sysvec_apic_timer_interrupt+0x73/0x210 arch/x86/kernel/apic/apic.c:1112
 sysvec_apic_timer_interrupt+0x31/0x80 arch/x86/kernel/apic/apic.c:1106
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645

read to 0xffffe8ffffd75e08 of 8 bytes by task 17360 on cpu 0:
 cgroup_base_stat_flush kernel/cgroup/rstat.c:373 [inline]
 cgroup_rstat_flush_locked+0x2d2/0x700 kernel/cgroup/rstat.c:199
 cgroup_rstat_flush+0x2b/0x40 kernel/cgroup/rstat.c:239
 do_flush_stats mm/memcontrol.c:658 [inline]
 mem_cgroup_flush_stats+0x9f/0xd0 mm/memcontrol.c:672
 prepare_scan_count mm/vmscan.c:2915 [inline]
 shrink_node+0x2fa/0x1500 mm/vmscan.c:6500
 shrink_zones mm/vmscan.c:6737 [inline]
 do_try_to_free_pages+0x40d/0xc80 mm/vmscan.c:6799
 try_to_free_mem_cgroup_pages+0x1e2/0x480 mm/vmscan.c:7114
 reclaim_high+0xca/0x110 mm/memcontrol.c:2432
 mem_cgroup_handle_over_high+0x8c/0x1a0 mm/memcontrol.c:2617
 resume_user_mode_work include/linux/resume_user_mode.h:58 [inline]
 exit_to_user_mode_loop+0x9b/0xe0 kernel/entry/common.c:171
 exit_to_user_mode_prepare+0x6c/0xb0 kernel/entry/common.c:204
 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline]
 syscall_exit_to_user_mode+0x26/0x140 kernel/entry/common.c:297
 do_syscall_64+0x4d/0xc0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x000000018d74cd57 -> 0x000000018e0d63d7

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 17360 Comm: syz-executor.2 Tainted: G        W          6.4.0-rc6-syzkaller-00037-gb6dad5178cea #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023
==================================================================

Crashes (16):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/06/14 11:10 upstream b6dad5178cea d2ee9228 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __cgroup_account_cputime_field / cgroup_rstat_flush_locked
2023/06/12 06:04 upstream 4c605260bc60 49519f06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __cgroup_account_cputime_field / cgroup_rstat_flush_locked
2023/06/10 07:37 upstream 64569520920a 9018a337 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __cgroup_account_cputime_field / cgroup_rstat_flush_locked
2023/06/08 19:34 upstream 5f63595ebd82 058b3a5a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __cgroup_account_cputime_field / cgroup_rstat_flush_locked
2023/06/04 11:44 upstream e5282a7d8f6b a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __cgroup_account_cputime_field / cgroup_rstat_flush_locked
2023/05/23 09:03 upstream 421ca22e3138 4bce1a3e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __cgroup_account_cputime_field / cgroup_rstat_flush_locked
2023/05/07 12:02 upstream fc4354c6e5c2 90c93c40 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __cgroup_account_cputime_field / cgroup_rstat_flush_locked
2023/05/02 00:37 upstream c8c655c34e33 62df2017 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __cgroup_account_cputime_field / cgroup_rstat_flush_locked
2023/05/01 03:48 upstream 58390c8ce1bd 62df2017 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __cgroup_account_cputime_field / cgroup_rstat_flush_locked
2023/04/22 02:19 upstream 8e41e0a57566 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __cgroup_account_cputime_field / cgroup_rstat_flush_locked
2023/04/15 10:00 upstream 7a934f4bd7d6 ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __cgroup_account_cputime_field / cgroup_rstat_flush_locked
2023/04/13 15:14 upstream de4664485abb 3cfcaa1b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __cgroup_account_cputime_field / cgroup_rstat_flush_locked
2023/04/06 19:32 upstream f2afccfefe7b 08707520 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __cgroup_account_cputime_field / cgroup_rstat_flush_locked
2023/03/30 01:01 upstream ffe78bbd5121 f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __cgroup_account_cputime_field / cgroup_rstat_flush_locked
2023/03/21 06:27 upstream 7d31677bb7b1 7939252e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __cgroup_account_cputime_field / cgroup_rstat_flush_locked
2023/03/14 02:13 upstream fc89d7fb499b 026e2200 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __cgroup_account_cputime_field / cgroup_rstat_flush_locked
* Struck through repros no longer work on HEAD.