Skip to content

drm/msm/gem: A couple VM_BIND fixes

Rob Clark dri-devel linux-arm-msm lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 4 repliesIn review
  2. v23 patches 0 repliesSuperseded
  3. v12 patches 7 repliesSuperseded

Changes in v3 from the cover letter

- Also disallow range==0
- Add patch to clear stale nr_ops in lookup_ops error path
- Link to v2: https://lore.kernel.org/all/[email protected]/

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4drm/msm/gem: Fix VM_BIND range checkdrivers/gpu/drm/msm/msm_gem_vma.c+3 -31 reply
2/4drm/msm/gem: Disallow nr_bos for VM_BIND contextsdrivers/gpu/drm/msm/msm_gem_submit.c+4 -11 reply
3/4drm/msm/gem: Decrement loop idx if handle lookup failsdrivers/gpu/drm/msm/msm_gem_vma.c+1 -01 reply
4/4drm/msm/gem: Clear nr_ops in lookup_ops() failure pathdrivers/gpu/drm/msm/msm_gem_vma.c+3 -11 reply

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchDmitry BaryshkovKonrad Dybcio
1/4R-b R-b
2/4R-b R-b
3/4R-b
4/4

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

Read the v3 thread

Cover letter [PATCH v3 0/4] drm/msm/gem: A couple VM_BIND fixes

Fix possible overflow in range check, and disallow passing BOs table to GEM_SUBMIT for VM_BIND contexts.

v3:
- Also disallow range==0
- Add patch to clear stale nr_ops in lookup_ops error path
- Link to v2: https://lore.kernel.org/all/[email protected]/

v2:
- Also check that range/obj_offset are not greater than SIZE_MAX. It
doesn't matter currently, but would if an armv7 system ever added
support for per-process pgtables and VM_BIND.
- Add patch to fix handle-dereference in idr_find() error path
- Link to v1: https://lore.kernel.org/all/[email protected]/

Rob Clark (4):
drm/msm/gem: Fix VM_BIND range check drm/msm/gem: Disallow nr_bos for VM_BIND contexts drm/msm/gem: Decrement loop idx if handle lookup fails drm/msm/gem: Clear nr_ops in lookup_ops() failure path

 drivers/gpu/drm/msm/msm_gem_submit.c |  5 ++++-
 drivers/gpu/drm/msm/msm_gem_vma.c    | 11 +++++++----
 2 files changed, 11 insertions(+), 5 deletions(-)
Signature · 1 line
2.56.0