syzbot


KCSAN: data-race in print_cpu / tick_nohz_stop_idle (2)

Status: auto-obsoleted due to no activity on 2023/09/22 19:10
Subsystems: kernel
[Documentation on labels]
First crash: 428d, last: 423d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in print_cpu / tick_nohz_stop_idle kernel 1 526d 526d 0/28 auto-obsoleted due to no activity on 2023/06/11 20:07
upstream KCSAN: data-race in print_cpu / tick_nohz_stop_idle (3) kernel 9 67d 176d 0/28 auto-obsoleted due to no activity on 2024/09/12 04:14

Sample crash report:
==================================================================
BUG: KCSAN: data-race in print_cpu / tick_nohz_stop_idle

write to 0xffff888237d1f2e8 of 8 bytes by interrupt on cpu 1:
 tick_nohz_stop_idle+0xb1/0x100 kernel/time/tick-sched.c:676
 tick_nohz_irq_enter kernel/time/tick-sched.c:1441 [inline]
 tick_irq_enter+0x96/0x140 kernel/time/tick-sched.c:1467
 sysvec_apic_timer_interrupt+0x60/0x80 arch/x86/kernel/apic/apic.c:1109
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645
 native_safe_halt arch/x86/include/asm/irqflags.h:48 [inline]
 arch_safe_halt arch/x86/include/asm/irqflags.h:86 [inline]
 acpi_safe_halt+0x20/0x30 drivers/acpi/processor_idle.c:112
 acpi_idle_do_entry+0x19/0x30 drivers/acpi/processor_idle.c:573
 acpi_idle_enter+0x96/0xb0 drivers/acpi/processor_idle.c:707
 cpuidle_enter_state+0xc6/0x260 drivers/cpuidle/cpuidle.c:267
 cpuidle_enter+0x40/0x60 drivers/cpuidle/cpuidle.c:388
 call_cpuidle kernel/sched/idle.c:134 [inline]
 cpuidle_idle_call kernel/sched/idle.c:215 [inline]
 do_idle+0x194/0x230 kernel/sched/idle.c:282
 cpu_startup_entry+0x18/0x20 kernel/sched/idle.c:379
 start_secondary+0x82/0x90 arch/x86/kernel/smpboot.c:326
 secondary_startup_64_no_verify+0x168/0x16b

read to 0xffff888237d1f2e8 of 8 bytes by task 10766 on cpu 0:
 print_cpu+0x4c4/0x640 kernel/time/timer_list.c:158
 timer_list_show+0x115/0x180 kernel/time/timer_list.c:291
 seq_read_iter+0x612/0x8f0 fs/seq_file.c:272
 proc_reg_read_iter+0x114/0x180 fs/proc/inode.c:305
 call_read_iter include/linux/fs.h:1871 [inline]
 copy_splice_read+0x26b/0x4b0 fs/splice.c:367
 vfs_splice_read fs/splice.c:996 [inline]
 splice_direct_to_actor+0x28c/0x690 fs/splice.c:1072
 do_splice_direct+0x10d/0x190 fs/splice.c:1197
 do_sendfile+0x3b6/0x9a0 fs/read_write.c:1254
 __do_sys_sendfile64 fs/read_write.c:1322 [inline]
 __se_sys_sendfile64 fs/read_write.c:1308 [inline]
 __x64_sys_sendfile64+0x110/0x150 fs/read_write.c:1308
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x0000004065cfe0b5 -> 0x0000004065db9aa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 10766 Comm: syz-executor.3 Not tainted 6.5.0-rc6-syzkaller-00117-g0e8860d2125f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/08/18 19:06 upstream 0e8860d2125f acb1ba71 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in print_cpu / tick_nohz_stop_idle
2023/08/13 03:45 upstream ae545c3283dc 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in print_cpu / tick_nohz_stop_idle
* Struck through repros no longer work on HEAD.