syzbot


KCSAN: data-race in hrtimer_interrupt / print_tickdevice (4)

Status: auto-closed as invalid on 2022/04/13 14:16
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 429d, last: 264d
similar bugs (6):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in hrtimer_interrupt / print_tickdevice (6) 5 128d 152d 0/24 auto-closed as invalid on 2022/08/27 09:49
upstream KCSAN: data-race in hrtimer_interrupt / print_tickdevice (2) 3 564d 569d 0/24 auto-closed as invalid on 2021/06/16 18:46
upstream KCSAN: data-race in hrtimer_interrupt / print_tickdevice (5) 2 201d 201d 0/24 auto-closed as invalid on 2022/06/15 02:31
upstream KCSAN: data-race in hrtimer_interrupt / print_tickdevice (7) 1 72d 72d 0/24 auto-obsoleted due to no activity on 2022/10/22 07:07
upstream KCSAN: data-race in hrtimer_interrupt / print_tickdevice (3) 2 478d 514d 0/24 auto-closed as invalid on 2021/09/10 15:52
upstream KCSAN: data-race in hrtimer_interrupt / print_tickdevice 1 680d 680d 0/24 auto-closed as invalid on 2021/02/20 21:54

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

write to 0xffff888237d1af18 of 8 bytes by interrupt on cpu 1:
 hrtimer_interrupt+0xb3/0xac0 kernel/time/hrtimer.c:1790
 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
 number+0x8cd/0xb60 lib/vsprintf.c:556
 vsnprintf+0xb6d/0xed0 lib/vsprintf.c:2861
 seq_vprintf+0x71/0xd0 fs/seq_file.c:391
 SEQ_printf+0x87/0xc0 kernel/time/timer_list.c:38
 print_base kernel/time/timer_list.c:108 [inline]
 print_cpu+0x123/0x690 kernel/time/timer_list.c:123
 timer_list_show+0x114/0x180 kernel/time/timer_list.c:291
 seq_read_iter+0x60b/0x930 fs/seq_file.c:272
 proc_reg_read_iter+0xfc/0x170 fs/proc/inode.c:300
 call_read_iter include/linux/fs.h:2068 [inline]
 generic_file_splice_read+0x24f/0x330 fs/splice.c:311
 do_splice_to fs/splice.c:796 [inline]
 splice_direct_to_actor+0x2aa/0x650 fs/splice.c:870
 do_splice_direct+0x106/0x190 fs/splice.c:979
 do_sendfile+0x675/0xc40 fs/read_write.c:1245
 __do_sys_sendfile64 fs/read_write.c:1310 [inline]
 __se_sys_sendfile64 fs/read_write.c:1296 [inline]
 __x64_sys_sendfile64+0x102/0x140 fs/read_write.c:1296
 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

read to 0xffff888237d1af18 of 8 bytes by task 15463 on cpu 0:
 print_tickdevice+0x158/0x370 kernel/time/timer_list.c:204
 timer_list_show+0x74/0x180 kernel/time/timer_list.c:296
 seq_read_iter+0x60b/0x930 fs/seq_file.c:272
 proc_reg_read_iter+0xfc/0x170 fs/proc/inode.c:300
 call_read_iter include/linux/fs.h:2068 [inline]
 generic_file_splice_read+0x24f/0x330 fs/splice.c:311
 do_splice_to fs/splice.c:796 [inline]
 splice_direct_to_actor+0x2aa/0x650 fs/splice.c:870
 do_splice_direct+0x106/0x190 fs/splice.c:979
 do_sendfile+0x675/0xc40 fs/read_write.c:1245
 __do_sys_sendfile64 fs/read_write.c:1310 [inline]
 __se_sys_sendfile64 fs/read_write.c:1296 [inline]
 __x64_sys_sendfile64+0x102/0x140 fs/read_write.c:1296
 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: 0x00000133001a655e -> 0x7fffffffffffffff

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 15463 Comm: syz-executor.3 Not tainted 5.17.0-rc7-syzkaller-00060-g92f90cc9fe0e-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (14):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/03/09 14:11 upstream 92f90cc9fe0e 9e8eaa75 .config log report info KCSAN: data-race in hrtimer_interrupt / print_tickdevice
ci2-upstream-kcsan-gce 2022/02/21 07:09 upstream 7f25f0412c9e 3cd800e4 .config log report info KCSAN: data-race in hrtimer_interrupt / print_tickdevice
ci2-upstream-kcsan-gce 2022/02/15 07:07 upstream d567f5db412e 8b9ca619 .config log report info KCSAN: data-race in hrtimer_interrupt / print_tickdevice
ci2-upstream-kcsan-gce 2022/02/05 00:20 upstream 86286e486cbd e13a05ed .config log report info KCSAN: data-race in hrtimer_interrupt / print_tickdevice
ci2-upstream-kcsan-gce 2022/01/06 00:21 upstream 49ef78e59b07 6acc789a .config log report info KCSAN: data-race in hrtimer_interrupt / print_tickdevice
ci2-upstream-kcsan-gce 2021/12/10 16:47 upstream c741e49150db fc17c959 .config log report info KCSAN: data-race in hrtimer_interrupt / print_tickdevice
ci2-upstream-kcsan-gce 2021/11/16 10:16 upstream 8ab774587903 600426bd .config log report info KCSAN: data-race in hrtimer_interrupt / print_tickdevice
ci2-upstream-kcsan-gce 2021/11/05 07:45 upstream d4439a1189f9 4c1be0be .config log report info KCSAN: data-race in hrtimer_interrupt / print_tickdevice
ci2-upstream-kcsan-gce 2021/11/05 04:47 upstream 7ddb58cb0eca 4c1be0be .config log report info KCSAN: data-race in hrtimer_interrupt / print_tickdevice
ci2-upstream-kcsan-gce 2021/11/05 04:46 upstream 7ddb58cb0eca 4c1be0be .config log report info KCSAN: data-race in hrtimer_interrupt / print_tickdevice
ci2-upstream-kcsan-gce 2021/10/21 20:57 upstream 2f111a6fd5b5 55f90bc6 .config log report info KCSAN: data-race in hrtimer_interrupt / print_tickdevice
ci2-upstream-kcsan-gce 2021/10/02 11:38 upstream 53d5fc89d66a db0f5787 .config log report info KCSAN: data-race in hrtimer_interrupt / print_tickdevice
ci2-upstream-kcsan-gce 2021/09/29 05:31 upstream a4e6f95a891a d82cb927 .config log report info KCSAN: data-race in hrtimer_interrupt / print_tickdevice
ci2-upstream-kcsan-gce 2021/09/25 08:37 upstream 7d42e9818258 8cac236e .config log report info KCSAN: data-race in hrtimer_interrupt / print_tickdevice
* Struck through repros no longer work on HEAD.