[Intel-gfx] [PATCH] drm/i915: Prevent mmap access through the GTT of snooped pages

Daniel Vetter daniel at ffwll.ch
Wed Apr 13 22:51:55 CEST 2011


On Wed, Apr 13, 2011 at 09:26:50PM +0100, Chris Wilson wrote:
> The docs have a dire warning not to attempt to access snooped pages
> through the GTT. Prevent userspace from doing so by sending them a
> SIGBUS if they try.
> 
> [Now it is possible with a bit of extra complexity to map the snooped
> CPU page into the vma and return that through i915_gem_fault() instead.
> The question is: is it simpler to do that workaround in the kernel than
> it is to do it in userspace?]

Woohoo! Evasive scary-patch-review-in-sight maneuver successfully
accomplished!

Reviewed-by: Daniel Vetter <daniel.vetter at ffwll.ch>
-- 
Daniel Vetter
Mail: daniel at ffwll.ch
Mobile: +41 (0)79 365 57 48



More information about the Intel-gfx mailing list