syzbot


WARNING in vkms_vblank_simulate

Status: fixed on 2020/09/16 22:51
Reported-by: syzbot+0871b14ca2e2fb64f6e3@syzkaller.appspotmail.com
Fix commit: 51f644b40b4b drm/atomic-helper: reset vblank on crtc reset
First crash: 2127d, last: 1550d
Cause bisection: introduced by (bisect log) :
commit 09ef09b4ab95dc405ad4171ec2cd8a4ff5227108
Author: Shayenne Moura <shayenneluzmoura@gmail.com>
Date: Wed Feb 6 20:08:13 2019 +0000

  drm/vkms: WARN when hrtimer_forward_now fails

Crash: WARNING in vkms_vblank_simulate (log)
Repro: C syz .config
  
Discussions (10)
Title Replies (including bot) Last reply
[PATCH 5.8 000/255] 5.8.6-rc1 review 263 (263) 2020/09/03 09:29
[PATCH 1/8] drm/atomic-helper: reset vblank on crtc reset 34 (34) 2020/08/06 06:57
[PATCH 1/3] drm/atomic-helper: reset vblank on crtc reset 10 (10) 2020/06/03 13:46
[PATCH 1/2] drm/mxsfb: Call drm_crtc_vblank_on/off 19 (19) 2020/06/02 09:43
[PATCH] drm/vkms: Don't warn hrtimer_forward_now failure. 9 (9) 2020/05/27 08:27
Reminder: 1 open syzbot bug in drm subsystem 1 (1) 2019/07/24 03:00
Reminder: 1 open syzbot bug in drm subsystem 1 (1) 2019/07/02 05:09
WARNING in vkms_vblank_simulate 1 (2) 2019/03/11 13:06
WARNING in vkms_vblank_simulate 0 (1) 2019/03/11 12:05
WARNING in vkms_vblank_simulate 0 (1) 2019/02/11 22:03
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in vkms_vblank_simulate (2) dri C error 77748 1125d 1499d 20/28 fixed on 2021/11/10 00:50
Last patch testing requests (6)
Created Duration User Patch Repo Result
2020/05/26 03:54 10m penguin-kernel@i-love.sakura.ne.jp patch upstream report log
2020/05/26 00:33 0m penguin-kernel@i-love.sakura.ne.jp patch upstream error
2020/05/25 14:06 9m penguin-kernel@i-love.sakura.ne.jp patch upstream report log
2020/05/25 11:06 5m penguin-kernel@i-love.sakura.ne.jp patch upstream error
2020/05/24 11:43 0m dvyukov@google.com upstream error
2020/05/23 04:23 0m penguin-kernel@i-love.sakura.ne.jp patch upstream error

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 9386 at drivers/gpu/drm/vkms/vkms_crtc.c:23 vkms_vblank_simulate+0x33a/0x3c0 drivers/gpu/drm/vkms/vkms_crtc.c:23
Kernel panic - not syncing: panic_on_warn set ...
CPU: 0 PID: 9386 Comm: syz-executor580 Not tainted 5.4.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 <IRQ>
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x197/0x210 lib/dump_stack.c:118
 panic+0x2e3/0x75c kernel/panic.c:221
 __warn.cold+0x2f/0x35 kernel/panic.c:582
 report_bug+0x289/0x300 lib/bug.c:195
 fixup_bug arch/x86/kernel/traps.c:179 [inline]
 fixup_bug arch/x86/kernel/traps.c:174 [inline]
 do_error_trap+0x11b/0x200 arch/x86/kernel/traps.c:272
 do_invalid_op+0x37/0x50 arch/x86/kernel/traps.c:291
 invalid_op+0x23/0x30 arch/x86/entry/entry_64.S:1028
