syzbot


KMSAN: uninit-value in profile_hits (3)

Status: fixed on 2024/08/23 02:59
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+b1a83ab2a9eb9321fbdd@syzkaller.appspotmail.com
Fix commit: 7c51f7bbf057 profiling: remove prof_cpu_mask
First crash: 985d, last: 139d
Discussions (4)
Title Replies (including bot) Last reply
[PATCH] profiling: remove prof_cpu_mask 1 (1) 2024/07/27 10:59
[syzbot] [kernel?] KMSAN: uninit-value in profile_hits (3) 2 (6) 2024/07/27 10:55
[PATCH 1/2] profiling: initialize prof_cpu_mask from profile_online_cpu() 1 (1) 2024/06/25 04:54
[PATCH] profiling: initialize prof_cpu_mask from profile_online_cpu() 6 (6) 2024/05/24 13:28
Similar bugs (20)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KMSAN: uninit-value in profile_hits (2) kernel 4 1107d 1118d 0/28 auto-closed as invalid on 2022/03/03 02:13
upstream KMSAN: uninit-value in profile_hits kernel C 43 1244d 1244d 0/28 closed as invalid on 2021/07/19 13:31
android-54 KASAN: user-memory-access Write in profile_hits (2) 1 796d 796d 0/2 auto-obsoleted due to no activity on 2023/02/07 02:54
android-54 KASAN: user-memory-access Write in profile_hits 1 1071d 1071d 0/2 auto-closed as invalid on 2022/05/08 09:48
upstream KMSAN: uninit-value in hid_connect kernel C 176 773d 1123d 0/28 closed as invalid on 2022/11/03 08:52
upstream KMSAN: uninit-value in preempt_count_add kernel C 6657 797d 797d 0/28 closed as invalid on 2022/10/10 13:29
upstream KMSAN: kernel-infoleak in _copy_to_iter (7) net C 138977 659d 1011d 22/28 fixed on 2023/02/24 13:50
upstream KMSAN: uninit-value in snd_pcm_hw_rule_add (2) sound 18 911d 1178d 0/28 auto-closed as invalid on 2022/09/15 02:38
upstream KMSAN: uninit-value in seq_printf (2) fs C 99 912d 1179d 0/28 auto-closed as invalid on 2022/09/30 02:43
upstream KMSAN: uninit-value in number (4) kernel C 7189 752d 1130d 0/28 closed as invalid on 2022/11/28 10:01
upstream KMSAN: uninit-value in vsscanf bluetooth syz 9 1017d 1083d 0/28 auto-closed as invalid on 2022/09/27 18:52
upstream KMSAN: uninit-value in kobject_set_name_vargs kernel 5 988d 1117d 0/28 auto-closed as invalid on 2022/06/30 14:28
upstream KMSAN: uninit-value in asix_read_cmd usb syz 8 944d 1094d 0/28 auto-closed as invalid on 2022/09/29 13:21
upstream KMSAN: uninit-value in usbnet_probe (2) usb syz 6 1073d 1089d 0/28 auto-closed as invalid on 2022/09/27 01:28
upstream KMSAN: uninit-value in kallsyms_lookup_buildid usb C 232 806d 1082d 0/28 closed as invalid on 2022/11/03 10:09
upstream KMSAN: uninit-value in batadv_tt_hash_find (2) batman 1 1071d 1071d 0/28 auto-closed as invalid on 2022/04/07 21:37
upstream KMSAN: uninit-value in __vmalloc_node_range block 5 1061d 1106d 0/28 auto-closed as invalid on 2022/04/17 19:38
upstream KMSAN: uninit-value in kallsyms_lookup_buildid (2) kernel 12 665d 673d 0/28 closed as invalid on 2023/03/06 11:22
upstream KMSAN: uninit-value in p9pdu_readf v9fs 14 1046d 1161d 20/28 fixed on 2022/03/08 16:11
upstream KMSAN: uninit-value in asix_mdio_read (3) usb C 1582 942d 1007d 22/28 fixed on 2023/02/24 13:51
Last patch testing requests (13)
Created Duration User Patch Repo Result
2024/07/27 10:24 30m penguin-kernel@i-love.sakura.ne.jp patch upstream OK log
2024/02/17 01:18 18m retest repro upstream report log
2024/01/15 05:45 23m retest repro upstream OK log
2024/01/15 05:45 22m retest repro upstream OK log
2024/01/15 03:37 23m retest repro upstream OK log
2024/01/15 03:37 22m retest repro upstream OK log
2024/01/15 03:37 22m retest repro upstream OK log
2024/01/15 03:37 22m retest repro upstream OK log
2024/01/15 03:37 22m retest repro upstream OK log
2023/12/30 05:38 19m eadavis@qq.com patch https://github.com/google/kmsan.git master OK log
2023/12/29 16:38 17m penguin-kernel@i-love.sakura.ne.jp patch upstream OK log
2023/09/15 15:08 17m retest repro upstream report log
2023/09/15 15:08 16m retest repro upstream report log

