From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 0ED0F2E1722 for ; Thu, 2 Apr 2026 06:32:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775111572; cv=none; b=ux3Jq6h6ucl2wSNy8BFwf3JgNPJsgTN6sRnHdg0a5zGx9ypFnTzqmanrtl3SS2Ai9c6vpa4xTJTv3rC1IjwuFXCBet0ZUx70rHaktTu4GPDL42H4Wih0vtBJm1JRRwt94Q4uKtwUm9ytmJqXY0eMEKX5pZmT2z3Ot/+K41p8cAI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775111572; c=relaxed/simple; bh=IbrsCewlRMx8yPHGJ6f9rRG1sosTeQU+3FvY0dtbDRg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Bd38lnnCF1QSyHq5pWLiEDv6ibWFy+8f3G/EIAOS0aPTPv+owSJS88xBnHhpcnzsmB8cUU4rc7pJs35jZCUwc91k9Cfkc/5ODrQATw483tOdJTYiibaMJyXq0g4okis+mJcvwR57YXEmLRhZyk/Xb26Ezvg+UHM7rA5aYSVe7lA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=mZZQtqxA; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="mZZQtqxA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 01699C19423; Thu, 2 Apr 2026 06:32:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1775111571; bh=IbrsCewlRMx8yPHGJ6f9rRG1sosTeQU+3FvY0dtbDRg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mZZQtqxAzvVUrl92eeN0he1CcuMgqn8Uck1btP4e2NX6Mxu5sC1LalOJgYN/+yvCV E9gQCvrHJtdFBD15ykeykdFlqIqEs74AlqzDBQG5ItGwWwySu3oWhwFRigbkJ3LXYO WAe4KbbmsWhd0kZpnu0k/FaIF0FtJAf7A0zzeKrY= Date: Thu, 2 Apr 2026 08:32:24 +0200 From: Greg Kroah-Hartman To: Thomas Zimmermann Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Maarten Lankhorst , Maxime Ripard , David Airlie , Simona Vetter , stable Subject: Re: [PATCH] drm/ioc32: stop speculation on the drm_compat_ioctl path Message-ID: <2026040200-cuddly-macaw-8474@gregkh> References: <2026032451-playing-rummage-8fa2@gregkh> <3f43bc40-58a9-43b2-b21d-7487fb180b57@suse.de> Precedence: bulk X-Mailing-List: linux-kernel@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: <3f43bc40-58a9-43b2-b21d-7487fb180b57@suse.de> On Thu, Apr 02, 2026 at 08:20:27AM +0200, Thomas Zimmermann wrote: > > > Am 24.03.26 um 17:42 schrieb Greg Kroah-Hartman: > > The drm compat ioctl path takes a user controlled pointer, and then > > dereferences it into a table of function pointers, the signature method > > of spectre problems. Fix this up by calling array_index_nospec() on the > > index to the function pointer list. > > > > Cc: Maarten Lankhorst > > Cc: Maxime Ripard > > Cc: Thomas Zimmermann > > Cc: David Airlie > > Cc: Simona Vetter > > Cc: stable > > Assisted-by: gkh_clanker_2000 > > Signed-off-by: Greg Kroah-Hartman > > Also acked by Sima and Maxime via IRC > > https://people.freedesktop.org/~cbrill/dri-log/?channel=dri-devel&highlight_names=&date=2026-04-01&show_html=true > > Acked-by: Maxime Ripard > Reviewed-by: Simona Vetter Great, thanks, I'm assuming some drm developer can pick this up then? greg k-h