------------[ cut here ]------------ WARNING: CPU: 1 PID: 21945 at drivers/gpu/drm/vkms/vkms_crtc.c:103 vkms_get_vblank_timestamp+0x1cf/0x240 drivers/gpu/drm/vkms/vkms_crtc.c:103 Modules linked in: CPU: 1 PID: 21945 Comm: syz-executor.5 Not tainted 6.3.0-syzkaller-12964-g89b7fd5d7f3c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 RIP: 0010:vkms_get_vblank_timestamp+0x1cf/0x240 drivers/gpu/drm/vkms/vkms_crtc.c:103 Code: f9 70 fc e8 73 fe 60 fc 4c 89 e1 48 ba 00 00 00 00 00 fc ff df 48 c1 e9 03 80 3c 11 00 75 65 49 89 04 24 eb c4 e8 21 f9 70 fc <0f> 0b eb bb e8 b8 c8 c2 fc e9 de fe ff ff e8 ee c8 c2 fc e9 78 fe RSP: 0018:ffffc90004037440 EFLAGS: 00010212 RAX: 0000000000000e63 RBX: 0000011e300eb190 RCX: ffffc90006232000 RDX: 0000000000040000 RSI: ffffffff8512859f RDI: 0000000000000006 RBP: ffff88801f1d0000 R08: 0000000000000006 R09: 0000011e300eb190 R10: 0000011e300eb190 R11: 0000000000000000 R12: ffffc900040375a8 R13: 0000011e300eb190 R14: 0000000000004e20 R15: ffffffff851283d0 FS: 00007fdd29eb7700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2da22000 CR3: 0000000074519000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: drm_crtc_get_last_vbltimestamp+0x102/0x1a0 drivers/gpu/drm/drm_vblank.c:877 drm_crtc_next_vblank_start+0x186/0x300 drivers/gpu/drm/drm_vblank.c:1012 set_fence_deadline drivers/gpu/drm/drm_atomic_helper.c:1537 [inline] drm_atomic_helper_wait_for_fences+0x1f3/0x840 drivers/gpu/drm/drm_atomic_helper.c:1584 commit_tail+0x85/0x420 drivers/gpu/drm/drm_atomic_helper.c:1798 drm_atomic_helper_commit drivers/gpu/drm/drm_atomic_helper.c:2052 [inline] drm_atomic_helper_commit+0x2ef/0x370 drivers/gpu/drm/drm_atomic_helper.c:1985 drm_atomic_commit+0x20a/0x300 drivers/gpu/drm/drm_atomic.c:1503 drm_client_modeset_commit_atomic+0x69b/0x7e0 drivers/gpu/drm/drm_client_modeset.c:1045 drm_client_modeset_commit_locked+0x149/0x580 drivers/gpu/drm/drm_client_modeset.c:1148 drm_client_modeset_commit+0x51/0x80 drivers/gpu/drm/drm_client_modeset.c:1174 __drm_fb_helper_restore_fbdev_mode_unlocked drivers/gpu/drm/drm_fb_helper.c:251 [inline] __drm_fb_helper_restore_fbdev_mode_unlocked+0x156/0x1a0 drivers/gpu/drm/drm_fb_helper.c:230 drm_fb_helper_set_par+0xd4/0x110 drivers/gpu/drm/drm_fb_helper.c:1692 fb_set_var+0x726/0x1090 drivers/video/fbdev/core/fbmem.c:1045 do_fb_ioctl+0x6a0/0x750 drivers/video/fbdev/core/fbmem.c:1125 fb_ioctl+0xeb/0x150 drivers/video/fbdev/core/fbmem.c:1204 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl fs/ioctl.c:856 [inline] __x64_sys_ioctl+0x197/0x210 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fdd2908c169 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fdd29eb7168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fdd291abf80 RCX: 00007fdd2908c169 RDX: 0000000020000000 RSI: 0000000000004601 RDI: 0000000000000005 RBP: 00007fdd290e7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fffda8d646f R14: 00007fdd29eb7300 R15: 0000000000022000