syzbot


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

Status: auto-closed as invalid on 2022/07/20 00:23
Reported-by: syzbot+55cb3f389b0d3d7acb71@syzkaller.appspotmail.com
First crash: 412d, last: 178d
similar bugs (4):
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) 1 574d 574d 0/24 auto-closed as invalid on 2021/06/18 16:26
upstream KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter (5) 2 67d 74d 0/24 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 (2) 37 769d 897d 0/24 auto-closed as invalid on 2020/12/05 03:01
upstream KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter 7 960d 1057d 0/24 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 0xffff888237c1e0a8 of 8 bytes by interrupt on cpu 0:
 update_ts_time_stats kernel/time/tick-sched.c:655 [inline]
 tick_nohz_stop_idle kernel/time/tick-sched.c:665 [inline]
 tick_nohz_irq_enter kernel/time/tick-sched.c:1430 [inline]
 tick_irq_enter+0x138/0x210 kernel/time/tick-sched.c:1456
 sysvec_apic_timer_interrupt+0x80/0xb0 arch/x86/kernel/apic/apic.c:1106
 asm_sysvec_apic_timer_interrupt+0x1b/0x20
 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:111 [inline]
 acpi_idle_do_entry drivers/acpi/processor_idle.c:554 [inline]
 acpi_idle_enter+0x283/0x310 drivers/acpi/processor_idle.c:691
 cpuidle_enter_state+0x2ee/0x7a0 drivers/cpuidle/cpuidle.c:237
 cpuidle_enter+0x3c/0x60 drivers/cpuidle/cpuidle.c:351
 call_cpuidle kernel/sched/idle.c:155 [inline]
 cpuidle_idle_call kernel/sched/idle.c:236 [inline]
 do_idle+0x1b2/0x250 kernel/sched/idle.c:303
 cpu_startup_entry+0x15/0x20 kernel/sched/idle.c:400
 rest_init+0xe8/0xf0 init/main.c:726
 start_kernel+0x0/0x656 init/main.c:882
 start_kernel+0x5d1/0x656 init/main.c:1137
 secondary_startup_64_no_verify+0xcf/0xdb

read to 0xffff888237c1e0a8 of 8 bytes by task 14260 on cpu 1:
 get_cpu_idle_time_us+0x1a8/0x1d0 kernel/time/tick-sched.c:706
 get_idle_time fs/proc/stat.c:54 [inline]
 show_stat+0x30f/0xe60 fs/proc/stat.c:134
 seq_read_iter+0x2c3/0x8e0 fs/seq_file.c:230
 proc_reg_read_iter+0xd4/0x170 fs/proc/inode.c:296
 call_read_iter include/linux/fs.h:2052 [inline]
 io_iter_do_read fs/io_uring.c:4307 [inline]
 io_read fs/io_uring.c:4426 [inline]
 io_issue_sqe+0x22f3/0xa9b0 fs/io_uring.c:8408
 io_queue_sqe fs/io_uring.c:8791 [inline]
 io_submit_sqe+0x2cfa/0x3ad0 fs/io_uring.c:9055
 io_submit_sqes+0x27b/0x500 fs/io_uring.c:9166
 __do_sys_io_uring_enter fs/io_uring.c:12098 [inline]
 __se_sys_io_uring_enter+0x24b/0xd60 fs/io_uring.c:12024
 __x64_sys_io_uring_enter+0x74/0x80 fs/io_uring.c:12024
 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+0x46/0xb0

