From: Chris Wilson Date: Sun, 26 Sep 2010 19:50:05 +0000 (+0100) Subject: drm/i915: Sanity check pread/pwrite X-Git-Tag: v2.6.36-rc7~17^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce9d419dbecc292cc3e06e8b1d6d123d3fa813a4;p=pandora-kernel.git drm/i915: Sanity check pread/pwrite Move the access control up from the fast paths, which are no longer universally taken first, up into the caller. This then duplicates some sanity checking along the slow paths, but is much simpler. Tracked as CVE-2010-2962. Reported-by: Kees Cook Signed-off-by: Chris Wilson Cc: stable@kernel.org --- Reading git-diff-tree failed