From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796554933; b=BR509r8WTqu4PkmcicKUCLI67JpHIPcR97CyHWsLr9bD7mcWeTpi8H71PdUnPOCP04Mw 84nQpx0hyD9pk1L7nFqaUtPdaivkQUts4OfagA5dWPfboSjXtVFfEljjr7XD498mrFIHc gNER5H86Fdp+3TQhTpb6lnpJIAkoC9r8PVEyZ0BpPTtvbOnlbUVQ8fJRz0rS8MBLmCq9P ijonl9k9u8PvJxMeqilB8vgO/uJ7Mo1l07qqI+sWtI5cgpaZid24l2rOkQX3ziRngmi/7 Z6PXEGVBCksLev2fX9L/+fdrhEbb2pBoBUPe5qKOVFRvs63xODeyCK6xMcZ/IUESx8w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796554933; h=Received:DKIM-Signature:Received:Date:Message-ID:From:To:Cc:Subject: In-Reply-To:References:User-Agent:MIME-Version:Content-Type: X-SA-Exim-Connect-IP:X-SA-Exim-Rcpt-To:X-SA-Exim-Mail-From: X-SA-Exim-Scanned; bh=j1YcKDmDvQ1Erzg+vcd/RQFexHkJjmX43eeVVYIBojY=; b=Sqr/rjHvF18t/Q85ZDVVlrwZ4qsvGa/EZIA+vL/qtWOD1Tvb2Y9g12fuCnTW/MHB/uR9 oA9XLjpxYqftIigE++/ZlCVPGr6+TQ/H0DXY9D87LJ+jQOt2MQQJ4wHTsrigSrODwmKFB BClhYIbeKBo8Fl8vtKXNTWgpG5YMagCFFNEKAbLyXQc9Cw78BqPlYvPMacwkqSm7/87Sm U+0tZkt6NN2W3RSejjmTBd6PrqcIxYS8vz/wTIh/Y42poAjDKkCtHST4T2jM9vpjERU9v bKK9kTy3uolkd5zEpzqFAwuDnh6fa8To/Utj/YtJU86QwD8scckF8H6aBkax5MWGkng== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=aNJHqsIt; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1ABD1606A31F; Sun, 6 Dec 2026 11:02:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=aNJHqsIt Received: by smtp.kernel.org (Postfix) with ESMTPSA id DD89A1F0093B; Sun, 6 Dec 2026 11:02:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796554932; bh=j1YcKDmDvQ1Erzg+vcd/RQFexHkJjmX43eeVVYIBojY=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=aNJHqsItJvsisBMOZD1Si4WezAWYWfEcLZS938v2j7YcduPG9h1x5hAbvi5gJpMv/ PwzQZNQaMqkDIpa/Yszc7ImM2oUkiWg8bszwCaaKf2Y99sOE3lz0EenqjfWhwWgKN1 WO7iPUATtKTZ6iLAGT8rl1DrHBuXIxHjN3wlgG2rcTfdF7KATDZ76qL0tl3otVEWWQ MxgcaqrarNtp3PVhyRScOOtmxG3WcxPlB0X3FEl7dk/T73lLsuS6ojsvtecH4dzDd2 EYt9gg2liwcn20qVk2fflnn1g3uHoXAGF053KUvWwYwF9vcOqA0jz9oftsxKk+/HFu vLuh1d3osrCWg== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xaA0P-00000007jbQ-3Lj5; Sun, 06 Dec 2026 11:02:10 +0000 Date: Sun, 06 Dec 2026 11:02:09 +0000 Message-ID: <86o6aywu32.wl-maz@kernel.org> From: Marc Zyngier To: Christopher Obbard Cc: Ard Biesheuvel , Ilias Apalodimas , Bjorn Andersson , Johan Hovold , linux-efi@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH RFC] efi/libstub: arm64: Disable pointer authentication on the ThinkPad X13s In-Reply-To: <20261205-wip-obbardc-qcom-x13s-nopauth-v1-1-913a21a18286@oss.qualcomm.com> References: <20261205-wip-obbardc-qcom-x13s-nopauth-v1-1-913a21a18286@oss.qualcomm.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/30.1 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: chris.obbard@oss.qualcomm.com, ardb@kernel.org, ilias.apalodimas@linaro.org, andersson@kernel.org, johan@kernel.org, linux-efi@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false On Sat, 05 Dec 2026 18:50:43 +0000, Christopher Obbard wrote: > > The Lenovo ThinkPad X13s (sc8280xp) firmware appears not to let the > kernel use pointer authentication, and the kernel is not known to boot > if it tries. Today every user has to know to add arm64.nopauth to the > command line, and the X13s wiki, the Ubuntu X13s GRUB settings and the > Debian installation guide all tell them to. This is still the case with > BIOS 1.67 (N3HET95W) and 1.68 (update N3HUJ26W), the latest at the time > of writing. > > ARM Pointer authentication is not working (needs firmware fixes, > disabled via kernel commandline). > > The stub can already identify the machine from SMBIOS in > check_platform_features(), but has no way to pass an option on to the > kernel. Add efi_quirk_cmdline, which check_platform_features() can set, > and put it in front of the command line before the kernel is booted. > On arm64 the command line goes into /chosen/bootargs, which the early > idreg override code reads, so this works for options such as > arm64.nopauth that have to take effect before the kernel proper > starts. The options go first, because anything after "--" is passed > to init. If the new command line cannot be allocated, warn and boot > with the original one. > > Set it to arm64.nopauth on the X13s, identified by a manufacturer of > "LENOVO" and a family of "ThinkPad X13s Gen 1" in the SMBIOS type 1 > record, as reported by the 21BX, 21BY and 4810 machine types. Check > the record length before reading the family field, which older SMBIOS > versions do not have. Only do it when the kernel is built with pointer > authentication support, since the option does nothing otherwise. I think there is a misunderstanding about the purpose of the override command line options. They *are* the mitigation for indigent firmware, and should never be added by the kernel itself, stub or otherwise. The manufacturer could easily fix their FW and be done with it (in most cases, this is a single bit to flip in SCR_EL3), but decided against it. This is their call, but I can't see why it should be the kernel's job to paper over this. And if they decided to fix it tomorrow, we'd have to add some more tracking to allow the feature. Do you see how this completely fails to scale? Because this is not only this particular Lenovo laptop. It is *all* Qualcomm machines, which have varying degrees of broken firmware (pauth for all pre-X1 implementations, cntpoff for X1, and I'm willing to bet my own weight in cheese that we will get something on X2 in the coming weeks). At the end of the day, this is about vendors acting irresponsibly, and the user should know about that. Forcing them to insert the override serves as a reminder that they are using a sub-par machine, and that they can make their money talk next time they decide to buy something to run Linux on. Thanks, M. -- Without deviation from the norm, progress is not possible.