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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 22 Oct 2013 10:38:03 +0100
Chris Wilson <chris@xxxxxxxxxxxxxxxxxx> 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@xxxxxxx>
> Signed-off-by: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>
> Cc: Pavel Roskin <proski@xxxxxxx>
> Cc: dri-devel@xxxxxxxxxxxxxxxxxxxxx

Thank you for taking care of that!

Reviewed-by: Pavel Roskin <proski@xxxxxxx>

-- 
Regards,
Pavel Roskin
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux