Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp861449pxm; Thu, 3 Mar 2022 06:05:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJxDcuBoGr+yZTy9oUvkn+op5hE666K+CCcrf8pffXrgj+mVaCRBwhd8GBkYJgnQJMqQIeB+ X-Received: by 2002:a17:907:d1c:b0:6d7:687:d13f with SMTP id gn28-20020a1709070d1c00b006d70687d13fmr9595648ejc.314.1646316316012; Thu, 03 Mar 2022 06:05:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646316316; cv=none; d=google.com; s=arc-20160816; b=09LQU5M3zFVL9VtTuooL6UvuRA8qnbxtlwl8c2BZkVfD79eVXkJpxtI4GE595fhMOI 8hqbnisQmBPjquFmlVCa2sbez/pD5v+LsAOhDGISc2nbbM38687GskRcl17nfBU+LQ+7 j/abZp5pJmoLYCY5I9siuXEELUVksgiv+qzN3grxFMa6yizb4QT70BgvV6eortw+4pAx XqSzUwyuyyAV7Yb76toDrw4IOipKPtrxhwcGtzcj8rADadBIMvR2tiguKGnObJouCao0 lsTaOrPM3PcTeDQ54GlNK6SENBOpC2LhDfVs2DmdWSiA4SHMPVGVkonfETlVdAyyxbyY 2rtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=qQDG5ozibFMrRelzgEK2nc6J8BUfTKQoA78IAsMe/Ug=; b=AMwzZU89I0UzlUijx2CMLISDPBtVopOUxWR1tfKRtaL6Gbi/7Pdz+1S3lBTwQK93nH xmP7pUL06Nkwkr/+SkLroDVuDlCqLwFoVRutg+88WexooxHYSZBpMtCf33g1Sk1QTipe JFM3+81z0QVKB2IAEMGLgPOfeacbRO+MNiDUZur37v44vJC5qLOeQgyJsKniJi4ILXEd MNbs5G/Xbu6MLx2e60jUfXdDPpTsduOtIv6QADq7BuNpXTj6A6qgSGFdCjQHhvbvWy7D AmzLprGOQQuTj3DOc5l04VUzZhSM3NnYS9CAqSppTimGagyAFxFDs6RhafvyRuRhWeIv SKnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cWBLz87Z; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o8-20020a170906974800b006d033984eacsi1705907ejy.68.2022.03.03.06.04.42; Thu, 03 Mar 2022 06:05:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cWBLz87Z; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233344AbiCCMgK (ORCPT + 99 others); Thu, 3 Mar 2022 07:36:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230202AbiCCMgJ (ORCPT ); Thu, 3 Mar 2022 07:36:09 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F01E317AED8 for ; Thu, 3 Mar 2022 04:35:23 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 882B46195D for ; Thu, 3 Mar 2022 12:35:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 33949C004E1; Thu, 3 Mar 2022 12:35:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1646310922; bh=MwDLPcO1Ocp7QjMOHMDw33bbS0SqixUvjnBHcbbCEUg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cWBLz87Z0hSBQK18GhI/3lgmhYAK8lelFaAt3OwtAFPH/MG4yKa6WdhsHAn8p6pd+ GIj+nq9XyIBz5nCkp+So1N3cN4fdVN3U/QTfSuCwP81oOYCKrkjNZolXMOaOcUBfmg pUR0GIAnMSq7ocMAo6qyn9ImBrnJaXr8FlZxJcvzzFGkNDVf0rcxcL/ZGSGVcZMBHp 8R6Pn7wIGrtxDUCnISU8jXsD5el9UsacfMyr/4EVsAsgDeyuX9dc0pGXjZ3CsE/HBx 47NCxfTIIfP6PKuHyMpF7QThVIgZldHJMGZbdzdhKCW7/FlC64p5yKj1dmHWgbtyia 43Vm8PY/hRoHg== Date: Thu, 3 Mar 2022 12:35:17 +0000 From: Mark Brown To: Marc Zyngier Cc: Ard Biesheuvel , Herbert Xu , "David S . Miller" , Catalin Marinas , Will Deacon , Linux Crypto Mailing List , Linux ARM Subject: Re: [PATCH] arm64: crypto: Don't allow v8.2 extensions to be used with BROKEN_GAS_INST Message-ID: References: <20220302165438.1140256-1-broonie@kernel.org> <87y21r1e2b.wl-maz@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="wZ3mfu1XPtsV0i4b" Content-Disposition: inline In-Reply-To: <87y21r1e2b.wl-maz@kernel.org> X-Cookie: Password: X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org --wZ3mfu1XPtsV0i4b Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Mar 03, 2022 at 11:16:28AM +0000, Marc Zyngier wrote: > Indeed. The only case where the broken GAS .inst has hit us was in > combination with alternatives (see eb7c11ee3c5c for details). The > encoding itself is always correct, and it is only the label generation > that was broken. If we were affected by this, the kernel would simply > fail to build with these toolchains. > If this ever happens (because we'd add some extra alternative > sequences to the crypto code?), we can revisit this. But in the > meantime, I don't see anything warranting this extra dependency. Ah, in that case the SVE code should be fine too and there's no issue with either. I'd understood the issue to be with the actual instruction encoding. --wZ3mfu1XPtsV0i4b Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmIgtgUACgkQJNaLcl1U h9ClFQf+JOwIfwI3NV/+kxTUaYpHaafyj0zMiec+gqHkcG3v0aqCKUMJ/P9ky/rw ZAUncu2aekMm4bCrGKhJPxtAvLSOZdcAu2tFwBARFz4hbXWksezYxePv5rpnrcy8 t6O+tc1oGQmaoqjas1XbMSkxkg8WxNVkeIMQDShwhtnamxa2Sxj7LtFRK+W73WQC kf9OIK9UzqbC4dpG1tgXLJaYQH0RBwPBlghA8dSNwXqeNK8JgL9UvjwQuEpqC45H func/j2M4J3s2mCIzzqDQerDRf3JqYQFeJLEQbepuFHGvHLWp6/Eu9eCP6tLrxer eHhl7MTDtSFvhC185naNBHGeG+43PA== =rBcZ -----END PGP SIGNATURE----- --wZ3mfu1XPtsV0i4b--