Received: by 10.223.185.116 with SMTP id b49csp4191426wrg; Mon, 26 Feb 2018 12:54:37 -0800 (PST) X-Google-Smtp-Source: AH8x227PbVp49sxusBq3zM/JZ8Wz2NpWtSERF9tME2pYTBmtPYsyZTUGMl87YHIgSxac9Rww6em2 X-Received: by 2002:a17:902:20e6:: with SMTP id v35-v6mr11777975plg.226.1519678477762; Mon, 26 Feb 2018 12:54:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519678477; cv=none; d=google.com; s=arc-20160816; b=CORJmcCpuGNzMD228vUPK2hyaQx1M6c+3kWB7HflKTcNNPNI7iHXHKxN+AUCSFbbLG qhkv4v1cvGHTi1CrRxNIJkWdnEirCtF8aEVtXQN+0FG0LqbXEro+w3y1aRHNVTSA9pei gfqetxwGE+M+wDwjQt6hn0bghAuJ3uXArDadxBUC3hYq+4HFHlX28AWxrXr9oojOHwK/ 48kIQR3N2livMc1UizkmlB3UGmNY16Ibh8ppnk09i+67288aF3rTFxEfAOIH+DGDPI6F YFEIK93bf3enqwe4vy1MPkmUHMKIh9B0bprwxQ5C7mpXQOP/g8uutiyw6Jd0yIJ5nYyf Y7AQ== 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=yNTVGHdBPsWZBoF7Cy3KS0aD8K73X91BxU5KgE4+ZEo=; b=OY5+jmPQlwbcXS+YTCh0gefuN5HPgUVUrDmrvAsudqWKyShkjSDnWaA21YobNFzlJp d2YIvQfYl88VRc+m/dc57Bn+nLycxBzR5K83EnTCL4ObvJd21uaTXqc1pgwwGfcJUAE1 rXFiMPjLOpoiHMjpMQS/BF0l2jeTipBeIX5y/71qomuwXeEAR1EDIzo3OXd7NsnQ1Roj KCQCRxetRClZ5IlhC1+EVC/xp2v5j0mPKrtQ2C+wHeQffHvnMtc26Ei+yqWENYU6e73r YW/Ar7n0Ut1+0aytZ5gTMsKpVQEA8fBlD1SuiwUPO1eDevtlZjASHJ2MdfezxV/uO0WZ bkkg== 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 h3-v6si7269650plh.694.2018.02.26.12.54.21; Mon, 26 Feb 2018 12:54:37 -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 S1752747AbeBZUXv (ORCPT + 99 others); Mon, 26 Feb 2018 15:23:51 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:34904 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752720AbeBZUXs (ORCPT ); Mon, 26 Feb 2018 15:23:48 -0500 Received: from localhost (clnet-b04-243.ikbnet.co.at [83.175.124.243]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 7B671F1F; Mon, 26 Feb 2018 20:23:47 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nicolas Dechesne , Ard Biesheuvel , Will Deacon Subject: [PATCH 4.14 02/54] arm64: mm: dont write garbage into TTBR1_EL1 register Date: Mon, 26 Feb 2018 21:21:39 +0100 Message-Id: <20180226202144.483348512@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180226202144.375869933@linuxfoundation.org> References: <20180226202144.375869933@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.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Ard Biesheuvel Stable backport commit 173358a49173 ("arm64: kpti: Add ->enable callback to remap swapper using nG mappings") of upstream commit f992b4dfd58b did not survive the backporting process unscathed, and ends up writing garbage into the TTBR1_EL1 register, rather than pointing it to the zero page to disable translations. Fix that. Cc: #v4.14 Reported-by: Nicolas Dechesne Signed-off-by: Ard Biesheuvel Acked-by: Will Deacon Signed-off-by: Greg Kroah-Hartman --- arch/arm64/mm/proc.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/arm64/mm/proc.S +++ b/arch/arm64/mm/proc.S @@ -155,7 +155,7 @@ ENDPROC(cpu_do_switch_mm) .macro __idmap_cpu_set_reserved_ttbr1, tmp1, tmp2 adrp \tmp1, empty_zero_page - msr ttbr1_el1, \tmp2 + msr ttbr1_el1, \tmp1 isb tlbi vmalle1 dsb nsh