syzbot


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

Status: auto-closed as invalid on 2022/08/15 19:00
Subsystems: kernel
[Documentation on labels]
First crash: 672d, last: 646d
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in clockevents_program_event / print_tickdevice (8) kernel 1 121d 121d 0/26 auto-obsoleted due to no activity on 2024/01/23 08:37
upstream KCSAN: data-race in clockevents_program_event / print_tickdevice (6) kernel 28 307d 599d 0/26 auto-obsoleted due to no activity on 2023/07/21 02:50
upstream KCSAN: data-race in clockevents_program_event / print_tickdevice (7) kernel 2 174d 175d 0/26 auto-obsoleted due to no activity on 2023/11/30 21:56
upstream KCSAN: data-race in clockevents_program_event / print_tickdevice (2) kernel 1 1007d 1007d 0/26 auto-closed as invalid on 2021/08/19 20:40
upstream KCSAN: data-race in clockevents_program_event / print_tickdevice (9) kernel 1 9d22h 9d22h 0/26 moderation: reported on 2024/04/08 19:49
upstream KCSAN: data-race in clockevents_program_event / print_tickdevice (4) kernel 1 796d 796d 0/26 auto-closed as invalid on 2022/03/19 14:36
upstream KCSAN: data-race in clockevents_program_event / print_tickdevice kernel 1 1091d 1087d 0/26 auto-closed as invalid on 2021/05/28 09:07
upstream KCSAN: data-race in clockevents_program_event / print_tickdevice (3) kernel 5 897d 928d 0/26 auto-closed as invalid on 2021/12/08 10:38

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

write to 0xffff888237c1aed8 of 8 bytes by interrupt on cpu 0:
 clockevents_program_event+0x30/0x1e0 kernel/time/clockevents.c:313
 tick_program_event+0x84/0xd0 kernel/time/tick-oneshot.c:44
 __hrtimer_reprogram kernel/time/hrtimer.c:681 [inline]
 hrtimer_reprogram+0x20b/0x250 kernel/time/hrtimer.c:866
 hrtimer_update_softirq_timer kernel/time/hrtimer.c:1209 [inline]
 hrtimer_run_softirq+0x44c/0x480 kernel/time/hrtimer.c:1769
 __do_softirq+0x158/0x2e3 kernel/softirq.c:571
 run_ksoftirqd+0x1f/0x30 kernel/softirq.c:934
 smpboot_thread_fn+0x308/0x4a0 kernel/smpboot.c:164
 kthread+0x1a9/0x1e0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30

read to 0xffff888237c1aed8 of 8 bytes by task 21597 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:2052 [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:1262
 __do_sys_sendfile64 fs/read_write.c:1327 [inline]
 __se_sys_sendfile64 fs/read_write.c:1313 [inline]
 __x64_sys_sendfile64+0x10c/0x150 fs/read_write.c:1313
 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+0x46/0xb0

value changed: 0x0000005b7386f041 -> 0x0000005b737a9886

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 21597 Comm: syz-executor.3 Not tainted 5.19.0-rc6-syzkaller-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022
==================================================================

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/07/11 18:51 upstream 32346491ddf2 f3f217ff .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in clockevents_program_event / print_tickdevice
2022/06/30 01:53 upstream d9b2ba67917c 1434eec0 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in clockevents_program_event / print_tickdevice
2022/06/27 11:24 upstream 03c765b0e3b4 a371c43c .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in clockevents_program_event / print_tickdevice
2022/06/26 19:59 upstream 82708bb1eb9e a371c43c .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in clockevents_program_event / print_tickdevice
2022/06/19 06:43 upstream 354c6e071be9 8f633d84 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in clockevents_program_event / print_tickdevice
2022/06/19 01:02 upstream 4b35035bcf80 8f633d84 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in clockevents_program_event / print_tickdevice
2022/06/15 22:10 upstream 018ab4fabddd 1719ee24 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in clockevents_program_event / print_tickdevice
* Struck through repros no longer work on HEAD.