[PATCH v2 0/2] drm/i915/modeset: fix NULL/ctx handling in lock paths
From: george . d . sworo
Date: Wed Apr 29 2026 - 02:04:48 EST
From: George D Sworo <george.d.sworo@xxxxxxxxx>
Hi,
This series addresses lock-context robustness seen in HDCP/MST paths,
where modeset locking can be reached with invalid or stale acquire_ctx
state and trigger WARN/Oops in modeset_lock().
Patch 1 keeps the original fix from v1.
Patch 2 adds a defensive fix for the additional ctx handling issue.
Changes in v2:
- Added patch 2 to handle NULL ctx defensively in modeset lock helper
path.
- Kept patch 1 from v1 (no functional change) for complete series
resend.
- Updated commit messages for clearer rationale and call-path context.
- Linked previous posting:
https://patchwork.freedesktop.org/patch/721791/
Patch overview:
drm/modeset_lock: add NULL check for ctx before WARN_ON
drm/modeset: harden modeset_lock() against NULL ctx
drivers/gpu/drm/drm_modeset_lock.c | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
--
2.34.1