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 17A4E3624B7 for ; Wed, 1 Jul 2026 15:03:59 +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=1782918241; cv=none; b=WhL5bjT2oV9TKU8Gii7Ly9hUw1uoJUGLA2sW7ObUk0WT0I3fnQ85dkX7NklOU07gUwzlr/3FvfNpIcsSRiWKgpjgD/O6WpX/xZ2utSAwCSfhnPA7R7eFMSvO9DzIGeIkrHsHrmw6lVkssp8LGsITvm/d2TiJBADZLzrkIq5BDNo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782918241; c=relaxed/simple; bh=BJc5Ck+t4R7+Cmoyn9+Hj4gwInSo+1g1wsNYthpobtk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=BXae+8fRT2i5P1pzDiMUzomalE+ZsxR9ltqkQZyIBoVCce7GLXQp28ega35AGMNxEzhxqqXvoYkMZ1Y9yDIKytU8xySfi3sffz3t/W8ZtiMWQPuTa4E7RIvqRKT5K+XoQpdWnCD4PPbEEmjm2Garq2nkleLfqptQuhVxCtQAeCY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ZFHTizPR; 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="ZFHTizPR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5C5081F000E9; Wed, 1 Jul 2026 15:03:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1782918239; bh=zk1agxCFt6nBM0rrZXtqvdO2lHxzgZTETSU2JH6M4JQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=ZFHTizPRHQweZY4aMchzZQHYcXubYszoHd/c8wNEcJTbsm7FIqbir23niTe0zpqde UTc4ZRMUFiJQHzVSjL5NFdUDZK+xgg0KyKZ9umuLXaqDKFTQjklRJ/qPHHyLS0YpQm szo68Jd4qddjgjPli5zXcNiCaRODPrSuPKTgTuj1JaeVe1hvc1fvuOcmlumbT+YQan kXhvhO76xsEefJYJKtw04NVI+d3MsLOd+25b4N8bkgf3eZvnzc/983oX4NaLc4+ZZ8 jaFVSRa2hIT5JYk9V4rGbub5PVk+GYdlx9pi1AgU7RS6yRljC60pVx3O/JKUoxagwW TJjmW3k/tKXXw== Date: Wed, 1 Jul 2026 17:03:53 +0200 From: Andi Shyti To: Joonas Lahtinen Cc: Intel graphics driver community testing & development , Direct Rendering Infrastructure - Development , Martin Hodo , Faith Ekstrand , Simona Vetter , Tvrtko Ursulin , Maarten Lankhorst , stable@vger.kernel.org Subject: Re: [PATCH] drm/i915/gem: Fix NULL deref in I915_CONTEXT_PARAM_SSEU Message-ID: References: <20260701075555.52142-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: <20260701075555.52142-1-joonas.lahtinen@linux.intel.com> Hi Joonas, On Wed, Jul 01, 2026 at 10:55:55AM +0300, Joonas Lahtinen wrote: > Setting context engine slot N into I915_ENGINE_CLASS_INVALID / > I915_ENGINE_CLASS_INVALID_NONE and attempting to apply > I915_CONTEXT_PARAM_SSEU to the same slot N will deref NULL. > Fix that. > > Discovered using AI-assisted static analysis confirmed by > Intel Product Security. > > Reported-by: Martin Hodo > Fixes: d4433c7600f7 ("drm/i915/gem: Use the proto-context to handle create parameters (v5)") > Cc: Faith Ekstrand > Cc: Simona Vetter > Cc: Tvrtko Ursulin > Cc: Maarten Lankhorst > Cc: # v5.15+ > Signed-off-by: Joonas Lahtinen Reviewed-by: Andi Shyti Thanks, Andi