Files
linux/drivers/gpu/drm
Ashutosh Dixit 97e16068d7 drm/xe/oa: Move default oa unit assignment earlier during stream open
De-referencing param.oa_unit, when an OA unit id is not provided during
stream open, results in NPD below.

  Oops: general protection fault, probably for non-canonical address...
  KASAN: null-ptr-deref in range...
  RIP: 0010:xe_oa_stream_open_ioctl+0x169/0x38a0
   xe_observation_ioctl+0x19f/0x270
   drm_ioctl_kernel+0x1f4/0x410

Fix this by moving default oa unit assignment before the dereference.

Reported-by: Peter Senna Tschudin <peter.senna@linux.intel.com>
Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/6840
Fixes: c7e269aa56 ("drm/xe/oa: Allow exec_queue's to be specified only for OAG OA unit")
Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Reviewed-by: Harish Chegondi <harish.chegondi@intel.com>
Link: https://patch.msgid.link/20251212061850.1565459-2-ashutosh.dixit@intel.com
2025-12-17 19:47:28 -08:00
..
2025-10-31 10:34:52 +02:00
2025-10-31 10:34:52 +02:00
2025-11-21 08:55:08 +10:00
2025-11-21 08:55:08 +10:00
2025-10-31 10:34:52 +02:00
2025-10-30 00:38:15 +01:00
2025-10-31 10:34:52 +02:00
2025-11-21 08:55:08 +10:00
2025-10-31 10:34:52 +02:00
2025-10-31 10:34:52 +02:00
2025-10-31 10:34:52 +02:00
2025-10-31 10:34:52 +02:00
2025-10-31 10:34:52 +02:00
2025-08-21 16:21:08 +02:00