]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/radeon: check incoming cliprects pointer
authorKees Cook <keescook@chromium.org>
Mon, 13 May 2013 05:00:51 +0000 (22:00 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 19 May 2013 18:38:45 +0000 (11:38 -0700)
commit916214e6b5dbfa96790b4a88c3a054093796bb15
tree35950ee8fc031b7c3510c9bd9d9e55ae3e51c9c9
parentb479773965dec670698dee71667b76453f055df7
drm/radeon: check incoming cliprects pointer

commit fefaedcfb82d2e57c2320acf60604ab03b750cc0 upstream.

The "boxes" parameter points into userspace memory. It should be verified
like any other operation against user memory.

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/radeon/r300_cmdbuf.c