syzbot


KMSAN: uninit-value in drm_mode_setcrtc

Status: fixed on 2024/01/20 21:18
Subsystems: dri
[Documentation on labels]
Reported-by: syzbot+4fad2e57beb6397ab2fc@syzkaller.appspotmail.com
Fix commit: 3823119b9c2b drm/crtc: Fix uninit-value bug in drm_mode_setcrtc 6e455f5dcdd1 drm/crtc: fix uninitialized variable use
First crash: 358d, last: 168d
Discussions (14)
Title Replies (including bot) Last reply
[PATCH AUTOSEL 4.14 3/6] drm/crtc: Fix uninit-value bug in drm_mode_setcrtc 4 (4) 2024/01/16 10:46
Re: linux-next: duplicate patches in the cxl-fixes tree 1 (1) 2024/01/04 22:14
[PATCH AUTOSEL 4.19 3/6] drm/crtc: Fix uninit-value bug in drm_mode_setcrtc 1 (1) 2023/12/18 12:47
[PATCH AUTOSEL 5.4 3/7] drm/crtc: Fix uninit-value bug in drm_mode_setcrtc 1 (1) 2023/12/18 12:46
[PATCH AUTOSEL 5.10 3/8] drm/crtc: Fix uninit-value bug in drm_mode_setcrtc 1 (1) 2023/12/18 12:46
[PATCH AUTOSEL 5.15 03/13] drm/crtc: Fix uninit-value bug in drm_mode_setcrtc 1 (1) 2023/12/18 12:45
[PATCH AUTOSEL 6.1 05/15] drm/crtc: Fix uninit-value bug in drm_mode_setcrtc 1 (1) 2023/12/18 12:44
[PATCH AUTOSEL 6.6 07/18] drm/crtc: Fix uninit-value bug in drm_mode_setcrtc 1 (1) 2023/12/18 12:43
Re: [PATCH] drm/crtc: Fix uninit-value bug in drm_mode_setcrtc 1 (1) 2023/12/08 13:05
Re: [PATCH] drm/crtc: Fix uninit-value bug in drm_mode_setcrtc 1 (1) 2023/12/08 09:23
Re: [PATCH] drm/crtc: Fix uninit-value bug in drm_mode_setcrtc 1 (1) 2023/12/08 06:57
[syzbot] Monthly dri report (Nov 2023) 0 (1) 2023/11/30 20:33
[syzbot] Monthly dri report (Oct 2023) 0 (1) 2023/10/30 12:59
[syzbot] [dri?] KMSAN: uninit-value in drm_mode_setcrtc 0 (1) 2023/06/17 18:42
Last patch testing requests (4)
Created Duration User Patch Repo Result
2023/12/03 19:07 20m retest repro upstream report log
2023/12/03 19:07 16m retest repro upstream report log
2023/09/12 12:25 16m retest repro upstream report log
2023/07/16 04:34 26m astrajoan@yahoo.com patch https://github.com/google/kmsan.git master OK log

Sample crash report:
=====================================================
BUG: KMSAN: uninit-value in drm_mode_setcrtc+0x1ad3/0x24a0 drivers/gpu/drm/drm_crtc.c:896
 drm_mode_setcrtc+0x1ad3/0x24a0 drivers/gpu/drm/drm_crtc.c:896
 drm_ioctl_kernel+0x5bc/0x740 drivers/gpu/drm/drm_ioctl.c:792
 drm_ioctl+0xd12/0x1590 drivers/gpu/drm/drm_ioctl.c:895
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:871 [inline]
 __se_sys_ioctl+0x225/0x410 fs/ioctl.c:857
 __x64_sys_ioctl+0x96/0xe0 fs/ioctl.c:857
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0x44/0x110 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

Uninit was created at:
 slab_post_alloc_hook+0x129/0xa70 mm/slab.h:768
 slab_alloc_node mm/slub.c:3478 [inline]
 __kmem_cache_alloc_node+0x5c9/0x970 mm/slub.c:3517
 __do_kmalloc_node mm/slab_common.c:1006 [inline]
 __kmalloc+0x121/0x3c0 mm/slab_common.c:1020
 kmalloc_array include/linux/slab.h:637 [inline]
 drm_mode_setcrtc+0x1dba/0x24a0 drivers/gpu/drm/drm_crtc.c:846
 drm_ioctl_kernel+0x5bc/0x740 drivers/gpu/drm/drm_ioctl.c:792
 drm_ioctl+0xd12/0x1590 drivers/gpu/drm/drm_ioctl.c:895
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:871 [inline]
 __se_sys_ioctl+0x225/0x410 fs/ioctl.c:857
 __x64_sys_ioctl+0x96/0xe0 fs/ioctl.c:857
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0x44/0x110 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

