syzbot


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

Status: auto-closed as invalid on 2022/06/24 14:54
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 196d, last: 196d
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 475d 475d 0/24 auto-closed as invalid on 2021/09/19 05:49
upstream KCSAN: data-race in futex_wait / hrtimer_wakeup 2 628d 658d 0/24 auto-closed as invalid on 2021/05/17 11:26
upstream KCSAN: data-race in futex_wait / hrtimer_wakeup (3) 1 278d 278d 0/24 auto-closed as invalid on 2022/04/04 11:03

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

write to 0xffffc9000167bea8 of 8 bytes by interrupt on cpu 1:
 hrtimer_wakeup+0x25/0x50 kernel/time/hrtimer.c:1937
 __run_hrtimer+0x132/0x420 kernel/time/hrtimer.c:1685
 __hrtimer_run_queues kernel/time/hrtimer.c:1749 [inline]
 hrtimer_interrupt+0x36e/0xa70 kernel/time/hrtimer.c:1811
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1086 [inline]
 __sysvec_apic_timer_interrupt+0xa3/0x250 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:110 [inline]
 acpi_idle_do_entry drivers/acpi/processor_idle.c:551 [inline]
 acpi_idle_enter+0x27b/0x300 drivers/acpi/processor_idle.c:686
 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
 start_secondary+0x78/0x80 arch/x86/kernel/smpboot.c:266
 secondary_startup_64_no_verify+0xc4/0xcb

read to 0xffffc9000167bea8 of 8 bytes by task 19618 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:3007
 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+0x44/0xae

value changed: 0xffff8881154ee900 -> 0x0000000000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 19618 Comm: syz-executor.2 Not tainted 5.18.0-rc7-syzkaller-00121-g3d7285a335ed-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/05/20 14:48 upstream 3d7285a335ed cb1ac2e7 .config log report info KCSAN: data-race in futex_wait / hrtimer_wakeup
* Struck through repros no longer work on HEAD.