value changed: 0x0000029d53f3ea80 -> 0x0000029d53fa1ef6

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 14260 Comm: syz-executor.0 Not tainted 5.19.0-rc2-syzkaller-00049-g24625f7d91fb-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (92):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/06/15 00:22 upstream 24625f7d91fb 127d1faf .config log report info KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter
ci2-upstream-kcsan-gce 2022/05/31 09:34 upstream 8ab2afa23bd1 af70c3a9 .config log report info KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter
ci2-upstream-kcsan-gce 2022/05/31 02:42 upstream 2c5ca23f7414 af70c3a9 .config log report info KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter
ci2-upstream-kcsan-gce 2022/05/21 05:01 upstream 3b5e1590a267 7268fa62 .config log report info KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter
ci2-upstream-kcsan-gce 2022/04/22 18:28 upstream d569e86915b7 131df97d .config log report info KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter
ci2-upstream-kcsan-gce 2022/04/21 04:57 upstream b253435746d9 d4befee1 .config log report info KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter
ci2-upstream-kcsan-gce 2022/04/19 03:35 upstream b2d229d4ddb1 8bcc32a6 .config log report info KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter
ci2-upstream-kcsan-gce 2022/04/11 16:32 upstream ce522ba9ef7e af01ee7d .config log report info KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter
ci2-upstream-kcsan-gce 2022/04/05 15:52 upstream 312310928417 0127c10f .config log report info KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter
ci2-upstream-kcsan-gce 2022/03/25 02:51 upstream 52deda9551a0 89bc8608 .config log report info KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter
ci2-upstream-kcsan-gce 2022/03/22 20:29 upstream b47d5a4f6b8d d88ef0c5 .config log report info KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter
ci2-upstream-kcsan-gce 2022/02/28 11:25 upstream 7e57714cd0ad 45a13a73 .config log report info KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter
ci2-upstream-kcsan-gce 2022/02/26 09:27 upstream c47658311d60 45a13a73 .config log report info KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter
ci2-upstream-kcsan-gce 2022/02/25 20:48 upstream 53ab78cd6d5a 45a13a73 .config log report info KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter
ci2-upstream-kcsan-gce 2022/02/25 16:09 upstream 53ab78cd6d5a 7c337266 .config log report info KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter
ci2-upstream-kcsan-gce 2022/02/24 21:43 upstream 73878e5eb1bd b28851a4 .config log report info KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter
ci2-upstream-kcsan-gce 2022/02/24 10:31 upstream 23d04328444a 6e821dbf .config log report info KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter
ci2-upstream-kcsan-gce 2022/02/21 20:32 upstream 038101e6b2cd 6e821dbf .config log report info KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter
ci2-upstream-kcsan-gce 2022/02/19 07:35 upstream 4f12b742eb2b 3cd800e4 .config log report info KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter
ci2-upstream-kcsan-gce 2022/02/18 22:48 upstream 7993e65fdd0f 3cd800e4 .config log report info KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter
ci2-upstream-kcsan-gce 2022/02/16 20:24 upstream 359303076163 50221962 .config log report info KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter
ci2-upstream-kcsan-gce 2022/02/16 18:52 upstream c5d9ae265b10 50221962 .config log report info KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter
ci2-upstream-kcsan-gce 2022/02/15 20:22 upstream 705d84a366cf 8b9ca619 .config log report info KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter
ci2-upstream-kcsan-gce 2022/02/08 12:06 upstream 555f3d7be91a a7dab638 .config log report info KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter
ci2-upstream-kcsan-gce 2022/02/08 00:24 upstream 2ade8eef993c a7dab638 .config log report info KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter
ci2-upstream-kcsan-gce 2022/02/07 08:46 upstream dfd42facf1e4 a7dab638 .config log report info KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter
ci2-upstream-kcsan-gce 2022/02/06 21:27 upstream d8ad2ce873ab a7dab638 .config log report info KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter
ci2-upstream-kcsan-gce 2022/02/06 03:31 upstream 90c9e950c0de a7dab638 .config log report info KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter
ci2-upstream-kcsan-gce 2022/02/05 13:34 upstream 0457e5153e0e a7dab638 .config log report info KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter
ci2-upstream-kcsan-gce 2022/02/04 10:56 upstream dcb85f85fa6f a3e470b2 .config log report info KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter
ci2-upstream-kcsan-gce 2022/02/04 10:55 upstream dcb85f85fa6f a3e470b2 .config log report info KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter
ci2-upstream-kcsan-gce 2022/02/02 18:43 upstream 27bb0b18c208 4ebb2798 .config log report info KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter
ci2-upstream-kcsan-gce 2022/02/01 21:21 upstream 9f7fb8de5d9b c1c1631d .config log report info KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter
ci2-upstream-kcsan-gce 2022/02/01 12:10 upstream 26291c54e111 c1c1631d .config log report info KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter
ci2-upstream-kcsan-gce 2022/02/01 00:28 upstream 26291c54e111 6b7c57fe .config log report info KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter
ci2-upstream-kcsan-gce 2022/01/16 21:37 upstream 79e06c4c4950 723cfaf0 .config log report info KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter
ci2-upstream-kcsan-gce 2022/01/16 08:10 upstream d0a231f01e5b 723cfaf0 .config log report info KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter
ci2-upstream-kcsan-gce 2022/01/08 22:01 upstream 21f35d2ca83e 2ca0d385 .config log report info KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter
ci2-upstream-kcsan-gce 2022/01/08 06:21 upstream d1587f7bfe9a 2ca0d385 .config log report info KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter
ci2-upstream-kcsan-gce 2022/01/07 03:43 upstream b2b436ec0205 6acc789a .config log report info KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter
ci2-upstream-kcsan-gce 2022/01/06 12:09 upstream 75acfdb6fd92 6acc789a .config log report info KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter
ci2-upstream-kcsan-gce 2022/01/05 23:07 upstream 49ef78e59b07 6acc789a .config log report info KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter
ci2-upstream-kcsan-gce 2021/12/31 12:07 upstream 4f3d93c6eaff 36bd2e48 .config log report info KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter
ci2-upstream-kcsan-gce 2021/10/30 02:18 upstream a379fbbcb88b 098b5d53 .config log report info KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter
ci2-upstream-kcsan-gce 2021/10/27 23:09 upstream 1fc596a56b33 be531bb4 .config log report info KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter
ci2-upstream-kcsan-gce 2021/10/27 13:37 upstream d25f27432f80 be531bb4 .config log report info KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter
ci2-upstream-kcsan-gce 2021/10/26 18:51 upstream 3906fe9bb7f1 d50eb50a .config log report info KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter
ci2-upstream-kcsan-gce 2021/10/25 19:08 upstream 87066fdd2e30 c1132b49 .config log report info KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter
ci2-upstream-kcsan-gce 2021/10/23 15:42 upstream 9c0c4d24ac00 282f03fb .config log report info KCSAN: data-race in get_cpu_idle_time_us / tick_irq_enter
* Struck through repros no longer work on HEAD.