syzbot


KCSAN: data-race in __run_timers / internal_add_timer

Status: auto-closed as invalid on 2021/09/14 04:57
Subsystems: kernel
[Documentation on labels]
First crash: 1376d, last: 1266d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __run_timers / internal_add_timer (2) kernel 4 1178d 1215d 0/28 auto-closed as invalid on 2021/12/12 01:16

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

write to 0xffff888237c376d8 of 8 bytes by interrupt on cpu 1:
 enqueue_timer kernel/time/timer.c:598 [inline]
 internal_add_timer+0x146/0x270 kernel/time/timer.c:611
 add_timer_on+0x262/0x2a0 kernel/time/timer.c:1182
 clocksource_watchdog+0xa74/0xac0 kernel/time/clocksource.c:478
 call_timer_fn+0x2e/0x1d0 kernel/time/timer.c:1421
 expire_timers+0x135/0x240 kernel/time/timer.c:1466
 __run_timers+0x358/0x420 kernel/time/timer.c:1734
 run_timer_softirq+0x19/0x30 kernel/time/timer.c:1747
 __do_softirq+0x12c/0x26e kernel/softirq.c:558
 invoke_softirq kernel/softirq.c:432 [inline]
 __irq_exit_rcu+0x9a/0xb0 kernel/softirq.c:636
 sysvec_apic_timer_interrupt+0x69/0x80 arch/x86/kernel/apic/apic.c:1100
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638
 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:109 [inline]
 acpi_idle_do_entry drivers/acpi/processor_idle.c:553 [inline]
 acpi_idle_enter+0x258/0x2e0 drivers/acpi/processor_idle.c:688
 cpuidle_enter_state+0x2b6/0x750 drivers/cpuidle/cpuidle.c:237
 cpuidle_enter+0x3c/0x60 drivers/cpuidle/cpuidle.c:351
 call_cpuidle kernel/sched/idle.c:158 [inline]
 cpuidle_idle_call kernel/sched/idle.c:239 [inline]
 do_idle+0x1a3/0x240 kernel/sched/idle.c:306
 cpu_startup_entry+0x15/0x20 kernel/sched/idle.c:403
 secondary_startup_64_no_verify+0xb0/0xbb

read to 0xffff888237c376d8 of 8 bytes by interrupt on cpu 0:
 __run_timers+0x50/0x420 kernel/time/timer.c:1715
 run_timer_softirq+0x19/0x30 kernel/time/timer.c:1747
 __do_softirq+0x12c/0x26e kernel/softirq.c:558
 invoke_softirq kernel/softirq.c:432 [inline]
 __irq_exit_rcu+0x9a/0xb0 kernel/softirq.c:636
 sysvec_apic_timer_interrupt+0x69/0x80 arch/x86/kernel/apic/apic.c:1100
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638
 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:109 [inline]
 acpi_idle_do_entry drivers/acpi/processor_idle.c:553 [inline]
 acpi_idle_enter+0x258/0x2e0 drivers/acpi/processor_idle.c:688
 cpuidle_enter_state+0x2b6/0x750 drivers/cpuidle/cpuidle.c:237
 cpuidle_enter+0x3c/0x60 drivers/cpuidle/cpuidle.c:351
 call_cpuidle kernel/sched/idle.c:158 [inline]
 cpuidle_idle_call kernel/sched/idle.c:239 [inline]
 do_idle+0x1a3/0x240 kernel/sched/idle.c:306
 cpu_startup_entry+0x15/0x20 kernel/sched/idle.c:403
 rest_init+0xee/0x100 init/main.c:714
 arch_call_rest_init+0xa/0xb
 start_kernel+0x5ae/0x633 init/main.c:1120
 secondary_startup_64_no_verify+0xb0/0xbb

value changed: 0x000000010003a600 -> 0x000000010003a0b7

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.14.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (14):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/08/10 04:50 upstream 9a73fa375d58 6972b106 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __run_timers / internal_add_timer
2021/08/01 10:25 upstream f3438b4c4e69 6c236867 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __run_timers / internal_add_timer
2021/07/22 22:54 upstream 3d5895cd3517 241790bb .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __run_timers / internal_add_timer
2021/07/20 14:00 upstream 8cae8cd89f05 1b201b48 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __run_timers / internal_add_timer
2021/07/17 15:25 upstream d980cc0620ae f115ae98 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __run_timers / internal_add_timer
2021/06/20 03:45 upstream 913ec3c22ef4 aba2b2fb .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __run_timers / internal_add_timer
2021/05/16 23:49 upstream 63d1cb53e26a f54a5c09 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __run_timers / internal_add_timer
2021/05/10 13:03 upstream 6efb943b8616 ca873091 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __run_timers / internal_add_timer
2021/05/06 13:23 upstream 8404c9fbc84b 06c27ff5 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __run_timers / internal_add_timer
2021/05/05 21:11 upstream a79cdfba68a1 06c27ff5 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __run_timers / internal_add_timer
2021/04/27 05:38 upstream 9f4ad9e425a1 8ee2dea6 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __run_timers / internal_add_timer
2021/04/25 09:45 upstream 2a1d7946fa53 36c88236 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __run_timers / internal_add_timer
2021/04/24 19:32 upstream 2a1d7946fa53 17f0b706 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __run_timers / internal_add_timer
2021/04/22 23:45 upstream 90c911ad7445 590921a5 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __run_timers / internal_add_timer
* Struck through repros no longer work on HEAD.