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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 78677FA373E for ; Wed, 26 Oct 2022 17:03:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233774AbiJZRDP (ORCPT ); Wed, 26 Oct 2022 13:03:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233881AbiJZRDN (ORCPT ); Wed, 26 Oct 2022 13:03:13 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF3BDB7F56; Wed, 26 Oct 2022 10:03:12 -0700 (PDT) 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 4B89861FE7; Wed, 26 Oct 2022 17:03:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2DFD0C433C1; Wed, 26 Oct 2022 17:03:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666803791; bh=/+wI55XT5dYZeXKI1VjmZB/J7L9+8Ueltl/gh45JRz8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WECt2ysqUJirH3O5D1Qwgukz0uJIs1l3FEG/Pn647kRzJsIAZDaxWgWzhlfwd0XXN dJGupANP2VKMASK0ZmKJRK12zGxXLBk8EwI4N5DNnO/MZ8iL3XM5Nup2U3NfLCB1hY vcMzwefnX9+rEogzbTKp6rQUJ4SNkSZoenesiADE= Date: Wed, 26 Oct 2022 19:02:55 +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> <4f0ae178-f075-1f24-43b7-7ba8e494db76@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4f0ae178-f075-1f24-43b7-7ba8e494db76@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-doc@vger.kernel.org On Wed, Oct 26, 2022 at 09:51:20AM -0700, Florian Fainelli wrote: > > > On 10/26/2022 9:49 AM, Greg Kroah-Hartman wrote: > > 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 :) > > Meh, the perils of working with Gerrit in the same tree.. do you need me to > resubmit or can you strip those when you apply the patches? I stripped them all, no worries. 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 1FA90C38A2D for ; Wed, 26 Oct 2022 17:04:14 +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=OI8xTA0boQnTSINiCYqlHHl/SCVvoo2ZAvBXqTiBh3g=; b=OPXHA3eq4F7gFg YmjTfNx5kpgv03fioIFBgwL/h5fNB2cWyaCdbg8/uedyWY8Fhlk2mXWMMLidtbF9Ech4WLfysaSXM smdCMxO6sIbfvKQpYmQfAwdxBelhK3QUVJfpc3mhNoP6F8Ep6w9qMNxkrL4rYh+gpHnJVo0HjZcoR 5G2Q0RNebwwCu2t8TggTXKwMqCeLffDyUUOantiC2wdzswDPKg4SdjsP6FkK2mkZHu9jotaY6qV9k 34pD70ljIeznwxVb/i9GGSjVcs4e6+WXyd9TW9s7RqIuuWBD6+Q2WFQCh+O6DwMt9FGsGuOGjmK9d kHjbnCRVWT1nz0jz6RAA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1onjoB-00AHPY-Hl; Wed, 26 Oct 2022 17:03:15 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1onjo8-00AHOZ-Nf for linux-arm-kernel@lists.infradead.org; Wed, 26 Oct 2022 17:03:14 +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 dfw.source.kernel.org (Postfix) with ESMTPS id 4AAEC61FE6; Wed, 26 Oct 2022 17:03:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2DFD0C433C1; Wed, 26 Oct 2022 17:03:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666803791; bh=/+wI55XT5dYZeXKI1VjmZB/J7L9+8Ueltl/gh45JRz8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WECt2ysqUJirH3O5D1Qwgukz0uJIs1l3FEG/Pn647kRzJsIAZDaxWgWzhlfwd0XXN dJGupANP2VKMASK0ZmKJRK12zGxXLBk8EwI4N5DNnO/MZ8iL3XM5Nup2U3NfLCB1hY vcMzwefnX9+rEogzbTKp6rQUJ4SNkSZoenesiADE= Date: Wed, 26 Oct 2022 19:02:55 +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> <4f0ae178-f075-1f24-43b7-7ba8e494db76@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <4f0ae178-f075-1f24-43b7-7ba8e494db76@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221026_100312_835948_6953BA45 X-CRM114-Status: GOOD ( 21.75 ) 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 Wed, Oct 26, 2022 at 09:51:20AM -0700, Florian Fainelli wrote: > > > On 10/26/2022 9:49 AM, Greg Kroah-Hartman wrote: > > 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 :) > > Meh, the perils of working with Gerrit in the same tree.. do you need me to > resubmit or can you strip those when you apply the patches? I stripped them all, no worries. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel