]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/i915: fix integer overflow in i915_gem_do_execbuffer()
authorXi Wang <xi.wang@gmail.com>
Mon, 23 Apr 2012 08:06:42 +0000 (04:06 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 May 2012 15:53:22 +0000 (08:53 -0700)
commit9f4660213e58b3b78dc75bf3e3b4126dbe9a0b14
tree305c5be400f35c8571c6012109565d834a9daf33
parent4a265435c87b19175c3906ff49ffe5bf4a4cc228
drm/i915: fix integer overflow in i915_gem_do_execbuffer()

commit 44afb3a04391a74309d16180d1e4f8386fdfa745 upstream.

On 32-bit systems, a large args->num_cliprects from userspace via ioctl
may overflow the allocation size, leading to out-of-bounds access.

This vulnerability was introduced in commit 432e58ed ("drm/i915: Avoid
allocation for execbuffer object list").

Signed-off-by: Xi Wang <xi.wang@gmail.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/i915/i915_gem_execbuffer.c