Received: by 10.223.185.116 with SMTP id b49csp409944wrg; Fri, 16 Feb 2018 00:47:49 -0800 (PST) X-Google-Smtp-Source: AH8x2255YonYxQeM+cvHLrBAy1ZVW/FeQGrFL0DJzigSrE5Gai9P7lODEBjzZMKICgRZHIjuWN24 X-Received: by 2002:a17:902:328:: with SMTP id 37-v6mr5302350pld.398.1518770869024; Fri, 16 Feb 2018 00:47:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518770868; cv=none; d=google.com; s=arc-20160816; b=0wYrYTmpxwI5utWa6OpC/3uit6iAQAq/1lnkGxOPgWR7QRzOOVWQqU9H3dzEChWsbg YSuezCSkR4vWmcjLRpQ+RJgEcWidOGO4MOKWXyZRWRxolDBxyQlE/ANZEl9J9gJuFYiF HANNEPQYjcS3rOj+b/VYHbnBacGapuv/9GCdK4KyEqjwJA0or/9A2r5D/Bs2DwODnU4W z5gzXgoLrNjlCtGV25zF+AY+4cHp/wLGJF5ftM4RcUeFzsufZNciYL3cBVXXPJooOvbI Tlq0PnMKwY8OTCF2s0kUm4jnJ8ipw//V0+1ppYqzfSANDQ6wx8xam8Wv88E6GouhTh+Z pIjA== 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=i/2VpSiX9n5ZddGQ1XINHX0I4wgbugr/eY2RwKLf9vU=; b=YsfsUiKsfHd5qwX0AXMGeOb2J+/CyzP0+wdd7ZJjUDUBZFKXy6mzYc5GWRQVnLpoIC IfyT1c3Zh70F2u0fb5nxZJdpkxIlasahOBhQD414pml+oYZcF91yXDI6JxBQaSZ7NRk0 cJSv9KenQ/lk1PI+SObAJqjZ4t8lG/WNGn5gJIU1YIHRxOj31GUGaTl2J5waTHYO9e2K /vtubAK4zmvzxDLyBdXfsL0bZ5S+kbVAV9ZSFWjffG1mzGEojLxNnEaEcGx/vpOVUmXL YR5aay1eHVcB4LTu4mlJuQ7qfw0D3mjEq8cJ0Y+LLDvvG6iaZzGV1NzTA8YgM1gjq/y4 gR+g== 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 q9si1107855pgn.210.2018.02.16.00.47.33; Fri, 16 Feb 2018 00:47:48 -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 S1426430AbeBOQqy (ORCPT + 99 others); Thu, 15 Feb 2018 11:46:54 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:60294 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1423822AbeBOPkz (ORCPT ); Thu, 15 Feb 2018 10:40:55 -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 C7D971170; Thu, 15 Feb 2018 15:40:54 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Will Deacon , Catalin Marinas Subject: [PATCH 4.15 046/202] [Variant 3/Meltdown] arm64: entry: Reword comment about post_ttbr_update_workaround Date: Thu, 15 Feb 2018 16:15:46 +0100 Message-Id: <20180215151715.590617213@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180215151712.768794354@linuxfoundation.org> References: <20180215151712.768794354@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.15-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: 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 @@ -1010,16 +1010,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