syzbot


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

Status: auto-closed as invalid on 2022/06/15 02:31
Subsystems: kernel
[Documentation on labels]
First crash: 709d, last: 709d
Similar bugs (10)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in hrtimer_interrupt / print_tickdevice (6) kernel 5 636d 660d 0/26 auto-closed as invalid on 2022/08/27 09:49
upstream KCSAN: data-race in hrtimer_interrupt / print_tickdevice (8) kernel 3 507d 531d 0/26 auto-obsoleted due to no activity on 2023/01/03 04:47
upstream KCSAN: data-race in hrtimer_interrupt / print_tickdevice (4) kernel 14 772d 937d 0/26 auto-closed as invalid on 2022/04/13 14:16
upstream KCSAN: data-race in hrtimer_interrupt / print_tickdevice (2) kernel 3 1073d 1077d 0/26 auto-closed as invalid on 2021/06/16 18:46
upstream KCSAN: data-race in hrtimer_interrupt / print_tickdevice (10) kernel 1 233d 233d 0/26 auto-obsoleted due to no activity on 2023/10/04 07:33
upstream KCSAN: data-race in hrtimer_interrupt / print_tickdevice (7) kernel 1 580d 580d 0/26 auto-obsoleted due to no activity on 2022/10/22 07:07
upstream KCSAN: data-race in hrtimer_interrupt / print_tickdevice (11) kernel 2 117d 130d 0/26 auto-obsoleted due to no activity on 2024/01/28 02:00
upstream KCSAN: data-race in hrtimer_interrupt / print_tickdevice (3) kernel 2 987d 1022d 0/26 auto-closed as invalid on 2021/09/10 15:52
upstream KCSAN: data-race in hrtimer_interrupt / print_tickdevice kernel 1 1189d 1189d 0/26 auto-closed as invalid on 2021/02/20 21:54
upstream KCSAN: data-race in hrtimer_interrupt / print_tickdevice (9) kernel 20 299d 448d 0/26 auto-obsoleted due to no activity on 2023/07/30 02:27

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

write to 0xffff888237c1af18 of 8 bytes by interrupt on cpu 0:
 hrtimer_interrupt+0xa7/0xa70 kernel/time/hrtimer.c:1790
 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
 copy_pte_range+0x44e/0xbc0 mm/memory.c:1079
 copy_pmd_range mm/memory.c:1157 [inline]
 copy_pud_range mm/memory.c:1194 [inline]
 copy_p4d_range mm/memory.c:1218 [inline]
 copy_page_range+0x5da/0x8e0 mm/memory.c:1291
 dup_mmap+0x6e0/0xa60 kernel/fork.c:701
 dup_mm+0x7c/0x210 kernel/fork.c:1521
 copy_mm+0xce/0x140 kernel/fork.c:1573
 copy_process+0xd66/0x20e0 kernel/fork.c:2234
 kernel_clone+0x163/0x5c0 kernel/fork.c:2639
 __do_sys_clone kernel/fork.c:2756 [inline]
 __se_sys_clone kernel/fork.c:2740 [inline]
 __x64_sys_clone+0xbd/0xf0 kernel/fork.c:2740
 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

read to 0xffff888237c1af18 of 8 bytes by task 9407 on cpu 1:
 print_tickdevice+0x158/0x370 kernel/time/timer_list.c:204
 timer_list_show+0x74/0x180 kernel/time/timer_list.c:296
 seq_read_iter+0x676/0x8e0 fs/seq_file.c:272
 proc_reg_read_iter+0xfa/0x170 fs/proc/inode.c:300
 call_read_iter include/linux/fs.h:2044 [inline]
 generic_file_splice_read+0x1de/0x2c0 fs/splice.c:311
 do_splice_to fs/splice.c:796 [inline]
 splice_direct_to_actor+0x2ac/0x660 fs/splice.c:870
 do_splice_direct+0xfb/0x180 fs/splice.c:979
 do_sendfile+0x3ad/0x900 fs/read_write.c:1246
 __do_sys_sendfile64 fs/read_write.c:1311 [inline]
 __se_sys_sendfile64 fs/read_write.c:1297 [inline]
 __x64_sys_sendfile64+0x10c/0x150 fs/read_write.c:1297
 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: 0x00000174839251e6 -> 0x7fffffffffffffff

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 9407 Comm: syz-executor.2 Not tainted 5.18.0-rc6-syzkaller-00009-gfeb9c5e19e91 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/05/11 02:25 upstream feb9c5e19e91 8d7b3b67 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in hrtimer_interrupt / print_tickdevice
2022/05/11 02:16 upstream feb9c5e19e91 8d7b3b67 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in hrtimer_interrupt / print_tickdevice
* Struck through repros no longer work on HEAD.