[Intel-gfx] [PATCH] drm/i915: Prevent potential UAF in engine_init_common

Nirmoy Das nirmoy.das at intel.com
Wed Oct 11 12:26:48 UTC 2023


Hi Andi,

On 10/11/2023 2:22 PM, Andi Shyti wrote:
> Hi Nirmoy,
>
> On Wed, Oct 11, 2023 at 01:54:51PM +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.
>>
>> 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>
>> Signed-off-by: Nirmoy Das <nirmoy.das at intel.com>
> Reviewed-by: Andi Shyti <andi.shyti at linux.intel.com>

Resent with a fixed subject. Please check again.


Thanks,

Nirmoy

>
> Andi


More information about the Intel-gfx mailing list