syzbot


KCSAN: data-race in clockevents_program_min_delta / print_tickdevice (2)

Status: auto-obsoleted due to no activity on 2023/04/25 16:15
Subsystems: kernel
[Documentation on labels]
First crash: 670d, last: 550d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in clockevents_program_min_delta / print_tickdevice (3) kernel 1 492d 492d 0/28 auto-obsoleted due to no activity on 2023/06/18 09:00
upstream KCSAN: data-race in clockevents_program_min_delta / print_tickdevice kernel 2 728d 729d 0/28 auto-obsoleted due to no activity on 2022/10/25 15:55
upstream KCSAN: data-race in clockevents_program_min_delta / print_tickdevice (4) kernel 1 44d 44d 0/28 auto-obsoleted due to no activity on 2024/09/08 12:24

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

read-write to 0xffff888237d1bf40 of 8 bytes by interrupt on cpu 1:
 clockevents_program_min_delta+0xb6/0x250 kernel/time/clockevents.c:246
 clockevents_program_event+0x16f/0x1d0
 tick_program_event+0x88/0xd0 kernel/time/tick-oneshot.c:44
 __hrtimer_reprogram kernel/time/hrtimer.c:681 [inline]
 hrtimer_reprogram+0x201/0x240 kernel/time/hrtimer.c:866
 hrtimer_update_softirq_timer+0x1e0/0x1f0 kernel/time/hrtimer.c:1209
 hrtimer_run_softirq+0x118/0x140 kernel/time/hrtimer.c:1769
 __do_softirq+0xe4/0x2b0 kernel/softirq.c:571
 run_ksoftirqd+0x23/0x30 kernel/softirq.c:934
 smpboot_thread_fn+0x2f8/0x490 kernel/smpboot.c:164
 kthread+0x1ac/0x1e0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308

read to 0xffff888237d1bf40 of 8 bytes by task 3815 on cpu 0:
 print_tickdevice+0x2ae/0x340 kernel/time/timer_list.c:230
 timer_list_show+0x79/0x180 kernel/time/timer_list.c:296
 seq_read_iter+0x612/0x8f0 fs/seq_file.c:272
 proc_reg_read_iter+0x10e/0x180 fs/proc/inode.c:305
 call_read_iter include/linux/fs.h:1845 [inline]
 generic_file_splice_read+0xe3/0x290 fs/splice.c:402
 do_splice_to fs/splice.c:885 [inline]
 splice_direct_to_actor+0x25a/0x5f0 fs/splice.c:956
 do_splice_direct+0x104/0x180 fs/splice.c:1065
 do_sendfile+0x3b8/0x950 fs/read_write.c:1255
 __do_sys_sendfile64 fs/read_write.c:1323 [inline]
 __se_sys_sendfile64 fs/read_write.c:1309 [inline]
 __x64_sys_sendfile64+0x110/0x150 fs/read_write.c:1309
 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: 0x0000000000003bdd -> 0x0000000000003bde

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 3815 Comm: syz-executor.5 Not tainted 6.3.0-rc2-syzkaller-00077-g38e04b3e4240 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
==================================================================

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/03/17 19:02 upstream 38e04b3e4240 7939252e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in clockevents_program_min_delta / print_tickdevice
2023/03/04 14:04 upstream 0988a0ea7919 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in clockevents_program_min_delta / print_tickdevice
2023/02/08 05:36 upstream 513c1a3d3f19 15c3d445 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in clockevents_program_min_delta / print_tickdevice
2023/01/13 17:24 upstream d9fc1511728c 529798b0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in clockevents_program_min_delta / print_tickdevice
2022/12/07 16:28 upstream 8ed710da2873 d88f3abb .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in clockevents_program_min_delta / print_tickdevice
2022/11/17 01:23 upstream 59d0d52c30d4 3a127a31 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in clockevents_program_min_delta / print_tickdevice
* Struck through repros no longer work on HEAD.