[PATCH 7/7] drm: Sanitize DRM_IOCTL_MODE_CREATE_DUMB input

2014-11-05 Thread Daniel Vetter
On Wed, Nov 05, 2014 at 02:25:19PM +0100, Thierry Reding wrote: > From: Thierry Reding > > Some drivers treat the pitch and size fields as inputs and will use them > as minima provided by userspace so that they are only overwritten if the > minimal requirements of the driver exceed them. > > Thi

[PATCH 7/7] drm: Sanitize DRM_IOCTL_MODE_CREATE_DUMB input

2014-11-05 Thread Thierry Reding
From: Thierry Reding Some drivers treat the pitch and size fields as inputs and will use them as minima provided by userspace so that they are only overwritten if the minimal requirements of the driver exceed them. This can cause strange behaviour when applications don't zero out these fields, c