Sample crash report:
=====================================================
BUG: KMSAN: uninit-value in profile_hit include/linux/profile.h:53 [inline]
BUG: KMSAN: uninit-value in profile_tick+0x1ae/0x1b0 kernel/profile.c:339
 profile_hit include/linux/profile.h:53 [inline]
 profile_tick+0x1ae/0x1b0 kernel/profile.c:339
 tick_sched_handle kernel/time/tick-sched.c:277 [inline]
 tick_nohz_handler+0x588/0x690 kernel/time/tick-sched.c:297
 __run_hrtimer kernel/time/hrtimer.c:1687 [inline]
 __hrtimer_run_queues+0x56f/0xe40 kernel/time/hrtimer.c:1751
 hrtimer_interrupt+0x3ab/0x1490 kernel/time/hrtimer.c:1813
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1032 [inline]
 __sysvec_apic_timer_interrupt+0xa6/0x3a0 arch/x86/kernel/apic/apic.c:1049
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline]
 sysvec_apic_timer_interrupt+0x7e/0x90 arch/x86/kernel/apic/apic.c:1043
 asm_sysvec_apic_timer_interrupt+0x1f/0x30 arch/x86/include/asm/idtentry.h:702
 __preempt_count_dec_and_test arch/x86/include/asm/preempt.h:94 [inline]
 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline]
 _raw_spin_unlock_irqrestore+0x33/0x60 kernel/locking/spinlock.c:194
 spin_unlock_irqrestore include/linux/spinlock.h:406 [inline]
 do_notify_parent_cldstop+0x790/0x810 kernel/signal.c:2218
 ptrace_stop+0x672/0xd60 kernel/signal.c:2321
 ptrace_do_notify kernel/signal.c:2395 [inline]
 ptrace_notify+0x234/0x320 kernel/signal.c:2407
 ptrace_report_syscall include/linux/ptrace.h:415 [inline]
 ptrace_report_syscall_entry include/linux/ptrace.h:452 [inline]
 syscall_trace_enter+0xe2/0x600 kernel/entry/common.c:45
 syscall_enter_from_user_mode_work include/linux/entry-common.h:168 [inline]
 syscall_enter_from_user_mode include/linux/entry-common.h:198 [inline]
 do_syscall_64+0xa6/0x1e0 arch/x86/entry/common.c:79
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Local variable ewq created at:
 userfaultfd_unmap_complete+0x41/0x540 fs/userfaultfd.c:850
 vm_mmap_pgoff+0x2cf/0x4e0 mm/util.c:576

CPU: 1 PID: 5045 Comm: syz-executor255 Not tainted 6.9.0-syzkaller-02707-g614da38e2f7a #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
=====================================================

