]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/radeon/kms: do bounds checking for 3D_LOAD_VBPNTR and bump array limit
authorMarek Olšák <maraeo@gmail.com>
Fri, 10 Jun 2011 14:41:26 +0000 (14:41 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 23 Jun 2011 22:05:39 +0000 (15:05 -0700)
commit6a523c78659129ea7c0c3c6be9c67cac6812b08f
treea2925e01a9a84324d365787ba1155e946b02da66
parent4164979de808ea1f11ee404f8e60227464620aeb
drm/radeon/kms: do bounds checking for 3D_LOAD_VBPNTR and bump array limit

commit a27bb4b209dd6c327fa4e7185f2487f9508a58db upstream.

To my knowledge, the limit is 16 on r300.
(the docs don't say what the limit is)

The lack of bounds checking can be abused to do all sorts of things
(from bypassing parts of the CS checker to crashing the kernel).

Bugzilla:
https://bugs.freedesktop.org/show_bug.cgi?id=36745

Signed-off-by: Marek Olšák <maraeo@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/gpu/drm/radeon/r100_track.h