syzbot


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

Status: auto-obsoleted due to no activity on 2023/11/30 21:56
Subsystems: kernel
[Documentation on labels]
First crash: 188d, last: 187d
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 134d 134d 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 320d 612d 0/26 auto-obsoleted due to no activity on 2023/07/21 02:50
upstream KCSAN: data-race in clockevents_program_event / print_tickdevice (5) kernel 7 659d 685d 0/26 auto-closed as invalid on 2022/08/15 19:00
upstream KCSAN: data-race in clockevents_program_event / print_tickdevice (2) kernel 1 1020d 1020d 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 22d 22d 0/26 moderation: reported on 2024/04/08 19:49
upstream KCSAN: data-race in clockevents_program_event / print_tickdevice (4) kernel 1 808d 808d 0/26 auto-closed as invalid on 2022/03/19 14:36
upstream KCSAN: data-race in clockevents_program_event / print_tickdevice kernel 1 1104d 1100d 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 910d 940d 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 0xffff888237c1bf18 of 8 bytes by task 31284 on cpu 0:
 clockevents_program_event+0x34/0x1d0 kernel/time/clockevents.c:313
 tick_program_event+0x7c/0xc0 kernel/time/tick-oneshot.c:44
 __hrtimer_reprogram kernel/time/hrtimer.c:683 [inline]
 hrtimer_reprogram+0x1eb/0x230 kernel/time/hrtimer.c:868
 hrtimer_start_range_ns+0x4e8/0x660 kernel/time/hrtimer.c:1302
 hrtimer_start_expires include/linux/hrtimer.h:432 [inline]
 hrtimer_sleeper_start_expires kernel/time/hrtimer.c:1968 [inline]
 do_nanosleep+0x85/0x2f0 kernel/time/hrtimer.c:2044
 hrtimer_nanosleep+0xe7/0x1e0 kernel/time/hrtimer.c:2100
 common_nsleep+0x68/0x80 kernel/time/posix-timers.c:1350
 __do_sys_clock_nanosleep kernel/time/posix-timers.c:1396 [inline]
 __se_sys_clock_nanosleep+0x202/0x230 kernel/time/posix-timers.c:1373
 __x64_sys_clock_nanosleep+0x55/0x60 kernel/time/posix-timers.c:1373
 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

read to 0xffff888237c1bf18 of 8 bytes by task 25901 on cpu 1:
 print_tickdevice+0x144/0x340 kernel/time/timer_list.c:204
 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+0x114/0x180 fs/proc/inode.c:305
 call_read_iter include/linux/fs.h:1950 [inline]
 copy_splice_read+0x26b/0x4b0 fs/splice.c:364
 vfs_splice_read fs/splice.c:993 [inline]
 splice_direct_to_actor+0x28c/0x690 fs/splice.c:1069
 do_splice_direct+0x10d/0x190 fs/splice.c:1194
 do_sendfile+0x3b6/0x9a0 fs/read_write.c:1254
 __do_sys_sendfile64 fs/read_write.c:1322 [inline]
 __se_sys_sendfile64 fs/read_write.c:1308 [inline]
 __x64_sys_sendfile64+0x110/0x150 fs/read_write.c:1308
 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: 0x0000018bd8d63980 -> 0x0000018bd89bcca1

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 25901 Comm: syz-executor.0 Not tainted 6.6.0-rc7-syzkaller-00123-g3a568e3a961b #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/10/26 21:48 upstream 3a568e3a961b 23afc60f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in clockevents_program_event / print_tickdevice
2023/10/26 02:23 upstream 611da07b89fd 72e794c4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in clockevents_program_event / print_tickdevice
* Struck through repros no longer work on HEAD.