Received: by 10.213.65.68 with SMTP id h4csp707792imn; Fri, 6 Apr 2018 07:36:56 -0700 (PDT) X-Google-Smtp-Source: AIpwx49S1EMOR0SRNnhEz9opU6D5wnY3tbbO+RJOQOabzJ8AJOhPI81gr6/BMSuPcYhw4r2Dtcm2 X-Received: by 2002:a17:902:7b8e:: with SMTP id w14-v6mr13596083pll.52.1523025416807; Fri, 06 Apr 2018 07:36:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523025416; cv=none; d=google.com; s=arc-20160816; b=dYUdf/KVhWqE7CgGLDpw/FsLJ2sDJdyrW2uYG0+nSRckwm1THx0OO5aZoNifyrkih9 TlqwhNn+l5Qly2r9ODpX6W7wMOn2IRqWa9tNm4Xo3Z7f0lWt7/3bpCKren2Hc+lViCdi GzZs7ke2XgW5ADqLgZg8Mqu5CJJkHr4p2uz4rs7+4EAOVJu06lWbr2f+ndT6r68DAnIo 09d0raHFFOL7STboDIY8DZJl905TIpz36WK9b1SAH+qYtvxPQbQlWXP+Ot5BLqO7Z5zN iuk4UJZeg7jsCjdxWdhJxWm55aKx4WykL8lzOSkJfg8rCvVEA893oOf1KtvsiIIdXoCI nzDw== 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=oGkR5gGRY0uA1IoYAON/3+eyQrpBjL9A8T2xmYMDo1U=; b=dE0bJCG5FCWwPorr79CuawyJxZoemKt0Ea5jGg/ten6WKQlMX8BipzDu6/nvoOh4XD ncd3rnbk1WLB1GWeKBXETtcsk1IspdEcG3vaHbT/nVZwlPwMplxsoNvVXpAXA3s02TEW w8A5PtmzCI9qbe8zTcHQj9L2aJvyHJIt4xxUS+lP03HjjUHerE7+FybqXoWLK+A4u9nD /0+SOi+gamSCerYipaaDnotAaHQqkC9hAAGlzmmoZm7ilLAh+4Zi8jq/vYMHoPkF10c1 fQShiXNJYSrBN1435oiaOJ+hu+h+5A5E8pqC8lbgfhQm6q9qXXF19L+7ZEivzVdzbUYO yHdw== 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 92-v6si8260307pli.623.2018.04.06.07.36.42; Fri, 06 Apr 2018 07:36:56 -0700 (PDT) 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 S1756095AbeDFNfp (ORCPT + 99 others); Fri, 6 Apr 2018 09:35:45 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:58924 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755789AbeDFNfm (ORCPT ); Fri, 6 Apr 2018 09:35:42 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id AC25ADC8; Fri, 6 Apr 2018 13:35:41 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Greg Kroah-Hartman , Will Deacon , Catalin Marinas , Greg Hackmann , Alex Shi , Mark Rutland Subject: [PATCH 4.9 075/102] arm64: entry: Reword comment about post_ttbr_update_workaround Date: Fri, 6 Apr 2018 15:23:56 +0200 Message-Id: <20180406084342.062083807@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180406084331.507038179@linuxfoundation.org> References: <20180406084331.507038179@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review 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.9-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: Alex Shi [v4.9 backport] Signed-off-by: Mark Rutland [v4.9 backport] Tested-by: Will Deacon Tested-by: Greg Hackmann 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 @@ -861,16 +861,9 @@ __ni_sys_trace: 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