Patch "drm: Reject page_flip for !DRIVER_MODESET" has been added to the 4.7-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
drm: Reject page_flip for !DRIVER_MODESET
to the 4.7-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
drm-reject-page_flip-for-driver_modeset.patch
and it can be found in the queue-4.7 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
6f00975c619064a18c23fd3aced325ae165a73b9Mon Sep 17 00:00:00 2001
From: Daniel Vetter <[email protected]>
Date: Sat, 20 Aug 2016 12:22:11 +0200
Subject: drm: Reject page_flip for !DRIVER_MODESET
From: Daniel Vetter <[email protected]>
commit 6f00975c619064a18c23fd3aced325ae165a73b9 upstream.
Somehow this one slipped through, which means drivers without modeset support can be oopsed (since those also don't call drm_mode_config_init, which means the crtc lookup will chase an uninitalized idr).
--- drivers/gpu/drm/drm_crtc.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/gpu/drm/drm_crtc.c +3 -0
@@ -5312,6 +5312,9 @@ int drm_mode_page_flip_ioctl(struct drm_struct drm_pending_vblank_event *e =NULL ;int ret = -EINVAL ; +if (!drm_core_check_feature (dev,DRIVER_MODESET )) +return -EINVAL ; +if (page_flip->flags & ~DRM_MODE_PAGE_FLIP_FLAGS || page_flip->reserved !=0 )return -EINVAL ;
Patches currently in stable-queue which might be from [email protected] are
queue-4.7/drm-reject-page_flip-for-driver_modeset.patch queue-4.7/drm-atomic-don-t-potentially-reset-color_mgmt_changed-on-successive-property-updates.patch