syzbot


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

Status: auto-closed as invalid on 2022/04/04 11:03
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 281d, last: 281d
similar bugs (3):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in futex_wait / hrtimer_wakeup (2) 1 478d 478d 0/24 auto-closed as invalid on 2021/09/19 05:49
upstream KCSAN: data-race in futex_wait / hrtimer_wakeup (4) 1 200d 200d 0/24 auto-closed as invalid on 2022/06/24 14:54
upstream KCSAN: data-race in futex_wait / hrtimer_wakeup 2 631d 661d 0/24 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):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/02/28 10:58 upstream 7e57714cd0ad 45a13a73 .config log report info KCSAN: data-race in futex_wait / hrtimer_wakeup
* Struck through repros no longer work on HEAD.