[PATCH] drm: Prevent overwriting from userspace underallocating core ioctl structs

2013-10-16 Thread Ville Syrjälä
On Wed, Oct 16, 2013 at 11:22:44AM +0100, Chris Wilson wrote: > Apply the protections from > > commit 1b2f1489633888d4a06028315dc19d65768a1c05 > Author: Dave Airlie > Date: Sat Aug 14 20:20:34 2010 +1000 > > drm: block userspace under allocating buffer and having drivers overwrite > it (v

[PATCH] drm: Prevent overwriting from userspace underallocating core ioctl structs

2013-10-16 Thread Chris Wilson
Apply the protections from commit 1b2f1489633888d4a06028315dc19d65768a1c05 Author: Dave Airlie Date: Sat Aug 14 20:20:34 2010 +1000 drm: block userspace under allocating buffer and having drivers overwrite it (v2) to the core ioctl structs as well, for we found one instance where there i