From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4A37BC38A2D for ; Wed, 26 Oct 2022 16:51:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=1VX+H4f7BDpdXhHuqU3M1Z+RO1KzMeHOorTboaBcAKM=; b=YDUBXqTgDsNh8G xNCGCGuv3t1QssdslMYPR0WG9qoevF1/DfwBevz0IJx46sEcb3gsRFnW7mFCLiTgrrQJ2c79vVP+D ERo5IUqCnzE/Hv+tgyev1BLiMdHVsDKn8EwAQFnHSGGGg0OiVDg6MnYJkscTHSekfcsWiGdXeW6ls pHq9QMlIKC+QoAWOd72wOcY99UWKuuVGsVOG1egrZMt82uxrza3javcAL3H6tdsCEScC6jW7In6lU L+tdviHgvLAz7PN7BVp2I0uM8Nm1FDSf/t1TGpQycERcT5DQp4ubjFFcaI/5bbCYJG+spEeHi+JOS +XJ42cbVLDQZzgc7E6+Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1onjbJ-00ADXS-Ix; Wed, 26 Oct 2022 16:49:57 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1onjbG-00ADWn-IK for linux-arm-kernel@lists.infradead.org; Wed, 26 Oct 2022 16:49:56 +0000 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 ams.source.kernel.org (Postfix) with ESMTPS id E3B34B82389; Wed, 26 Oct 2022 16:49:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 18337C433C1; Wed, 26 Oct 2022 16:49:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666802991; bh=wI+cvFDQv9ZooHzHXWYl831/q37TuDOpJJZQ1J1lXJc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PbZT13GCid6tWyeW7jo2Ic577BY/WUwCWs3Ag0SuhntISOkHolOsk323ad//quKnA D8OnfJ5+3yBwW58WbWGv5x9a3QYEadIVoxH+NtpqI5yLWGubIFkodn+bzUqAlPN8mB WdBrdheU1/8R10KQpkek6RSMORny1SWSgwj41P+0= Date: Wed, 26 Oct 2022 18:49:49 +0200 From: Greg Kroah-Hartman To: Florian Fainelli Cc: stable@vger.kernel.org, James Morse , Ard Biesheuvel , Will Deacon , Catalin Marinas , Jonathan Corbet , Zenghui Yu , Ionela Voinescu , Shreyas K K , Marc Zyngier , Joey Gouly , Reiji Watanabe , Alexandru Elisei , "moderated list:ARM64 PORT (AARCH64 ARCHITECTURE)" , "open list:DOCUMENTATION" , open list , Sasha Levin Subject: Re: [PATCH stable 4.19] arm64: errata: Remove AES hwcap for COMPAT tasks Message-ID: References: <20221020230110.1255660-1-f.fainelli@gmail.com> <20221020230110.1255660-3-f.fainelli@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20221020230110.1255660-3-f.fainelli@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221026_094954_774046_306BAD0D X-CRM114-Status: GOOD ( 15.62 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Oct 20, 2022 at 04:01:07PM -0700, Florian Fainelli wrote: > From: James Morse > > commit 44b3834b2eed595af07021b1c64e6f9bc396398b upstream > > Cortex-A57 and Cortex-A72 have an erratum where an interrupt that > occurs between a pair of AES instructions in aarch32 mode may corrupt > the ELR. The task will subsequently produce the wrong AES result. > > The AES instructions are part of the cryptographic extensions, which are > optional. User-space software will detect the support for these > instructions from the hwcaps. If the platform doesn't support these > instructions a software implementation should be used. > > Remove the hwcap bits on affected parts to indicate user-space should > not use the AES instructions. > > Acked-by: Ard Biesheuvel > Signed-off-by: James Morse > Link: https://lore.kernel.org/r/20220714161523.279570-3-james.morse@arm.com > Signed-off-by: Will Deacon > [florian: resolved conflicts in arch/arm64/tools/cpucaps and cpu_errata.c] > Signed-off-by: Florian Fainelli > Change-Id: I651a0db2e9d2f304d210ae979ae586e7dcc9744d No need for Change-Id: in upstream patches :) _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel