syzbot


KCSAN: data-race in do_notify_parent_cldstop / prepare_signal (5)

Status: auto-closed as invalid on 2022/05/20 20:48
Subsystems: kernel
[Documentation on labels]
First crash: 771d, last: 739d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in do_notify_parent_cldstop / prepare_signal (7) kernel 1 140d 138d 0/26 auto-obsoleted due to no activity on 2024/01/09 18:17
upstream KCSAN: data-race in do_notify_parent_cldstop / prepare_signal (2) kernel 1 1340d 1340d 0/26 auto-closed as invalid on 2020/09/26 16:47
upstream KCSAN: data-race in do_notify_parent_cldstop / prepare_signal kernel 1 1392d 1392d 0/26 auto-closed as invalid on 2020/08/05 00:26
upstream KCSAN: data-race in do_notify_parent_cldstop / prepare_signal (4) kernel 1 932d 932d 0/26 auto-closed as invalid on 2021/11/08 08:53
upstream KCSAN: data-race in do_notify_parent_cldstop / prepare_signal (6) kernel 2 273d 279d 0/26 auto-obsoleted due to no activity on 2023/08/29 03:36
upstream KCSAN: data-race in do_notify_parent_cldstop / prepare_signal (3) kernel 1 1225d 1225d 0/26 auto-closed as invalid on 2021/01/19 10:47

Sample crash report:
==================================================================
BUG: KCSAN: data-race in do_notify_parent_cldstop / prepare_signal

write to 0xffff88810215a060 of 4 bytes by interrupt on cpu 0:
 prepare_signal+0xafd/0xda0 kernel/signal.c:961
 send_sigqueue+0xe7/0x400 kernel/signal.c:1969
 posix_timer_event kernel/time/posix-timers.c:354 [inline]
 posix_timer_fn+0xdd/0x1f0 kernel/time/posix-timers.c:380
 __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:115 [inline]
 acpi_idle_do_entry drivers/acpi/processor_idle.c:556 [inline]
 acpi_idle_enter+0x27b/0x300 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+0xed/0xf0 init/main.c:726
 arch_call_rest_init+0xa/0xb init/main.c:882
 start_kernel+0x5e4/0x669 init/main.c:1140
 secondary_startup_64_no_verify+0xc4/0xcb

read to 0xffff88810215a060 of 4 bytes by task 10486 on cpu 1:
 do_notify_parent_cldstop+0x19b/0x280
 do_signal_stop+0x4ac/0x660 kernel/signal.c:2477
 get_signal+0x7b8/0x1020 kernel/signal.c:2711
 arch_do_signal_or_restart+0x87/0x2d0 arch/x86/kernel/signal.c:867
 exit_to_user_mode_loop+0x78/0x130 kernel/entry/common.c:166
 exit_to_user_mode_prepare kernel/entry/common.c:201 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline]
 syscall_exit_to_user_mode+0x6a/0x90 kernel/entry/common.c:294
 do_syscall_64+0x37/0x70 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x00000014 -> 0x00000000

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

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/04/15 20:43 upstream 028192fea1de 8bcc32a6 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in do_notify_parent_cldstop / prepare_signal
2022/03/25 03:19 upstream 52deda9551a0 89bc8608 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in do_notify_parent_cldstop / prepare_signal
2022/03/14 20:56 upstream 09688c0166e7 9e8eaa75 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in do_notify_parent_cldstop / prepare_signal
* Struck through repros no longer work on HEAD.