drm/msm/gem: A couple VM_BIND fixes
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest4 patches 4 repliesIn review
- v23 patches 0 repliesSuperseded
- 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 files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | drm/msm/gem: Fix VM_BIND range checkdrivers/ | +3 | 1 reply | |
| 2/4 | drm/msm/gem: Disallow nr_bos for VM_BIND contextsdrivers/ | +4 | 1 reply | |
| 3/4 | drm/msm/gem: Decrement loop idx if handle lookup failsdrivers/ | +1 | 1 reply | |
| 4/4 | drm/msm/gem: Clear nr_ops in lookup_ops() failure pathdrivers/ | +3 | 1 reply |
Reviews trailers per patch
3 of 4 patches have a Reviewed-by or Acked-by.
| Patch | Dmitry Baryshkov | Konrad Dybcio |
|---|---|---|
| 1/4 | R-b | R-b |
| 2/4 | R-b | R-b |
| 3/4 | R-b | |
| 4/4 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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