Crashes (1529):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/05/24 20:09 upstream 614da38e2f7a 8f98448e .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in profile_tick
2024/04/25 07:15 upstream e88c4cfcb7b8 8bdc0f22 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in profile_tick
2024/01/15 21:12 upstream 9f8413c4a66f 2a7bcc7f .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in profile_tick
2022/04/03 18:48 https://github.com/google/kmsan.git master 1978a14f70af 79a2a8fc .config console log report syz C ci-upstream-kmsan-gce KMSAN: uninit-value in profile_hits
2023/12/09 21:50 upstream f2e8a57ee903 28b24332 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in profile_tick
2023/11/23 06:53 upstream 9b6de136b5f0 03e12510 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in profile_tick
2023/11/23 05:52 upstream 9b6de136b5f0 03e12510 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in profile_tick
2023/10/16 10:02 upstream 58720809f527 6388bc36 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in profile_tick
2023/07/07 10:50 https://github.com/google/kmsan.git master 257152fe29be 22ae5830 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in profile_tick
2023/03/21 18:26 https://github.com/google/kmsan.git master 90ea0df61c98 03fb9538 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in profile_tick
2023/02/18 00:36 https://github.com/google/kmsan.git master 31b504f219a9 3e7039f4 .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in profile_hits
2022/04/03 17:53 https://github.com/google/kmsan.git master 1978a14f70af 79a2a8fc .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in profile_hits
2024/06/14 14:18 upstream 614da38e2f7a a9616ff5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in profile_tick
2024/06/14 12:50 upstream 614da38e2f7a a9616ff5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in profile_tick
2024/06/14 08:13 upstream 614da38e2f7a a9616ff5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in profile_tick
2024/06/14 04:16 upstream 614da38e2f7a a9616ff5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in profile_tick
2024/06/13 22:36 upstream 614da38e2f7a a9616ff5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in profile_tick
2024/06/13 20:28 upstream 614da38e2f7a a9616ff5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in profile_tick
2024/06/13 14:24 upstream 614da38e2f7a 2aa5052f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in profile_tick
2024/06/13 12:32 upstream 614da38e2f7a 2aa5052f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in profile_tick
2024/06/13 09:42 upstream 614da38e2f7a 2aa5052f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in profile_tick
2024/06/13 01:29 upstream 614da38e2f7a 2aa5052f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in profile_tick
2024/06/12 06:57 upstream 614da38e2f7a 4d75f4f7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in profile_tick
2024/06/12 05:02 upstream 614da38e2f7a 4d75f4f7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in profile_tick
2024/06/12 00:18 upstream 614da38e2f7a c7d7d815 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in profile_tick
2024/06/11 23:09 upstream 614da38e2f7a c7d7d815 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in profile_tick
2024/06/11 21:36 upstream 614da38e2f7a c7d7d815 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in profile_tick
2024/06/11 16:47 upstream 614da38e2f7a c7d7d815 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in profile_tick
2024/06/11 16:47 upstream 614da38e2f7a c7d7d815 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in profile_tick
2024/06/11 15:47 upstream 614da38e2f7a c7d7d815 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in profile_tick
2024/06/11 11:37 upstream 614da38e2f7a c7d7d815 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in profile_tick
2024/06/11 09:31 upstream 614da38e2f7a 048c640a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in profile_tick
2024/06/11 05:05 upstream 614da38e2f7a 048c640a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in profile_tick
2024/06/11 00:21 upstream 614da38e2f7a 048c640a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in profile_tick
2024/06/10 17:41 upstream 614da38e2f7a 048c640a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in profile_tick
2024/06/10 06:53 upstream 614da38e2f7a 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in profile_tick
2024/06/10 03:43 upstream 614da38e2f7a 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in profile_tick
2024/06/10 01:03 upstream 614da38e2f7a 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in profile_tick
2024/06/09 20:00 upstream 614da38e2f7a 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in profile_tick
2024/06/09 15:23 upstream 614da38e2f7a 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in profile_tick
2024/06/09 14:22 upstream 614da38e2f7a 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in profile_tick
2024/06/09 06:28 upstream 614da38e2f7a 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in profile_tick
2024/06/09 06:23 upstream 614da38e2f7a 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in profile_tick
2024/06/09 02:47 upstream 614da38e2f7a 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in profile_tick
2023/12/18 22:18 upstream 2cf4f94d8e86 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in profile_tick
2023/12/14 11:21 upstream 5bd7ef53ffe5 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in profile_tick
2024/06/14 12:03 upstream 101b7a97143a a9616ff5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in profile_tick
2024/06/14 01:51 upstream 101b7a97143a a9616ff5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in profile_tick
2024/06/13 04:04 upstream 101b7a97143a 2aa5052f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in profile_tick
2024/06/12 10:22 upstream 101b7a97143a 4d75f4f7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in profile_tick
2024/06/11 19:54 upstream 101b7a97143a c7d7d815 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in profile_tick
2024/06/11 18:49 upstream 101b7a97143a c7d7d815 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in profile_tick
2024/06/11 08:02 upstream 101b7a97143a 048c640a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in profile_tick
2024/06/11 07:39 upstream 101b7a97143a 048c640a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in profile_tick
2024/06/10 17:20 upstream 101b7a97143a 048c640a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in profile_tick
2024/06/10 05:16 upstream 101b7a97143a 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in profile_tick
2024/06/09 23:27 upstream 101b7a97143a 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in profile_tick
2024/06/09 03:48 upstream 101b7a97143a 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in profile_tick
2023/12/13 23:24 upstream 5bd7ef53ffe5 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in profile_tick
2024/07/28 01:38 upstream 6342649c33d2 46eb10b7 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-compat KASAN: slab-use-after-free Read in profile_tick
* Struck through repros no longer work on HEAD.