]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gem: Tighten checks and acquiring the mmap object
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 30 Jan 2020 14:39:31 +0000 (14:39 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 30 Jan 2020 20:27:41 +0000 (20:27 +0000)
commite5566b879ce3c2affce5cd63fc5161612de3db99
treec3ad42db34534c1dec5cef4365a915204266fe07
parent1aaaa3c8fbe6945a3e1d93b46915be3e48eec78d
drm/i915/gem: Tighten checks and acquiring the mmap object

Make sure we hold the rcu lock as we acquire the rcu protected reference
of the object when looking it up from the associated mmap vma.

Closes: https://gitlab.freedesktop.org/drm/intel/issues/1083
Fixes: 1798fee1aa68 ("drm/i915: Introduce DRM_I915_GEM_MMAP_OFFSET")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Abdiel Janulgue <abdiel.janulgue@linux.intel.com>
Cc: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200130143931.1906301-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/i915_gem_mman.c
drivers/gpu/drm/i915/gem/i915_gem_object.h