CPU: 0 PID: 5010 Comm: syz-executor138 Not tainted 6.7.0-rc4-syzkaller-00424-gc527f5606aa5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023
=====================================================

Crashes (41):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/12/10 21:25 upstream c527f5606aa5 28b24332 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in drm_mode_setcrtc
2023/10/18 10:18 upstream 06dc10eae55b 342b9c55 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in drm_mode_setcrtc
2023/06/04 04:54 https://github.com/google/kmsan.git master 2741f1b02117 a4ae4f42 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in drm_mode_setcrtc
2023/11/19 16:24 upstream 037266a5f723 cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in drm_mode_setcrtc
2023/11/19 15:56 upstream 037266a5f723 cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in drm_mode_setcrtc
2023/11/19 03:09 upstream 23dfa043f6d5 cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in drm_mode_setcrtc
2023/11/18 19:07 upstream 791c8ab095f7 cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in drm_mode_setcrtc
2023/11/15 03:58 upstream 9bacdd8996c7 cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in drm_mode_setcrtc
2023/11/15 03:45 upstream 9bacdd8996c7 cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in drm_mode_setcrtc
2023/11/15 03:44 upstream 9bacdd8996c7 cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in drm_mode_setcrtc
2023/11/15 03:31 upstream 9bacdd8996c7 cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in drm_mode_setcrtc
2023/11/05 19:39 upstream 1c41041124bd 500bfdc4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in drm_mode_setcrtc
2023/10/23 07:41 upstream fe3cfe869d5e 361b23dc .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in drm_mode_setcrtc
2023/10/23 07:21 upstream fe3cfe869d5e 361b23dc .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in drm_mode_setcrtc
2023/10/18 08:14 upstream 06dc10eae55b 342b9c55 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in drm_mode_setcrtc
2023/10/17 02:38 upstream 58720809f527 6388bc36 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in drm_mode_setcrtc
2023/10/17 01:41 upstream 58720809f527 6388bc36 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in drm_mode_setcrtc
2023/11/19 18:47 upstream 037266a5f723 cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in drm_mode_setcrtc
2023/11/19 15:58 upstream 037266a5f723 cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in drm_mode_setcrtc
2023/11/15 04:14 upstream 9bacdd8996c7 cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in drm_mode_setcrtc
2023/11/15 03:48 upstream 9bacdd8996c7 cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in drm_mode_setcrtc
2023/11/15 03:47 upstream 9bacdd8996c7 cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in drm_mode_setcrtc
2023/11/15 03:31 upstream 9bacdd8996c7 cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in drm_mode_setcrtc
2023/11/15 03:30 upstream 9bacdd8996c7 cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in drm_mode_setcrtc
2023/11/05 22:25 upstream 1c41041124bd 500bfdc4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in drm_mode_setcrtc
2023/11/05 19:51 upstream 1c41041124bd 500bfdc4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in drm_mode_setcrtc
2023/10/23 07:26 upstream fe3cfe869d5e 361b23dc .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in drm_mode_setcrtc
2023/10/17 02:37 upstream 58720809f527 6388bc36 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in drm_mode_setcrtc
2023/10/17 01:54 upstream 58720809f527 6388bc36 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in drm_mode_setcrtc
2023/08/29 09:36 upstream 727dbda16b83 7ba13a15 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in drm_mode_setcrtc
2023/08/29 08:35 upstream 727dbda16b83 7ba13a15 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in drm_mode_setcrtc
2023/07/12 02:42 upstream 3f01e9fed845 2f19aa4f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in drm_mode_setcrtc
2023/07/09 23:45 https://github.com/google/kmsan.git master 257152fe29be 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in drm_mode_setcrtc
2023/07/09 23:13 https://github.com/google/kmsan.git master 257152fe29be 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in drm_mode_setcrtc
2023/07/09 23:04 https://github.com/google/kmsan.git master 257152fe29be 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in drm_mode_setcrtc
2023/06/04 03:06 https://github.com/google/kmsan.git master 2741f1b02117 a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in drm_mode_setcrtc
2023/07/09 23:51 https://github.com/google/kmsan.git master 257152fe29be 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in drm_mode_setcrtc
2023/07/09 23:12 https://github.com/google/kmsan.git master 257152fe29be 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in drm_mode_setcrtc
2023/07/09 23:10 https://github.com/google/kmsan.git master 257152fe29be 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in drm_mode_setcrtc
2023/07/09 23:02 https://github.com/google/kmsan.git master 257152fe29be 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in drm_mode_setcrtc
2023/06/04 03:12 https://github.com/google/kmsan.git master 2741f1b02117 a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in drm_mode_setcrtc
* Struck through repros no longer work on HEAD.