[Intel-gfx] [PATCH v2] drm/i915: Prevent potential null-ptr-deref in engine_init_common

Andi Shyti andi.shyti at linux.intel.com
Wed Oct 11 12:27:29 UTC 2023


Hi Nirmoy,

On Wed, Oct 11, 2023 at 02:25:47PM +0200, Nirmoy Das wrote:
> If measure_breadcrumb_dw() returns an error and bce isn't created,
> this commit ensures that intel_engine_destroy_pinned_context()
> is not called with a NULL bce.
> 
> v2: Fix the subject s/UAF/null-ptr-deref(Jani)
> 
> Fixes: b35274993680 ("drm/i915: Create a kernel context for GGTT updates")
> Cc: Oak Zeng <oak.zeng at intel.com>
> Cc: Andi Shyti <andi.shyti at linux.intel.com>
> Cc: Jani Nikula <jani.nikula at linux.intel.com>
> Signed-off-by: Nirmoy Das <nirmoy.das at intel.com>

Reviewed-by: Andi Shyti <andi.shyti at linux.intel.com> 

Andi


More information about the Intel-gfx mailing list