mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/4] drm/msm/gem: A couple VM_BIND fixes
@ 2026-11-02 17:19 Rob Clark
  2026-11-02 17:19 ` [PATCH v3 1/4] drm/msm/gem: Fix VM_BIND range check Rob Clark
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Rob Clark @ 2026-11-02 17:19 UTC (permalink / raw)
  To: dri-devel
  Cc: linux-arm-msm, freedreno, Rob Clark, Abhinav Kumar, David Airlie,
	Dmitry Baryshkov, Jessica Zhang, open list, Marijn Suijten,
	Sean Paul, Simona Vetter

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/20261102161002.497152-1-robin.clark@oss.qualcomm.com/

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/20261101174911.25184-1-robin.clark@oss.qualcomm.com/

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(-)

-- 
2.56.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-11-02 17:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-02 17:19 [PATCH v3 0/4] drm/msm/gem: A couple VM_BIND fixes Rob Clark
2026-11-02 17:19 ` [PATCH v3 1/4] drm/msm/gem: Fix VM_BIND range check Rob Clark
2026-11-02 17:19 ` [PATCH v3 2/4] drm/msm/gem: Disallow nr_bos for VM_BIND contexts Rob Clark
2026-11-02 17:19 ` [PATCH v3 3/4] drm/msm/gem: Decrement loop idx if handle lookup fails Rob Clark
2026-11-02 17:20 ` [PATCH v3 4/4] drm/msm/gem: Clear nr_ops in lookup_ops() failure path Rob Clark

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®