WARNING in vkms_get_vblank_timestamp

Status: upstream: reported on 2025/06/19 03:01
Reported-by: syzbot+cf3d745dbef25999ba26@syzkaller.appspotmail.com
First crash: 429d, last: 20d
Similar bugs (4)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in vkms_get_vblank_timestamp dri -1 syz error 41 1174d 1233d 22/29 fixed on 2023/06/08 14:41
linux-5.15 WARNING in vkms_get_vblank_timestamp origin:lts-only -1 syz, C error 5 3d02h 685d 0/3 upstream: reported C repro on 2024/10/05 17:59
linux-6.1 WARNING in vkms_get_vblank_timestamp origin:lts-only -1 syz, C error 5 235d 890d 0/3 upstream: reported C repro on 2024/03/14 22:37
upstream WARNING in vkms_get_vblank_timestamp (2) dri -1 syz, C done error 528 261d 1166d 0/29 upstream: reported C repro on 2023/06/13 03:40

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 8577 at drivers/gpu/drm/vkms/vkms_crtc.c:103 vkms_get_vblank_timestamp+0x188/0x1d0 drivers/gpu/drm/vkms/vkms_crtc.c:103
Modules linked in:
CPU: 0 PID: 8577 Comm: syz.4.824 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
RIP: 0010:vkms_get_vblank_timestamp+0x188/0x1d0 drivers/gpu/drm/vkms/vkms_crtc.c:103
Code: 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 5d 19 98 fc 4c 89 33 b0 01 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 58 9b 3f fc <0f> 0b eb ea 44 89 f9 80 e1 07 80 c1 03 38 c1 0f 8c ba fe ff ff 4c
RSP: 0018:ffffc9000c7c76e8 EFLAGS: 00010293
RAX: ffffffff8547d3c8 RBX: ffffc9000c7c7860 RCX: ffff8880214b9e00
RDX: 0000000000000000 RSI: 00000049d0efd5f1 RDI: 00000049d0efd5f1
RBP: 1ffff920018f8f0c R08: ffffc90003f0a000 R09: 0000000000000000
R10: ffffc90003f0a000 R11: 0000000000000000 R12: 00000049d0efd5f1
R13: dffffc0000000000 R14: ffff88802143c000 R15: 00000049d0efd5f1
FS:  000055556f9bd500(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c24883b CR3: 000000006a604000 CR4: 00000000003506f0
Call Trace:
 <TASK>
 drm_crtc_get_last_vbltimestamp drivers/gpu/drm/drm_vblank.c:877 [inline]
 drm_crtc_next_vblank_start+0x23e/0x490 drivers/gpu/drm/drm_vblank.c:1012
 set_fence_deadline drivers/gpu/drm/drm_atomic_helper.c:1583 [inline]
 drm_atomic_helper_wait_for_fences+0x21b/0x8f0 drivers/gpu/drm/drm_atomic_helper.c:1630
 drm_atomic_helper_commit+0x5bf/0xaf0 drivers/gpu/drm/drm_atomic_helper.c:2059
 drm_atomic_commit+0x226/0x280 drivers/gpu/drm/drm_atomic.c:1513
 drm_client_modeset_commit_atomic+0x651/0x7b0 drivers/gpu/drm/drm_client_modeset.c:1057
 drm_client_modeset_commit_locked+0xcb/0x4c0 drivers/gpu/drm/drm_client_modeset.c:1160
 drm_client_modeset_commit+0x4a/0x70 drivers/gpu/drm/drm_client_modeset.c:1186
 __drm_fb_helper_restore_fbdev_mode_unlocked drivers/gpu/drm/drm_fb_helper.c:249 [inline]
 drm_fb_helper_restore_fbdev_mode_unlocked drivers/gpu/drm/drm_fb_helper.c:276 [inline]
 drm_fb_helper_lastclose+0x9f/0x150 drivers/gpu/drm/drm_fb_helper.c:2010
 drm_fbdev_generic_client_restore+0x34/0x40 drivers/gpu/drm/drm_fbdev_generic.c:257
 drm_client_dev_restore+0x138/0x270 drivers/gpu/drm/drm_client.c:257
 drm_lastclose drivers/gpu/drm/drm_file.c:466 [inline]
 drm_release+0x4b3/0x670 drivers/gpu/drm/drm_file.c:497
 __fput+0x221/0x940 fs/file_table.c:418
 task_work_run+0x1d4/0x260 kernel/task_work.c:245
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop+0xe6/0x110 kernel/entry/common.c:177
 exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:210
 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline]
 syscall_exit_to_user_mode+0x1a/0x50 kernel/entry/common.c:302
 do_syscall_64+0x61/0xb0 arch/x86/entry/common.c:82
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f3e6d19e019
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc5fa28ba8 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4
RAX: 0000000000000000 RBX: 00007f3e6d427da0 RCX: 00007f3e6d19e019
RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003
RBP: 00007f3e6d427da0 R08: 0000000000000006 R09: 0000000000000000
R10: 00007f3e6d427cb0 R11: 0000000000000246 R12: 000000000004d62b
R13: 00007f3e6d425fac R14: 000000000004d3ab R15: 00007f3e6d425fa0
 </TASK>

Crashes (18):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/08/01 21:30 linux-6.6.y a1153c0deb44 e611ffe1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in vkms_get_vblank_timestamp
2026/07/31 19:00 linux-6.6.y a1153c0deb44 7664cf44 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in vkms_get_vblank_timestamp
2026/06/20 00:38 linux-6.6.y d1cfde2d5d15 43bfcdb0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in vkms_get_vblank_timestamp
2026/05/28 22:17 linux-6.6.y 0a40c6fbd105 681715f7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in vkms_get_vblank_timestamp
2026/04/01 19:16 linux-6.6.y c09fbcd31ae6 9a1f7828 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in vkms_get_vblank_timestamp
2026/03/18 04:49 linux-6.6.y 4fc00fe35d46 c8810548 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in vkms_get_vblank_timestamp
2026/02/02 20:20 linux-6.6.y 2cf6f68313dc 018ebef2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in vkms_get_vblank_timestamp
2026/01/04 06:45 linux-6.6.y 5fa4793a2d2d d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in vkms_get_vblank_timestamp
2025/12/11 22:49 linux-6.6.y 5fa4793a2d2d d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in vkms_get_vblank_timestamp
2025/11/24 00:22 linux-6.6.y 0a805b6ea8cd 4fb8ef37 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in vkms_get_vblank_timestamp
2025/10/11 18:07 linux-6.6.y e617101e5626 ff1712fe .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in vkms_get_vblank_timestamp
2025/10/08 06:00 linux-6.6.y e617101e5626 7e2882b3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in vkms_get_vblank_timestamp
2025/09/27 22:58 linux-6.6.y 147338df3487 001c9061 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in vkms_get_vblank_timestamp
2025/08/20 07:12 linux-6.6.y bb9c90ab9c5a 79512909 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in vkms_get_vblank_timestamp
2025/08/03 06:35 linux-6.6.y 3a8ababb8b6a 7368264b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in vkms_get_vblank_timestamp
2025/06/25 11:41 linux-6.6.y 6282921b6825 26d77996 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in vkms_get_vblank_timestamp
2025/06/21 08:22 linux-6.6.y 6282921b6825 d6cdfb8a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in vkms_get_vblank_timestamp
2025/06/19 03:00 linux-6.6.y c2603c511feb ed3e87f7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in vkms_get_vblank_timestamp
* Struck through repros no longer work on HEAD.