syzbot


KCSAN: data-race in clockevents_program_min_delta / print_tickdevice

Status: auto-obsoleted due to no activity on 2022/10/25 15:55
Subsystems: kernel
[Documentation on labels]
First crash: 590d, last: 589d
Similar bugs (2)
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 353d 353d 0/26 auto-obsoleted due to no activity on 2023/06/18 09:00
upstream KCSAN: data-race in clockevents_program_min_delta / print_tickdevice (2) kernel 6 411d 531d 0/26 auto-obsoleted due to no activity on 2023/04/25 16:15

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

read-write to 0xffff888237c1af00 of 8 bytes by interrupt on cpu 0:
 clockevents_program_min_delta+0xc1/0x270 kernel/time/clockevents.c:246
 clockevents_program_event+0x180/0x1e0
 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 0xffff888237c1af00 of 8 bytes by task 15619 on cpu 1:
 print_tickdevice+0x2d4/0x370 kernel/time/timer_list.c:230
 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:305
 call_read_iter include/linux/fs.h:2181 [inline]
 generic_file_splice_read+0xde/0x2b0 fs/splice.c:309
 do_splice_to fs/splice.c:793 [inline]
 splice_direct_to_actor+0x26c/0x620 fs/splice.c:865
 do_splice_direct+0xfb/0x180 fs/splice.c:974
 do_sendfile+0x3bf/0x910 fs/read_write.c:1249
 __do_sys_sendfile64 fs/read_write.c:1317 [inline]
 __se_sys_sendfile64 fs/read_write.c:1303 [inline]
 __x64_sys_sendfile64+0x10c/0x150 fs/read_write.c:1303
 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+0x63/0xcd

value changed: 0x00000000000d950f -> 0x00000000000d9511

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

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/09/20 15:52 upstream 521a547ced64 7c41a9ba .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in clockevents_program_min_delta / print_tickdevice
2022/09/19 15:04 upstream 521a547ced64 dd9a85ff .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in clockevents_program_min_delta / print_tickdevice
* Struck through repros no longer work on HEAD.