syzbot


KCSAN: data-race in futex_wait / hrtimer_wakeup (3)

Status: auto-closed as invalid on 2022/04/04 11:03
Subsystems: kernel
[Documentation on labels]
First crash: 786d, last: 786d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in futex_wait / hrtimer_wakeup (5) kernel 2 395d 439d 0/26 auto-obsoleted due to no activity on 2023/04/29 18:45
upstream KCSAN: data-race in futex_wait / hrtimer_wakeup (6) kernel 4 277d 335d 0/26 auto-obsoleted due to no activity on 2023/08/26 06:58
upstream KCSAN: data-race in futex_wait / hrtimer_wakeup (2) kernel 1 983d 983d 0/26 auto-closed as invalid on 2021/09/19 05:49
upstream KCSAN: data-race in futex_wait / hrtimer_wakeup (4) kernel 1 704d 704d 0/26 auto-closed as invalid on 2022/06/24 14:54
upstream KCSAN: data-race in futex_wait / hrtimer_wakeup kernel 2 1136d 1166d 0/26 auto-closed as invalid on 2021/05/17 11:26

Sample crash report:
==================================================================
BUG: KCSAN: data-race in futex_wait / hrtimer_wakeup

write to 0xffffc900013d3e80 of 8 bytes by interrupt on cpu 1:
 hrtimer_wakeup+0x25/0x50 kernel/time/hrtimer.c:1937
 __run_hrtimer+0x163/0x460 kernel/time/hrtimer.c:1685
 __hrtimer_run_queues kernel/time/hrtimer.c:1749 [inline]
 hrtimer_interrupt+0x37e/0xac0 kernel/time/hrtimer.c:1811
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1086 [inline]
 __sysvec_apic_timer_interrupt+0xa3/0x240 arch/x86/kernel/apic/apic.c:1103
 sysvec_apic_timer_interrupt+0x88/0xb0 arch/x86/kernel/apic/apic.c:1097
 asm_sysvec_apic_timer_interrupt+0x12/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:115 [inline]
 acpi_idle_do_entry drivers/acpi/processor_idle.c:556 [inline]
 acpi_idle_enter+0x282/0x300 drivers/acpi/processor_idle.c:692
 cpuidle_enter_state+0x2b4/0x7d0 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+0x1b2/0x250 kernel/sched/idle.c:306
 cpu_startup_entry+0x15/0x20 kernel/sched/idle.c:403
 secondary_startup_64_no_verify+0xc4/0xcb

read to 0xffffc900013d3e80 of 8 bytes by task 12982 on cpu 0:
 futex_wait+0x14e/0x350 kernel/futex/waitwake.c:663
 futex_wait_restart+0xc6/0xf0 kernel/futex/waitwake.c:705
 __do_sys_restart_syscall+0x2d/0x40 kernel/signal.c:3005
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0xffff888129f16400 -> 0x0000000000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 12982 Comm: syz-executor.2 Not tainted 5.17.0-rc6-syzkaller-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/02/28 10:58 upstream 7e57714cd0ad 45a13a73 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in futex_wait / hrtimer_wakeup
* Struck through repros no longer work on HEAD.