Received: by 10.223.185.116 with SMTP id b49csp2304935wrg; Thu, 15 Feb 2018 09:32:43 -0800 (PST) X-Google-Smtp-Source: AH8x224asN8LEkdw0bs/Td2+earpqM5CVfC3CeSIAb8Jgw6hWGbVXEUANrqn48mgS0AQo+SOymDX X-Received: by 10.99.172.66 with SMTP id z2mr2708488pgn.273.1518715963088; Thu, 15 Feb 2018 09:32:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518715963; cv=none; d=google.com; s=arc-20160816; b=Lus7pXTwzS879ro38PA8/V+OrDcL5VlJU97TtjLVYvzbDxwtcgLGW0lWmka4x/XZpu qe2ofCt2cknOM7xAKdI8BCa3c0i3EsENbd5sa0BH03rEjcIgGtym91wRWhIGurzOo0JD L9gD42p3BI3GGezcoSnh8cp1zJ95yEW4e1WfzqXW1wgsqn0FXLUIxXr7ex8zLf4NfopB czm8eupIW75ZnD7AOEQmgscMxZYbWuKZTUpXQl1gvXgAtsbJmJlStXwx0KjmD7uV9p6J 8TyNb09scqzc+J0h71EVWLzVVwTlOPHCN1AuBZJioN74ANljDs4ziXDzVHs/TU8zVT9W Eypg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=lmUvg6EibFIPLn8uztA8rYxVesKAddpu+kvGDCbyQpQ=; b=u2PSqFTDaNszxqEX64bKfmbLbcVIGuv+xYk6c58HqsUDINxbm/Lx+Su/9hxXWBgIX1 GHbMe35nXPKrsA5fyTUdMP/MI2mHtlGkh4iJbPVuAhgVraiMB7lHQzsixJhb+NS7Ly6M hc3Hqplmsve17SyyhflxYQhKix9vSm4OquXGsjBftoIZVgdXqG1+rIoaZssMXKKDkTlr zHoIJ1rlDMaBWScSIIz7JFGweRK45g6TujS5/NJLdyByK1N5YapsXpSdO4X75XQDeSkb mdu8bOsCyqzjFdxbaIs0YxxUCLLaRtOBDiTzIIXf0iGUvN3yqJ5mNbYvAruFgo403Um9 XzXA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z2si983500pfe.350.2018.02.15.09.32.28; Thu, 15 Feb 2018 09:32:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1164910AbeBOPdg (ORCPT + 99 others); Thu, 15 Feb 2018 10:33:36 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:56776 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1164842AbeBOPde (ORCPT ); Thu, 15 Feb 2018 10:33:34 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id F0C9A10D4; Thu, 15 Feb 2018 15:33:33 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Will Deacon , Catalin Marinas , Ard Biesheuvel Subject: [PATCH 4.14 054/195] [Variant 3/Meltdown] arm64: entry: Reword comment about post_ttbr_update_workaround Date: Thu, 15 Feb 2018 16:15:45 +0100 Message-Id: <20180215151708.438842785@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180215151705.738773577@linuxfoundation.org> References: <20180215151705.738773577@linuxfoundation.org> User-Agent: quilt/0.65 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Will Deacon Commit f167211a93ac upstream. We don't fully understand the Cavium ThunderX erratum, but it appears that mapping the kernel as nG can lead to horrible consequences such as attempting to execute userspace from kernel context. Since kpti isn't enabled for these CPUs anyway, simplify the comment justifying the lack of post_ttbr_update_workaround in the exception trampoline. Signed-off-by: Will Deacon Signed-off-by: Catalin Marinas Signed-off-by: Ard Biesheuvel Signed-off-by: Greg Kroah-Hartman --- arch/arm64/kernel/entry.S | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) --- a/arch/arm64/kernel/entry.S +++ b/arch/arm64/kernel/entry.S @@ -962,16 +962,9 @@ alternative_else_nop_endif orr \tmp, \tmp, #USER_ASID_FLAG msr ttbr1_el1, \tmp /* - * We avoid running the post_ttbr_update_workaround here because the - * user and kernel ASIDs don't have conflicting mappings, so any - * "blessing" as described in: - * - * http://lkml.kernel.org/r/56BB848A.6060603@caviumnetworks.com - * - * will not hurt correctness. Whilst this may partially defeat the - * point of using split ASIDs in the first place, it avoids - * the hit of invalidating the entire I-cache on every return to - * userspace. + * We avoid running the post_ttbr_update_workaround here because + * it's only needed by Cavium ThunderX, which requires KPTI to be + * disabled. */ .endm