From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Roskin Subject: Re: [PATCH] drm: Restrict ioctl size to kernel struct size Date: Tue, 22 Oct 2013 11:57:49 -0400 Message-ID: <20131022115749.03199f11@IRBT4585> References: <20131017001235.3077.92963.stgit@IRBT4585> <1382434683-32048-1-git-send-email-chris@chris-wilson.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from c60.cesmail.net (c60.cesmail.net [216.154.195.49]) by gabe.freedesktop.org (Postfix) with ESMTP id 3840CE5D4E for ; Tue, 22 Oct 2013 08:57:55 -0700 (PDT) In-Reply-To: <1382434683-32048-1-git-send-email-chris@chris-wilson.co.uk> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: Chris Wilson Cc: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org 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-by: Chris Wilson > Cc: Pavel Roskin > Cc: dri-devel@lists.freedesktop.org Thank you for taking care of that! Reviewed-by: Pavel Roskin -- Regards, Pavel Roskin