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 E77A9C433EF for ; Thu, 27 Jan 2022 18:44:51 +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-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=CZFzS8dkbyncSSnNYUWGuyfhNXzIw3SnvI4prTIrAjI=; b=c4uzt85zfq+xti sYFnpIgvLh4XX6RNI0jH29o1JyZ4IdFm7UQBrjKPX9IqI2r6KupfuWp7MSlSCnp8S9z11bMJcR2c1 7YipjmgVwFmJvx2rhn1H8JTVNndW5PgkSKPdpwZCFPt0yvUJq86EW4gXOwEviNDjbcuViT5CzknTF 52CKT9/wx+SjqkAy8a9i9a2snXM8pGnjiBMgKAwq3Def2XkqGImV8MH0DLhg0gt5fQjd9wk/2BNYt Jpgm9SHb4avTmn6+pDgBh0Cf2NkvhgqoJ1iOkl5HsLDpK8M0JVPGHd1pslqN4Y97ezHLm2J7in/AF o0EFJQaYxvY1jmgUd+tw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nD9kG-00GrVu-8U; Thu, 27 Jan 2022 18:43:44 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nD9kC-00GrVR-F6 for linux-arm-kernel@lists.infradead.org; Thu, 27 Jan 2022 18:43:42 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 88A6E1FB; Thu, 27 Jan 2022 10:43:39 -0800 (PST) Received: from [10.57.68.47] (unknown [10.57.68.47]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6AD533F7D7; Thu, 27 Jan 2022 10:43:38 -0800 (PST) Message-ID: <3e11270f-7014-4729-13cf-d9331d4bdec7@arm.com> Date: Thu, 27 Jan 2022 18:43:33 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 Subject: Re: [PATCH] arm64: errata: Remove AES hwcap for COMPAT tasks on A57 and A72 Content-Language: en-GB To: Arnd Bergmann , Ard Biesheuvel Cc: James Morse , Linux ARM , Catalin Marinas , Will Deacon , Suzuki K Poulose References: <20220127122914.1585008-1-james.morse@arm.com> From: Robin Murphy In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220127_104340_590804_F6E7BCE9 X-CRM114-Status: GOOD ( 15.32 ) 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-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 2022-01-27 14:52, Arnd Bergmann wrote: > On Thu, Jan 27, 2022 at 1:39 PM Ard Biesheuvel wrote: >> 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. > >> Fortunately, the only A72 that is known to be widely deployed with >> 32-bit kernels and/or user space is the Raspberry Pi 4, which does not >> implement the crypto extensions. > > I have previously used Amazon EC2 A1 instances (using Graviton 1, Cortex-A72) > to run Debian armhf and armel user space in chroot environments. No idea how > common that is for production environments, but there is a good chance that > actual users might use e.g. 32-bit docker images for Alpine Linux on the same > machines. > > There are also some early A57/A72 chips used in Android devices that may > frequently run 32-bit applications, or even be limited to 32-bit > kernels, see [1]. > Not sure how likely it is for any of them to get (a backport of) this > patch though. Isn't ChromeOS still notoriously shipping AArch32 userspace? Between Mediatek and Rockchip, both A57 and A72 are definitely playing on that stage. I'd concur that 32-bit *kernel* on v8 is a bit of a specialist sport, especially these days. IIRC Exynos 5433 might have been one of the more common Android setups for that, but 2015 is now an eternity ago in phone years... Robin. > > Arnd > > [1] https://www.androidpolice.com/2020/01/14/nvidias-shield-tv-dongle-can-only-run-32-bit-apps-but-you-probably-dont-need-to-panic/ > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel