[PATCH v2 0/2] Fix mmap memory boundary calculation

Andi Shyti andi.shyti at linux.intel.com
Mon Aug 5 10:25:52 UTC 2024


Hi,

this series fixes the memory limits calculation (start, end), in
order to avoid access to addresses not belonging to the mapped
page.

This series has been reviewed in other communities but, because
it needs to go through drm-tip, I am proposing it again here in
the intel-gfx mailing list.

Thanks a lot Jann for your inputs and reviews.

Rodrigo, could you please restate your review tag? I'm just
waiting for your tag in patch 1 to get this series in.

Thanks,
Andi

Changelog from v1:
==================
 - Added Jonathan's and Jann's tags.
 - pfn is now calculated inside the set_address_limits() as
   suggested by Jonathan.

Andi Shyti (2):
  drm/i915/gem: Adjust vma offset for framebuffer mmap offset
  drm/i915/gem: Fix Virtual Memory mapping boundaries calculation

 drivers/gpu/drm/i915/gem/i915_gem_mman.c | 64 +++++++++++++++++++++---
 1 file changed, 58 insertions(+), 6 deletions(-)

-- 
2.45.2



More information about the dri-devel mailing list