RIP: 0010:vkms_vblank_simulate+0x33a/0x3c0 drivers/gpu/drm/vkms/vkms_crtc.c:23
Code: a1 00 00 00 49 8b 94 24 50 02 00 00 4c 89 f1 bf 02 00 00 00 48 c7 c6 a0 a4 03 88 e8 50 89 b5 ff e9 dd fe ff ff e8 b6 6c 7c fd <0f> 0b e9 7e fd ff ff e8 4a aa b8 fd e9 f4 fd ff ff 48 8b 7d d0 e8
RSP: 0018:ffff8880ae809dd0 EFLAGS: 00010006
RAX: ffff888081f82480 RBX: ffff8880a3a116e8 RCX: ffffffff83f7a145
RDX: 0000000000010000 RSI: ffffffff83f7a3ca RDI: 0000000000000007
RBP: ffff8880ae809e08 R08: ffff888081f82480 R09: ffff888081f82d10
R10: fffffbfff138ed40 R11: ffffffff89c76a07 R12: 0000000000039b8a
R13: ffff8880a3a11740 R14: ffff8880a3a10be8 R15: 0000000000000000
 __run_hrtimer kernel/time/hrtimer.c:1514 [inline]
 __hrtimer_run_queues+0x364/0xe40 kernel/time/hrtimer.c:1576
 hrtimer_interrupt+0x314/0x770 kernel/time/hrtimer.c:1638
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1110 [inline]
 smp_apic_timer_interrupt+0x160/0x610 arch/x86/kernel/apic/apic.c:1135
 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:830
 </IRQ>
RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:756 [inline]
RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline]
RIP: 0010:_raw_spin_unlock_irqrestore+0x95/0xe0 kernel/locking/spinlock.c:191
Code: 48 c7 c0 60 2f f3 88 48 ba 00 00 00 00 00 fc ff df 48 c1 e8 03 80 3c 10 00 75 39 48 83 3d 62 8a 9c 01 00 74 24 48 89 df 57 9d <0f> 1f 44 00 00 bf 01 00 00 00 e8 9c 58 f9 f9 65 8b 05 ed 58 ab 78
RSP: 0018:ffff88808e887920 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13
RAX: 1ffffffff11e65ec RBX: 0000000000000286 RCX: 0000000000000000
RDX: dffffc0000000000 RSI: 0000000000000006 RDI: 0000000000000286
RBP: ffff88808e887930 R08: ffff888081f82480 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880a3a102f0
R13: 0000000000000000 R14: ffff8880a3a102f0 R15: ffff8880a388a908
 spin_unlock_irqrestore include/linux/spinlock.h:393 [inline]
 drm_vblank_get+0x150/0x1e0 drivers/gpu/drm/drm_vblank.c:1015
 drm_wait_vblank_ioctl+0x51a/0x1990 drivers/gpu/drm/drm_vblank.c:1636
 drm_ioctl_kernel+0x244/0x300 drivers/gpu/drm/drm_ioctl.c:786
 drm_ioctl+0x54e/0xa60 drivers/gpu/drm/drm_ioctl.c:886
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:509 [inline]
 do_vfs_ioctl+0xdb6/0x13e0 fs/ioctl.c:696
 ksys_ioctl+0xab/0xd0 fs/ioctl.c:713
 __do_sys_ioctl fs/ioctl.c:720 [inline]
 __se_sys_ioctl fs/ioctl.c:718 [inline]
 __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:718
 do_syscall_64+0xfa/0x760 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x443e29
Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 7b d8 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffff0a527d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 0000000000443e29
RDX: 0000000020000100 RSI: 00000000c018643a RDI: 0000000000000003
RBP: 00000000006ce018 R08: 0000000000000000 R09: 00000000004002e0
R10: 000000000000000f R11: 0000000000000246 R12: 0000000000401b30
R13: 0000000000401bc0 R14: 0000000000000000 R15: 0000000000000000
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (12903):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/11/27 06:31 upstream be2eca94d144 1048481f .config console log report syz C ci-upstream-kasan-gce-selinux-root
2019/11/27 05:13 upstream be2eca94d144 1048481f .config console log report syz C ci-upstream-kasan-gce-root
2019/11/27 01:47 upstream be2eca94d144 1048481f .config console log report syz C ci-upstream-kasan-gce
2019/11/13 19:58 upstream 0e3f1ad80fc8 048f2d49 .config console log report syz C ci-upstream-kasan-gce
2019/06/05 03:26 upstream 788a024921c4 bfb4a51e .config console log report syz C ci-upstream-kasan-gce
2019/06/03 16:12 upstream f2c7c76c5d0a 63bf051f .config console log report syz C ci-upstream-kasan-gce-root
2019/06/03 14:25 upstream f2c7c76c5d0a 63bf051f .config console log report syz C ci-upstream-kasan-gce-smack-root
2019/06/03 14:16 upstream f2c7c76c5d0a 63bf051f .config console log report syz C ci-upstream-kasan-gce-selinux-root
2019/03/09 02:48 upstream 3601fe43e816 12365b99 .config console log report syz C ci-upstream-kasan-gce-selinux-root
2019/03/09 02:47 upstream 3601fe43e816 12365b99 .config console log report syz C ci-upstream-kasan-gce-smack-root
2019/03/09 02:16 upstream 3601fe43e816 12365b99 .config console log report syz C ci-upstream-kasan-gce
2019/03/09 02:00 upstream 3601fe43e816 12365b99 .config console log report syz C ci-upstream-kasan-gce-root
2019/11/27 03:33 upstream be2eca94d144 1048481f .config console log report syz C ci-upstream-kasan-gce-386
2019/06/03 16:25 upstream f2c7c76c5d0a 63bf051f .config console log report syz C ci-upstream-kasan-gce-386
2019/03/09 02:58 upstream 3601fe43e816 12365b99 .config console log report syz C ci-upstream-kasan-gce-386
2019/12/10 04:24 linux-next 6cf8298daad0 4b83c8fb .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2019/06/12 16:32 linux-next 81a72c79224f 794a1ad7 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2019/03/09 02:22 linux-next cf08baa29613 12365b99 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2019/02/11 09:44 linux-next d4104460aec1 b4f792e4 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2020/09/10 09:16 upstream fffe3ae0ee84 409809d8 .config console log report ci-qemu-upstream
2020/09/09 09:48 upstream fffe3ae0ee84 0ea7a887 .config console log report ci-qemu-upstream
2020/09/05 20:36 upstream fffe3ae0ee84 abf9ba4f .config console log report ci-qemu-upstream
2020/08/22 19:15 upstream fffe3ae0ee84 6436ce4b .config console log report ci-qemu-upstream
2020/08/06 02:36 upstream fffe3ae0ee84 0487ea6f .config console log report ci-upstream-kasan-gce-root
2020/08/05 04:46 upstream c0842fbc1b18 80a06902 .config console log report ci-upstream-kasan-gce-root
2020/08/05 03:36 upstream c0842fbc1b18 80a06902 .config console log report ci-upstream-kasan-gce-root
2020/08/04 22:51 upstream c0842fbc1b18 80a06902 .config console log report ci-upstream-kasan-gce-smack-root
2020/08/04 18:42 upstream c0842fbc1b18 80a06902 .config console log report ci-upstream-kasan-gce-selinux-root
2020/08/04 09:10 upstream bcf876870b95 196277c4 .config console log report ci-upstream-kasan-gce-smack-root
2020/08/04 01:59 upstream bcf876870b95 196277c4 .config console log report ci-upstream-kasan-gce-smack-root
2020/08/04 01:55 upstream bcf876870b95 196277c4 .config console log report ci-upstream-kasan-gce-selinux-root
2020/08/03 23:43 upstream bcf876870b95 196277c4 .config console log report ci-upstream-kasan-gce-selinux-root
2020/08/03 21:24 upstream bcf876870b95 196277c4 .config console log report ci-upstream-kasan-gce-selinux-root
2020/08/03 14:24 upstream 5a30a78924ec 196277c4 .config console log report ci-upstream-kasan-gce-smack-root
2020/08/03 09:23 upstream 5a30a78924ec 196277c4 .config console log report ci-upstream-kasan-gce-smack-root
2020/08/02 18:53 upstream ac3a0c847296 63a73341 .config console log report ci-upstream-kasan-gce-root
2020/08/02 11:26 upstream ac3a0c847296 63a73341 .config console log report ci-upstream-kasan-gce-smack-root
2020/08/02 03:04 upstream d52daa8620c6 d895b3be .config console log report ci-upstream-kasan-gce-smack-root
2020/08/01 15:56 upstream 7dc6fd0f3b84 d895b3be .config console log report ci-upstream-kasan-gce-root
2020/08/01 07:16 upstream d8b9faec54ae d895b3be .config console log report ci-upstream-kasan-gce-selinux-root
2020/08/01 01:23 upstream d8b9faec54ae d895b3be .config console log report ci-upstream-kasan-gce-root
2020/07/31 14:21 upstream 83bdc7275e62 8df85ed9 .config console log report ci-upstream-kasan-gce-smack-root
2020/07/30 17:50 upstream d3590ebf6f91 233283a1 .config console log report ci-upstream-kasan-gce-smack-root
2020/07/30 10:43 upstream d3590ebf6f91 233283a1 .config console log report ci-upstream-kasan-gce
2020/07/29 18:52 upstream 6ba1b005ffc3 19a8de55 .config console log report ci-upstream-kasan-gce-smack-root
2020/07/29 13:56 upstream 6ba1b005ffc3 19a8de55 .config console log report ci-upstream-kasan-gce
2020/07/29 13:47 upstream 6ba1b005ffc3 19a8de55 .config console log report ci-upstream-kasan-gce-selinux-root
2020/07/29 06:58 upstream 6ba1b005ffc3 cb93dc6a .config console log report ci-upstream-kasan-gce
2020/07/29 03:31 upstream 6ba1b005ffc3 cb93dc6a .config console log report ci-upstream-kasan-gce
2020/07/28 18:53 upstream 92ed30191993 cb93dc6a .config console log report ci-upstream-kasan-gce-selinux-root
2020/07/28 16:42 upstream 92ed30191993 cb93dc6a .config console log report ci-upstream-kasan-gce-smack-root
2020/07/28 16:36 upstream 92ed30191993 cb93dc6a .config console log report ci-upstream-kasan-gce-selinux-root
2020/07/28 13:42 upstream 92ed30191993 cb93dc6a .config console log report ci-upstream-kasan-gce-selinux-root
2020/07/28 10:04 upstream 92ed30191993 cb93dc6a .config console log report ci-upstream-kasan-gce
2020/07/28 00:51 upstream 92ed30191993 cb93dc6a .config console log report ci-upstream-kasan-gce-smack-root
2020/07/27 16:08 upstream 92ed30191993 cb93dc6a .config console log report ci-upstream-kasan-gce-selinux-root
2020/07/26 18:00 upstream 04300d66f0a0 51265195 .config console log report ci-upstream-kasan-gce-selinux-root
2020/07/26 17:49 upstream 04300d66f0a0 51265195 .config console log report ci-upstream-kasan-gce-smack-root
2020/07/26 03:16 upstream 23ee3e4e5bd2 1f7cc1ca .config console log report ci-upstream-kasan-gce
2020/07/30 09:12 upstream d3590ebf6f91 233283a1 .config console log report ci-upstream-kasan-gce-386
2020/07/30 07:53 upstream d3590ebf6f91 233283a1 .config console log report ci-upstream-kasan-gce-386
2020/07/29 16:34 upstream 6ba1b005ffc3 19a8de55 .config console log report ci-upstream-kasan-gce-386
2020/07/28 15:17 upstream 92ed30191993 cb93dc6a .config console log report ci-upstream-kasan-gce-386
2020/07/28 04:06 upstream 92ed30191993 cb93dc6a .config console log report ci-upstream-kasan-gce-386
2020/07/26 22:10 upstream 04300d66f0a0 51265195 .config console log report ci-upstream-kasan-gce-386
2020/07/26 15:13 upstream 04300d66f0a0 51265195 .config console log report ci-upstream-kasan-gce-386
2020/04/15 12:03 upstream 8632e9b5645b 3f3c5574 .config console log report ci-qemu-upstream-386
2020/07/02 19:28 linux-next aab2003999e7 bed10395 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/02/11 09:04 linux-next d4104460aec1 b4f792e4 .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.