syzbot


KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter (6)

Status: auto-obsoleted due to no activity on 2023/02/13 18:11
Subsystems: kernel
[Documentation on labels]
First crash: 747d, last: 706d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter (3) kernel 1 1304d 1304d 0/28 auto-closed as invalid on 2021/06/18 16:26
upstream KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter (5) kernel 2 797d 805d 0/28 auto-obsoleted due to no activity on 2022/11/08 00:00
upstream KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter (4) kernel 92 908d 1067d 0/28 auto-closed as invalid on 2022/07/20 00:23
upstream KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter (2) kernel 37 1500d 1628d 0/28 auto-closed as invalid on 2020/12/05 03:01
upstream KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter kernel 7 1690d 1788d 0/28 closed as invalid on 2020/06/18 14:24

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

write to 0xffff888237c1e228 of 8 bytes by interrupt on cpu 0:
 update_ts_time_stats kernel/time/tick-sched.c:654 [inline]
 tick_nohz_stop_idle kernel/time/tick-sched.c:664 [inline]
 tick_nohz_irq_enter kernel/time/tick-sched.c:1429 [inline]
 tick_irq_enter+0x138/0x210 kernel/time/tick-sched.c:1455
 sysvec_apic_timer_interrupt+0x80/0xb0 arch/x86/kernel/apic/apic.c:1107
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:649
 native_safe_halt arch/x86/include/asm/irqflags.h:51 [inline]
 arch_safe_halt arch/x86/include/asm/irqflags.h:89 [inline]
 acpi_safe_halt drivers/acpi/processor_idle.c:112 [inline]
 acpi_idle_do_entry drivers/acpi/processor_idle.c:570 [inline]
 acpi_idle_enter+0x283/0x340 drivers/acpi/processor_idle.c:707
 cpuidle_enter_state+0x2de/0x960 drivers/cpuidle/cpuidle.c:239
 cpuidle_enter+0x3c/0x60 drivers/cpuidle/cpuidle.c:356
 call_cpuidle kernel/sched/idle.c:155 [inline]
 cpuidle_idle_call kernel/sched/idle.c:236 [inline]
 do_idle+0x1a7/0x250 kernel/sched/idle.c:303
 cpu_startup_entry+0x15/0x20 kernel/sched/idle.c:400
 rest_init+0xe8/0xf0 init/main.c:732
 arch_call_rest_init+0x5/0x10 init/main.c:894
 start_kernel+0x59e/0x630 init/main.c:1148
 secondary_startup_64_no_verify+0xcf/0xdb

read to 0xffff888237c1e228 of 8 bytes by task 29039 on cpu 1:
 get_cpu_idle_time_us+0x1a8/0x1d0 kernel/time/tick-sched.c:705
 get_idle_time fs/proc/stat.c:54 [inline]
 show_stat+0x99f/0xcd0 fs/proc/stat.c:175
 seq_read_iter+0x2c3/0x8e0 fs/seq_file.c:230
 proc_reg_read_iter+0xd4/0x170 fs/proc/inode.c:301
 call_read_iter include/linux/fs.h:2180 [inline]
 io_iter_do_read io_uring/rw.c:643 [inline]
 io_read+0x2e3/0xcc0 io_uring/rw.c:766
 io_issue_sqe+0x33f/0x890 io_uring/io_uring.c:1851
 io_queue_sqe io_uring/io_uring.c:2023 [inline]
 io_submit_sqe+0x3b1/0xa50 io_uring/io_uring.c:2281
 io_submit_sqes+0x274/0x550 io_uring/io_uring.c:2392
 __do_sys_io_uring_enter io_uring/io_uring.c:3340 [inline]
 __se_sys_io_uring_enter+0x1ef/0xc40 io_uring/io_uring.c:3272
 __x64_sys_io_uring_enter+0x74/0x80 io_uring/io_uring.c:3272
 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+0x63/0xcd

value changed: 0x0000033a61ec90c1 -> 0x0000033a61fcbbb0

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 29039 Comm: syz-executor.0 Not tainted 6.2.0-rc2-syzkaller-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/01/03 00:50 upstream 88603b6dc419 ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter
2022/11/28 21:11 upstream b7b275e60bcd 247de55b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter
2022/11/23 10:02 upstream eb7081409f94 52fdf57a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter
* Struck through repros no longer work on HEAD.