[PATCH] drm: Restrict ioctl size to kernel struct size

2013-10-22 Thread Ville Syrjälä
On Tue, Oct 22, 2013 at 10:38:03AM +0100, Chris Wilson wrote: > Prevent the user from passing in an ioctl command with up to 16,383 > bytes specified for the struct to be allocated and copied, and > instead only allocate enough space to satisfy the kernel. > > Suggested-by: Pavel Roskin > Signed-

[PATCH] drm: Restrict ioctl size to kernel struct size

2013-10-22 Thread Pavel Roskin
On Tue, 22 Oct 2013 10:38:03 +0100 Chris Wilson wrote: > Prevent the user from passing in an ioctl command with up to 16,383 > bytes specified for the struct to be allocated and copied, and > instead only allocate enough space to satisfy the kernel. > > Suggested-by: Pavel Roskin > Signed-off-b

[PATCH] drm: Restrict ioctl size to kernel struct size

2013-10-22 Thread Chris Wilson
Prevent the user from passing in an ioctl command with up to 16,383 bytes specified for the struct to be allocated and copied, and instead only allocate enough space to satisfy the kernel. Suggested-by: Pavel Roskin Signed-off-by: Chris Wilson Cc: Pavel Roskin Cc: dri-devel at lists.freedesktop