------------[ cut here ]------------ WARNING: CPU: 0 PID: 9373 at drivers/gpu/drm/vkms/vkms_crtc.c:97 vkms_get_vblank_timestamp+0x128/0x16c drivers/gpu/drm/vkms/vkms_crtc.c:110 Modules linked in: CPU: 0 UID: 0 PID: 9373 Comm: syz.0.2146 Not tainted 6.15.0-rc6-syzkaller #0 PREEMPT Hardware name: linux,dummy-virt (DT) pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : vkms_get_vblank_timestamp+0x128/0x16c drivers/gpu/drm/vkms/vkms_crtc.c:97 lr : vkms_get_vblank_timestamp+0x20/0x16c drivers/gpu/drm/vkms/vkms_crtc.c:88 sp : ffff80008ec575e0 x29: ffff80008ec575e0 x28: ffff000017c72400 x27: 0000000000000003 x26: ffff000014350080 x25: 0000000000000001 x24: 1fffe0000213ed38 x23: ffff800085a8b8c0 x22: ffff80008ec577b0 x21: 000001a52cbc46c0 x20: ffff000014350080 x19: ffff0000109f6880 x18: 0000000000000001 x17: 0000000000000000 x16: 0000000000000000 x15: 0000000000000000 x14: 0000000000000000 x13: 0000000000000000 x12: ffff80008e7e9000 x11: 1fffe00002f8e7a2 x10: ffff600002f8e7a2 x9 : dfff800000000000 x8 : 0000000041b58ab3 x7 : ffff700011d8aecc x6 : dfff800000000000 x5 : 0000000000000000 x4 : 1fffe0000213ed4a x3 : 0000000000000000 x2 : 1fffe0000213ed35 x1 : 0000000000000000 x0 : 000001a52cbc46c0 Call trace: vkms_get_vblank_timestamp+0x128/0x16c drivers/gpu/drm/vkms/vkms_crtc.c:110 (P) drm_crtc_get_last_vbltimestamp+0x140/0x184 drivers/gpu/drm/drm_vblank.c:878 drm_crtc_next_vblank_start+0x11c/0x244 drivers/gpu/drm/drm_vblank.c:1012 set_fence_deadline drivers/gpu/drm/drm_atomic_helper.c:1596 [inline] drm_atomic_helper_wait_for_fences+0x184/0x614 drivers/gpu/drm/drm_atomic_helper.c:1643 drm_atomic_helper_commit+0x170/0x2b4 drivers/gpu/drm/drm_atomic_helper.c:2072 drm_atomic_commit+0x18c/0x23c drivers/gpu/drm/drm_atomic.c:1518 drm_client_modeset_commit_atomic+0x4a4/0x5f8 drivers/gpu/drm/drm_client_modeset.c:1079 drm_client_modeset_commit_locked+0x108/0x3f8 drivers/gpu/drm/drm_client_modeset.c:1182 drm_client_modeset_commit+0x44/0x74 drivers/gpu/drm/drm_client_modeset.c:1208 __drm_fb_helper_restore_fbdev_mode_unlocked drivers/gpu/drm/drm_fb_helper.c:237 [inline] __drm_fb_helper_restore_fbdev_mode_unlocked drivers/gpu/drm/drm_fb_helper.c:216 [inline] drm_fb_helper_restore_fbdev_mode_unlocked drivers/gpu/drm/drm_fb_helper.c:267 [inline] drm_fb_helper_lastclose+0xac/0x188 drivers/gpu/drm/drm_fb_helper.c:1985 drm_fbdev_client_restore+0x30/0x4c drivers/gpu/drm/clients/drm_fbdev_client.c:31 drm_client_dev_restore+0x130/0x21c drivers/gpu/drm/drm_client_event.c:116 drm_lastclose drivers/gpu/drm/drm_file.c:396 [inline] drm_release+0x20c/0x2dc drivers/gpu/drm/drm_file.c:429 __fput+0x2c8/0x954 fs/file_table.c:465 ____fput+0x14/0x20 fs/file_table.c:493 task_work_run+0x128/0x210 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] do_notify_resume+0x1d0/0x258 arch/arm64/kernel/entry-common.c:151 exit_to_user_mode_prepare arch/arm64/kernel/entry-common.c:169 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:178 [inline] el0_svc+0x100/0x180 arch/arm64/kernel/entry-common.c:745 el0t_64_sync_handler+0x10c/0x138 arch/arm64/kernel/entry-common.c:762 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 irq event stamp: 1792 hardirqs last enabled at (1791): [] __exit_to_kernel_mode arch/arm64/kernel/entry-common.c:85 [inline] hardirqs last enabled at (1791): [] exit_to_kernel_mode+0x38/0x118 arch/arm64/kernel/entry-common.c:95 hardirqs last disabled at (1792): [] el1_dbg+0x24/0x9c arch/arm64/kernel/entry-common.c:488 softirqs last enabled at (1784): [] softirq_handle_end kernel/softirq.c:425 [inline] softirqs last enabled at (1784): [] handle_softirqs+0x88c/0xdb4 kernel/softirq.c:607 softirqs last disabled at (1775): [] __do_softirq+0x14/0x20 kernel/softirq.c:613 ---[ end trace 0000000000000000 ]---