syzbot


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

Status: auto-closed as invalid on 2022/08/27 09:49
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 156d, last: 132d
similar bugs (6):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in hrtimer_interrupt / print_tickdevice (4) 14 268d 433d 0/24 auto-closed as invalid on 2022/04/13 14:16
upstream KCSAN: data-race in hrtimer_interrupt / print_tickdevice (2) 3 569d 573d 0/24 auto-closed as invalid on 2021/06/16 18:46
upstream KCSAN: data-race in hrtimer_interrupt / print_tickdevice (5) 2 206d 206d 0/24 auto-closed as invalid on 2022/06/15 02:31
upstream KCSAN: data-race in hrtimer_interrupt / print_tickdevice (7) 1 76d 76d 0/24 auto-obsoleted due to no activity on 2022/10/22 07:07
upstream KCSAN: data-race in hrtimer_interrupt / print_tickdevice (3) 2 483d 518d 0/24 auto-closed as invalid on 2021/09/10 15:52
upstream KCSAN: data-race in hrtimer_interrupt / print_tickdevice 1 685d 685d 0/24 auto-closed as invalid on 2021/02/20 21:54

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

write to 0xffff888237c1aed8 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:1095 [inline]
 __sysvec_apic_timer_interrupt+0xa3/0x250 arch/x86/kernel/apic/apic.c:1112
 sysvec_apic_timer_interrupt+0x88/0xb0 arch/x86/kernel/apic/apic.c:1106
 asm_sysvec_apic_timer_interrupt+0x16/0x20
 check_kcov_mode kernel/kcov.c:168 [inline]
 __sanitizer_cov_trace_pc+0x33/0x60 kernel/kcov.c:200
 process_output_block drivers/tty/n_tty.c:546 [inline]
 n_tty_write+0x755/0xb40 drivers/tty/n_tty.c:2297
 do_tty_write drivers/tty/tty_io.c:1024 [inline]
 file_tty_write+0x3f9/0x650 drivers/tty/tty_io.c:1095
 tty_write+0x24/0x30 drivers/tty/tty_io.c:1116
 do_iter_readv_writev+0x27b/0x300
 do_iter_write+0x16f/0x5c0 fs/read_write.c:868
 vfs_iter_write+0x4c/0x70 fs/read_write.c:909
 iter_file_splice_write+0x44a/0x7c0 fs/splice.c:689
 do_splice_from fs/splice.c:767 [inline]
 direct_splice_actor+0x80/0xa0 fs/splice.c:936
 splice_direct_to_actor+0x345/0x660 fs/splice.c:891
 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+0x63/0xcd

read to 0xffff888237c1aed8 of 8 bytes by task 18940 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+0x63/0xcd

value changed: 0x0000004ee26c80a8 -> 0x7fffffffffffffff

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

Crashes (5):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/07/23 09:46 upstream 70664fc10c0d 22343af4 .config log report info KCSAN: data-race in hrtimer_interrupt / print_tickdevice
ci2-upstream-kcsan-gce 2022/07/12 05:25 upstream 5a29232d870d da3d6955 .config log report info KCSAN: data-race in hrtimer_interrupt / print_tickdevice
ci2-upstream-kcsan-gce 2022/07/11 02:24 upstream d9919d43cbf6 b5765a15 .config log report info KCSAN: data-race in hrtimer_interrupt / print_tickdevice
ci2-upstream-kcsan-gce 2022/06/30 20:47 upstream 1a0e93df1e10 1434eec0 .config log report info KCSAN: data-race in hrtimer_interrupt / print_tickdevice
ci2-upstream-kcsan-gce 2022/06/29 14:07 upstream 941e3e791269 1434eec0 .config log report info KCSAN: data-race in hrtimer_interrupt / print_tickdevice
* Struck through repros no longer work on HEAD.