]> err.no Git - linux-2.6/commit
drm: radeon: only allow specific type-3 packetss through verifier
authorRoland Scheidegger <rscheidegger_lists@hispeed.ch>
Tue, 24 Oct 2006 11:45:00 +0000 (21:45 +1000)
committerDave Airlie <airlied@linux.ie>
Tue, 24 Oct 2006 11:45:00 +0000 (21:45 +1000)
commita1aa28970316d7fb606321d5ab7fb3873641ab54
treeb19fcde58aedd1c59e202893d96a80de59a41df0
parent7059abedd2f04b68bd7e1a79c9c72f7aeee134c0
drm: radeon: only allow specific type-3 packetss through verifier

only allow specific type-3 packets to pass the verifier instead of all for r100/r200 as others might be unsafe (r300 already does this), and add checking for these we need but aren't safe. Check the RADEON_CP_INDX_BUFFER packet on both r200 and r300 as it isn't safe neither.

Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/char/drm/r300_cmdbuf.c
drivers/char/drm/radeon_state.c