]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/vmwgfx: Make sure user-space can't DMA across buffer object boundaries v2
authorThomas Hellstrom <thellstrom@vmware.com>
Tue, 15 Apr 2014 16:25:48 +0000 (18:25 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Mon, 9 Jun 2014 12:29:01 +0000 (13:29 +0100)
commit98077594d9f33566c0681c0944fdcaed3e113ad0
tree116d8af9784bdf28915a9b21e3bba1ee830b4903
parent0ea6c9718b30594df91ece10533f6faee355abfc
drm/vmwgfx: Make sure user-space can't DMA across buffer object boundaries v2

commit cbd75e97a525e3819c02dc18bc2d67aa544c9e45 upstream.

We already check that the buffer object we're accessing is registered with
the file. Now also make sure that we can't DMA across buffer object boundaries.

v2: Code commenting update.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
[bwh: Backported to 3.2: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c