Skip to content

Fix mmap memory boundary calculation

Andi Shyti dri-devel intel-gfx stable 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 8 repliesIn review
  2. v12 patches 5 repliesSuperseded

Changes in v2 from the cover letter

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

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2drm/i915/gem: Adjust vma offset for framebuffer mmap offsetdrivers/gpu/drm/i915/gem/i915_gem_mman.c+2 -00 replies
2/2drm/i915/gem: Fix Virtual Memory mapping boundaries calculationdrivers/gpu/drm/i915/gem/i915_gem_mman.c+56 -60 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchJonathan CavittJann Horn
1/2R-b
2/2R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

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

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(-)
Signature · 1 line
2.45.2