summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nv04_instmem.c
diff options
context:
space:
mode:
authorLuca Barbieri <luca@luca-barbieri.com>2010-01-10 20:10:53 +0100
committerBen Skeggs <bskeggs@redhat.com>2010-01-15 09:56:50 +1000
commit12f735b79f0ad63964dedabed3eee8a581bb66a5 (patch)
tree22a774a050cbd0967d0b89788375271f226ba252 /drivers/gpu/drm/nouveau/nv04_instmem.c
parentac8fb975e8c88d312a376b035494be17548d01c6 (diff)
downloadop-kernel-dev-12f735b79f0ad63964dedabed3eee8a581bb66a5.zip
op-kernel-dev-12f735b79f0ad63964dedabed3eee8a581bb66a5.tar.gz
drm/nouveau: check pushbuffer bounds in ioctl
Currently there is no check that the pushbuffer request bounds are inside the TTM BO. This allows to instruct the kernel to do relocations on user-selected addresses, since the relocation bounds checking relies on the request bounds. This can oops the kernel accidentally and is easily exploitable. This patch adds bound checking and alignment checking for ->offset and ->nr_dwords. It also makes some variables unsigned, which should have no effect, but prevents possible bounds checking problems. Signed-off-by: Luca Barbieri <luca@luca-barbieri.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nv04_instmem.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud