Message ID | 1510942921-12564-3-git-send-email-will.deacon@arm.com |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp843696qgn; Fri, 17 Nov 2017 10:22:38 -0800 (PST) X-Google-Smtp-Source: AGs4zMYbV5DhlFOfWYHv4HDPC8xL2zOmD+QZ/QLOpJS2Hd3kmzd5kHZS1o0DJRsi/0LyHB1pKiIr X-Received: by 10.159.252.1 with SMTP id n1mr6022175pls.415.1510942958128; Fri, 17 Nov 2017 10:22:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510942958; cv=none; d=google.com; s=arc-20160816; b=Z+6F0Mw2zENjlrTaZzQAQKTJmRLeJHfhhwwKaxhscc/79Y4wbZ2hWKaWrq+O2MFAAS DUUFkx8ORLyQjBnuS5v1JBXOtnsPmeufqbMuDOrAl2nymuHlhESjnPCcziYAqGBdtoQk 4J4TebLYOsMAJqfP1DM7NScs3FMPxzc6IpngzS4/xA6SIh3wmgExCByMDMmjcy4ypDWT hSBpHeFPFdyfalpl4sJZAY/DCTKCSu1U2DZ8M1+cSCry588WNrVlr3NCdlx3y6Q4D/kY XOdstdshgZTFryGGkJnH4VhoJn3b2UyNjujDxewk4/ranXawwcNKQgQFnV1jwjSw9gcY qAKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=FC0EjtZGpmqUEOVEdjfbY49Aq+9DDmM38+aEoqOkXH0=; b=bRcgw2o/PU/RrH2yqxXI2K/QzQzF4hAYd3KfhczYADVT52gkvBYo4dBNHazJri5S/r +8EulhcDZ2Xtx4AYFQSpH/QBsf8VhAq+Dh3lTO/4lHG5CzKr42fLtRi83eHHijrW3Rvd P+zWfHUm3jAqTxIvvwdjvX0KguedV0SV6LQl/vP9GKpwdThSMjwPMjlH2v/TXxE8Cwez B9iTG43VE7I7lHpRS9qbUSFi30OCrgubzXQffUoUr5nMScbfJj3DyY3nx06GHQJrZ6mu CyIr8Ye/oIk5K3YImKnwVC+4aXiYlJvG9rCVmAiYeVlhy6rRVXdjvVU1qRzfORMfaRba jDOA== 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: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x5si3079420pgb.437.2017.11.17.10.22.37; Fri, 17 Nov 2017 10:22:38 -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 S1161277AbdKQSWg (ORCPT <rfc822; dan.rue@linaro.org> + 28 others); Fri, 17 Nov 2017 13:22:36 -0500 Received: from foss.arm.com ([217.140.101.70]:39296 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760276AbdKQSVy (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 17 Nov 2017 13:21:54 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 234C615BF; Fri, 17 Nov 2017 10:21:54 -0800 (PST) Received: from edgewater-inn.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id E85993F5A0; Fri, 17 Nov 2017 10:21:53 -0800 (PST) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id 056571AE10C2; Fri, 17 Nov 2017 18:22:02 +0000 (GMT) From: Will Deacon <will.deacon@arm.com> To: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, catalin.marinas@arm.com, mark.rutland@arm.com, ard.biesheuvel@linaro.org, sboyd@codeaurora.org, dave.hansen@linux.intel.com, keescook@chromium.org, Will Deacon <will.deacon@arm.com> Subject: [PATCH 02/18] arm64: mm: Temporarily disable ARM64_SW_TTBR0_PAN Date: Fri, 17 Nov 2017 18:21:45 +0000 Message-Id: <1510942921-12564-3-git-send-email-will.deacon@arm.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1510942921-12564-1-git-send-email-will.deacon@arm.com> References: <1510942921-12564-1-git-send-email-will.deacon@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
arm64: Unmap the kernel whilst running in userspace (KAISER)
|
expand
|
diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 0df64a6a56d4..582bbd77c390 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -872,6 +872,7 @@ endif config ARM64_SW_TTBR0_PAN bool "Emulate Privileged Access Never using TTBR0_EL1 switching" + depends on BROKEN # Temporary while switch_mm is reworked help Enabling this option prevents the kernel from accessing user-space memory directly by pointing TTBR0_EL1 to a reserved
We're about to rework the way ASIDs are allocated, switch_mm is implemented and low-level kernel entry/exit is handled, so keep the ARM64_SW_TTBR0_PAN code out of the way whilst we do the heavy lifting. It will be re-enabled in a subsequent patch. Signed-off-by: Will Deacon <will.deacon@arm.com> --- arch/arm64/Kconfig | 1 + 1 file changed, 1 insertion(+) -- 2.1.4