aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-inline.h
diff options
context:
space:
mode:
authorChris Wilson <[email protected]>2013-11-29 11:44:59 +0000
committerDaniel Vetter <[email protected]>2013-11-29 15:51:20 +0100
commit993fc6ebaf4af6fdfde08cc8649c386e483a5908 (patch)
treedf8cee442fc9fcafc8fa565a2fd626542996ba9d /lib/mpi/mpi-inline.h
parent0bf2134780e321a8af93315d99e575a821ee1a77 (diff)
drm/i915: Pin pages whilst allocating for dma-buf vmap()
During the vmap() routine for the dma-buf, we first grab the pages and then try to allocate a temporary array to pass to the vmap(). However, the shrinker can and will reap any object that is unbound if the allocation for the array first fails. This includes the object which we are attempting to vmap(). The solution is to mark the object's pages as pinned whilst we try the allocation to prevent the use-after-free introduced by the potential shrinkage. Signed-off-by: Chris Wilson <[email protected]> Signed-off-by: Daniel Vetter <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-inline.h')
0 files changed, 0 insertions, 0 deletions