Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 42A4A2BDC05 for ; Wed, 1 Jul 2026 14:13:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782915193; cv=none; b=mg3O4aNMZtbf8+IQKteBsG/mmNlfTBVqIdA1xBCwKVEPpeY8w/qIXWMuSLZjjSxvMB75r0rna0UIwedyp0fQdh8/qHsocKKkCi+K49C3AtMQq5yB0GCWapkqIu6vf1jMGGr3Y8eefWpTq5YsDbLy2sTdW0YvRChJLdKiYb5cddI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782915193; c=relaxed/simple; bh=KlbfiRn3uqhHayNWgGpu6Kiz46CxXy9htw0ZGIE6KLk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=OQEa/MFvzDBtwVTGdKwa5933iMy5pnHOwGosuLGE2n97CJoxalNs1mn0KDybNmlcZMYUhjCDh3qtNQmWZwm1daozaDf+CTvDaTZwm6NvpfJFWy/mE8b9UKBCeCLZvi04bhgETKwKZHZcJ20gwcuZCCk1mp9OXxNeuXoV+1xAJ7c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=hEXwOwDz; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="hEXwOwDz" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6924F1F000E9; Wed, 1 Jul 2026 14:13:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1782915191; bh=RfU7bZHw588z2tR//rNfbsQEpkucqzOcm8xzNYEhTQQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=hEXwOwDzt6MuZoLzrdB/v9H/UPJKnYMciWL4Gu/xPMgRXJmRuxx3+BCQS01nXn9Yx iTEC8gZU7DPOux4ZCq4pzSOo9FsgJ3gN2ptFiRMMRrc8QiD5tfSiKrtlijsJzzblx5 dbNmYSzj0lwH+2NgzNmnF7Yi5FEOMHC42dF+a2bDm6iG0dTlAsEMOdkJjR3ghgKQbr ZqEMf/bnn7hshNKglnWx7HGQdnjZpzn7ioQt/6//viCffyEQsWy8SlXQg8c9DQ2IO1 jFsc5rQ9E0+Hl6JaEXfXnutlcoEgV5W4z5PAyIULZ+lrq17iTuChF/LzeScSIEwPu7 rTZ929i1AXumA== Date: Wed, 1 Jul 2026 16:13:04 +0200 From: Andi Shyti To: Joonas Lahtinen Cc: Intel graphics driver community testing & development , Direct Rendering Infrastructure - Development , Martin Hodo , Matthew Brost , Daniele Ceraolo Spurio , Tvrtko Ursulin , stable@vger.kernel.org Subject: Re: [PATCH] drm/i915/gt: Fix NULL deref on sched_engine alloc failure Message-ID: References: <20260701114513.221254-1-joonas.lahtinen@linux.intel.com> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260701114513.221254-1-joonas.lahtinen@linux.intel.com> Hi Joonas, On Wed, Jul 01, 2026 at 02:45:13PM +0300, Joonas Lahtinen wrote: > Avoid using intel_context_put() before intel_context_init() in > execlists_create_virtual() as the kref_put() inside would lead > to NULL deref on the IOCTL path when sched_engine allocation fails. > > Discovered using AI-assisted static analysis confirmed by > Intel Product Security. > > Reported-by: Martin Hodo > Fixes: 3e28d37146db ("drm/i915: Move priolist to new i915_sched_engine object") > Cc: Matthew Brost > Cc: Daniele Ceraolo Spurio > Cc: Tvrtko Ursulin > Cc: # v5.15+ > Signed-off-by: Joonas Lahtinen looks correct! Reviewed-by: Andi Shyti Thanks, Andi