diff options
author | Ville Syrjälä <[email protected]> | 2018-03-21 23:12:46 +0200 |
---|---|---|
committer | Ville Syrjälä <[email protected]> | 2018-03-23 13:51:12 +0200 |
commit | a01c47737a9ca118ab75c6fd6e75739b824de830 (patch) | |
tree | e3dd9e41cc47c273391c020620d5274af8f8de4c /lib/memory-notifier-error-inject.c | |
parent | 1c7095d2836baafd84e596dd34ba1a1293a4faa9 (diff) |
drm: Fix uabi regression by allowing garbage mode->type from userspace
Apparently xf86-video-vmware leaves the mode->type uninitialized
when feeding the mode to the kernel. Thus we have no choice but
to accept the garbage in. We'll just ignore any of the bits we
don't want. The mode type is just a hint anyway, and more
useful for the kernel->userspace direction.
Reported-by: Thomas Hellstrom <[email protected]>
CC: Thomas Hellstrom <[email protected]>
Cc: Adam Jackson <[email protected]>
Cc: Alex Deucher <[email protected]>
Fixes: c6ed6dad5cfb ("drm/uapi: Validate the mode flags/type")
References: https://lists.freedesktop.org/archives/dri-devel/2018-March/170213.html
Signed-off-by: Ville Syrjälä <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Tested-by: Thomas Hellstrom <[email protected]>
Reviewed-by: Maarten Lankhorst <[email protected]>
Reviewed-by: Daniel Stone <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions