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

Pavel Roskin proski at gnu.org
Tue Oct 22 17:57:49 CEST 2013


On Tue, 22 Oct 2013 10:38:03 +0100
Chris Wilson <chris at chris-wilson.co.uk> 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 <proski at gnu.org>
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> Cc: Pavel Roskin <proski at gnu.org>
> Cc: dri-devel at lists.freedesktop.org

Thank you for taking care of that!

Reviewed-by: Pavel Roskin <proski at gnu.org>

-- 
Regards,
Pavel Roskin


More information about the dri-devel mailing list