syzbot


KCSAN: data-race in hrtimer_interrupt / print_cpu (3)

Status: auto-closed as invalid on 2021/03/28 05:11
Subsystems: kernel
[Documentation on labels]
First crash: 1225d, last: 1155d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in hrtimer_interrupt / print_cpu (2) kernel 7 1284d 1399d 0/26 auto-closed as invalid on 2020/11/19 01:50
upstream KCSAN: data-race in hrtimer_interrupt / print_cpu (4) kernel 44 890d 1107d 0/26 auto-closed as invalid on 2021/12/18 07:26
upstream KCSAN: data-race in hrtimer_interrupt / print_cpu (5) kernel 183 15h52m 135d 0/26 moderation: reported on 2023/12/08 00:04
upstream KCSAN: data-race in hrtimer_interrupt / print_cpu kernel 18 1413d 1559d 0/26 closed as invalid on 2020/06/18 14:24

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

write to 0xffff88813bd1dea0 of 8 bytes by interrupt on cpu 1:
 hrtimer_interrupt+0x1ec/0xa30 kernel/time/hrtimer.c:1637
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1089 [inline]
 __sysvec_apic_timer_interrupt+0x6f/0x200 arch/x86/kernel/apic/apic.c:1106
 asm_call_irq_on_stack+0xf/0x20
 __run_sysvec_on_irqstack arch/x86/include/asm/irq_stack.h:37 [inline]
 run_sysvec_on_irqstack_cond arch/x86/include/asm/irq_stack.h:89 [inline]
 sysvec_apic_timer_interrupt+0x52/0x90 arch/x86/kernel/apic/apic.c:1100
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:629
 is_atomic kernel/kcsan/core.c:234 [inline]
 should_watch kernel/kcsan/core.c:262 [inline]
 check_access kernel/kcsan/core.c:631 [inline]
 __tsan_read1+0x116/0x180 kernel/kcsan/core.c:839
 strlen+0x1b/0x40 lib/string.c:565
 __sprint_symbol+0x98/0x170 kernel/kallsyms.c:370
 sprint_symbol_no_offset+0x1d/0x30 kernel/kallsyms.c:412
 symbol_string+0x8a/0x190 lib/vsprintf.c:974
 pointer+0x21b/0x7e0 lib/vsprintf.c:2224
 vsnprintf+0x8a1/0xed0 lib/vsprintf.c:2623
 seq_vprintf+0x71/0xd0 fs/seq_file.c:395
 SEQ_printf+0x76/0xb0 kernel/time/timer_list.c:38
 print_timer kernel/time/timer_list.c:49 [inline]
 print_active_timers kernel/time/timer_list.c:91 [inline]
 print_base kernel/time/timer_list.c:112 [inline]
 print_cpu+0x28e/0x690 kernel/time/timer_list.c:123
 timer_list_show+0x114/0x180 kernel/time/timer_list.c:283
 seq_read_iter+0x60b/0x910 fs/seq_file.c:269
 proc_reg_read_iter+0xfc/0x170 fs/proc/inode.c:310
 call_read_iter include/linux/fs.h:1895 [inline]
 generic_file_splice_read+0x22a/0x310 fs/splice.c:311
 do_splice_to fs/splice.c:788 [inline]
 splice_direct_to_actor+0x2aa/0x650 fs/splice.c:867
 do_splice_direct+0xf5/0x170 fs/splice.c:976
 do_sendfile+0x5e0/0xcf0 fs/read_write.c:1257
 __do_sys_sendfile64 fs/read_write.c:1318 [inline]
 __se_sys_sendfile64 fs/read_write.c:1304 [inline]
 __x64_sys_sendfile64+0xf2/0x130 fs/read_write.c:1304
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88813bd1dea0 of 8 bytes by task 11654 on cpu 0:
 print_cpu+0x32e/0x690 kernel/time/timer_list.c:133
 timer_list_show+0x114/0x180 kernel/time/timer_list.c:283
 seq_read_iter+0x60b/0x910 fs/seq_file.c:269
 proc_reg_read_iter+0xfc/0x170 fs/proc/inode.c:310
 call_read_iter include/linux/fs.h:1895 [inline]
 generic_file_splice_read+0x22a/0x310 fs/splice.c:311
 do_splice_to fs/splice.c:788 [inline]
 splice_direct_to_actor+0x2aa/0x650 fs/splice.c:867
 do_splice_direct+0xf5/0x170 fs/splice.c:976
 do_sendfile+0x5e0/0xcf0 fs/read_write.c:1257
 __do_sys_sendfile64 fs/read_write.c:1318 [inline]
 __se_sys_sendfile64 fs/read_write.c:1304 [inline]
 __x64_sys_sendfile64+0xf2/0x130 fs/read_write.c:1304
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 11654 Comm: syz-executor.4 Not tainted 5.11.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (13):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/02/21 05:06 upstream e767b3530acb 3e5ed8b4 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in hrtimer_interrupt / print_cpu
2021/02/12 10:07 upstream dcc0b49040c7 a5f86b15 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in hrtimer_interrupt / print_cpu
2021/02/02 12:39 upstream 88bb507a74ea 19e09687 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in hrtimer_interrupt / print_cpu
2021/01/29 01:34 upstream e5ff2cb9cf67 7df34f59 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in hrtimer_interrupt / print_cpu
2021/01/27 07:06 upstream 2ab38c17aac1 a0ebf917 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in hrtimer_interrupt / print_cpu
2021/01/11 03:30 upstream 0653161f0fac 2c1f2513 .config console log report info ci2-upstream-kcsan-gce
2021/01/08 22:24 upstream 6279d812eab6 c104d4a3 .config console log report info ci2-upstream-kcsan-gce
2021/01/08 03:11 upstream f5e6c330254a c104d4a3 .config console log report info ci2-upstream-kcsan-gce
2021/01/07 04:07 upstream 71c061d24438 c104d4a3 .config console log report info ci2-upstream-kcsan-gce
2021/01/03 18:58 upstream 3516bd729358 79264ae3 .config console log report info ci2-upstream-kcsan-gce
2020/12/30 07:36 upstream 139711f033f6 0fa352f2 .config console log report info ci2-upstream-kcsan-gce
2020/12/17 00:33 upstream 5e60366d56c6 04201c06 .config console log report info ci2-upstream-kcsan-gce
2020/12/12 21:08 upstream 7b1b868e1d91 bca53db9 .config console log report info ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.