diff options
author | Xi Wang <xi.wang@gmail.com> | 2012-04-23 04:06:41 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-05-07 08:56:33 -0700 |
commit | fb247af4ccc4b082dbba85d90a42d31fd48affb2 (patch) | |
tree | e8332af19731a7a41c93fc84008c1187802aa463 /drivers/video/cfbcopyarea.c | |
parent | 8c9def922a843512c403d348dd033aa301e3eefe (diff) | |
download | kernel_samsung_crespo-fb247af4ccc4b082dbba85d90a42d31fd48affb2.zip kernel_samsung_crespo-fb247af4ccc4b082dbba85d90a42d31fd48affb2.tar.gz kernel_samsung_crespo-fb247af4ccc4b082dbba85d90a42d31fd48affb2.tar.bz2 |
drm/i915: fix integer overflow in i915_gem_execbuffer2()
commit ed8cd3b2cd61004cab85380c52b1817aca1ca49b upstream.
On 32-bit systems, a large args->buffer_count from userspace via ioctl
may overflow the allocation size, leading to out-of-bounds access.
This vulnerability was introduced in commit 8408c282 ("drm/i915:
First try a normal large kmalloc for the temporary exec buffers").
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>
Diffstat (limited to 'drivers/video/cfbcopyarea.c')
0 files changed, 0 insertions, 0 deletions