linux/drivers/gpu/drm/xe/display
Gustavo Sousa 60a1e131a8 drm/xe/hdcp: Add NULL check for media_gt in intel_hdcp_gsc_check_status()
When media GT is disabled via configfs, there is no allocation for
media_gt, which is kept as NULL.  In such scenario,
intel_hdcp_gsc_check_status() results in a kernel pagefault error due to
&gt->uc.gsc being evaluated as an invalid memory address.

Fix that by introducing a NULL check on media_gt and bailing out early
if so.

While at it, also drop the NULL check for gsc, since it can't be NULL if
media_gt is not NULL.

v2:
  - Get address for gsc only after checking that gt is not NULL.
    (Shuicheng)
  - Drop the NULL check for gsc. (Shuicheng)
v3:
  - Add "Fixes" and "Cc: <stable...>" tags. (Matt)

Fixes: 4af50beb4e ("drm/xe: Use gsc_proxy_init_done to check proxy status")
Cc: <stable@vger.kernel.org> # v6.10+
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Shuicheng Lin <shuicheng.lin@intel.com>
Link: https://patch.msgid.link/20260416-check-for-null-media_gt-in-intel_hdcp_gsc_check_status-v2-1-9adb9fd3b621@intel.com
Signed-off-by: Gustavo Sousa <gustavo.sousa@intel.com>
(cherry picked from commit bfaf87e84ca3ca3f6e275f9ae56da47a8b55ffd1)
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
2026-05-05 16:14:53 -07:00
..
intel_fbdev_fb.c drm/xe: Rename XE_BO_FLAG_SCANOUT to XE_BO_FLAG_FORCE_WC 2026-03-24 09:29:10 -04:00
xe_display_bo.c drm/xe: Rename XE_BO_FLAG_SCANOUT to XE_BO_FLAG_FORCE_WC 2026-03-24 09:29:10 -04:00
xe_display_bo.h drm/{i915, xe}/bo: move display bo calls to parent interface 2026-03-16 11:00:21 +02:00
xe_display_pcode.c drm/{i915, xe}/pcode: move display pcode calls to parent interface 2026-01-27 16:45:53 +02:00
xe_display_pcode.h drm/{i915, xe}/pcode: move display pcode calls to parent interface 2026-01-27 16:45:53 +02:00
xe_display_rpm.c drm/{i915,xe}/display: drop intel_wakeref.h usage 2025-12-01 15:18:13 +02:00
xe_display_rpm.h drm/xe/display: Runtime pm wrappers for display parent interface 2025-11-03 11:55:21 +02:00
xe_display_vma.h drm/xe/compat: remove i915_vma.h from compat 2026-03-03 16:05:58 +02:00
xe_display_wa.c drm/xe: Check that GT is not NULL before testing Wa_16023588340 2025-10-14 07:45:17 -07:00
xe_display.c drm/i915: Walk crtcs in pipe order 2026-04-13 10:16:13 +03:00
xe_display.h drm/xe: Drop GT parameter to xe_display_irq_postinstall() 2025-10-14 07:44:57 -07:00
xe_dsb_buffer.c drm/xe: Rename XE_BO_FLAG_SCANOUT to XE_BO_FLAG_FORCE_WC 2026-03-24 09:29:10 -04:00
xe_dsb_buffer.h drm/{i915, xe}/dsb: move DSB buffer to parent interface 2026-01-26 11:56:41 +02:00
xe_fb_pin.c drm/xe/display: Add support for AuxCCS 2026-03-24 09:29:11 -04:00
xe_frontbuffer.c drm/{i915, xe}/frontbuffer: move frontbuffer handling to parent interface 2026-03-11 11:32:10 +02:00
xe_frontbuffer.h drm/{i915, xe}/frontbuffer: move frontbuffer handling to parent interface 2026-03-11 11:32:10 +02:00
xe_hdcp_gsc.c drm/xe/hdcp: Add NULL check for media_gt in intel_hdcp_gsc_check_status() 2026-05-05 16:14:53 -07:00
xe_hdcp_gsc.h drm/{i915,xe}/hdcp: use parent interface for HDCP GSC calls 2025-11-28 10:44:51 +02:00
xe_initial_plane.c drm/xe: Rename XE_BO_FLAG_SCANOUT to XE_BO_FLAG_FORCE_WC 2026-03-24 09:29:10 -04:00
xe_initial_plane.h drm/{i915, xe}: move initial plane calls to parent interface 2025-12-22 15:09:22 +02:00
xe_panic.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
xe_panic.h drm/{i915, xe}/panic: move panic handling to parent interface 2025-12-12 15:17:58 +02:00
xe_stolen.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
xe_stolen.h drm/{i915, xe}/stolen: move stolen memory handling to display parent interface 2025-12-10 11:36:11 +02:00
xe_tdf.c drm/xe: stop including intel_display_{core, device}.h from xe_device_types.h 2025-05-27 11:25:53 +03:00