]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
drm/i915: Sanity check pread/pwrite
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 15 Nov 2011 06:39:33 +0000 (09:39 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 26 Nov 2011 17:10:35 +0000 (09:10 -0800)
commit4609e74a3eead6f129eb470ed5e3d09b2a2978d0
tree8a09532053dd5a2286c278bbeb3047364f91d99c
parentd304a4f50fe04274a9a1b6bdeb5e0218df1d38e8
drm/i915: Sanity check pread/pwrite

commit ce9d419dbecc292cc3e06e8b1d6d123d3fa813a4 upstream.

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 <kees@ubuntu.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/gpu/drm/i915/i915_gem.c