Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp11211ybf; Wed, 26 Feb 2020 07:58:24 -0800 (PST) X-Google-Smtp-Source: APXvYqy/2wLW8cpcn3GiZU+kopYumL+fkwf8fuWPUJ9QoPwhgIKT92JgsvxVew0Tm6pX8kIuDhH6 X-Received: by 2002:a05:6830:1042:: with SMTP id b2mr3607540otp.306.1582732704115; Wed, 26 Feb 2020 07:58:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582732704; cv=none; d=google.com; s=arc-20160816; b=beaTH6Q0UgMhtVyTeYtKkBXOwYR+46frj6SAlMaluwRrQQkXEIW+lGGYBzUIKVJsmw uEAS7YELH1ZD+gJpBoXvigTd39vejcbARwK58LHhNwi6SaKR1E5wBoKP/xcHE2XScIwa FA5m+Tcjr4NFPrzBKd+8Z534B8HubUIo/98l3pNT4A+yuH5xCNYY5SwIfkQog8LSNX0D mvUZUa+O5bthj3wWWu7LPS/y3ksJxv3SSNfbeoGzqKjja30J5DtOiOMQVCggth1oPo0m sS0cA6IhGVpkeWjLQSrw1Oz4fPSkbadRvXsg+YIvPpZdFExiXSfUbviaa4vCMuyCYOFi Xdow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=1qL9W+DenvddX/ggnY4tyH7bX234MLTV/z3XSbHsW5E=; b=oIehFdQcJufNfqDlnAXq+9ZDapXB7jM+FEcVQfxJu3xesWafgOh7ydF55sHJ7mDYky WiIWIwtCg4TiTXRbQ+35VlMbCaFh1CCSdNnaumuuteX0C6W6JfLlf6xqzC5j0g+hsNL7 7gpsFi16wbZVegCAZ/h+25/iHEDdFmXk7/4HDpaxoYtpMEZG2Yv+B3BOHnavT9Fy1Hky vOOb573rk7+LmBM+Q+GlKJ2hlN2gXlbV/AzcwOiM8Cs1NT8zHsYQUT0YzbY8aj507yMQ 8iHlrvcbJ5CXqMa7dUho8kJlmPF+VO5y17MH8jQJ8b8VGr43FZ11aCfwL8rWsTPUzSLp /0Fg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o13si935otp.27.2020.02.26.07.58.12; Wed, 26 Feb 2020 07:58:24 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728918AbgBZP5v (ORCPT + 99 others); Wed, 26 Feb 2020 10:57:51 -0500 Received: from foss.arm.com ([217.140.110.172]:38214 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728904AbgBZP5t (ORCPT ); Wed, 26 Feb 2020 10:57:49 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id BBC5C31B; Wed, 26 Feb 2020 07:57:48 -0800 (PST) Received: from localhost (unknown [10.37.6.21]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 05E893F819; Wed, 26 Feb 2020 07:57:48 -0800 (PST) From: Mark Brown To: Catalin Marinas , Will Deacon Cc: Alexander Viro , Paul Elliott , Peter Zijlstra , Yu-cheng Yu , Amit Kachhap , Vincenzo Frascino , Marc Zyngier , Eugene Syromiatnikov , Szabolcs Nagy , "H . J . Lu " , Andrew Jones , Kees Cook , Arnd Bergmann , Jann Horn , Richard Henderson , =?UTF-8?q?Kristina=20Mart=C5=A1enko?= , Thomas Gleixner , Florian Weimer , Sudakshina Das , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-fsdevel@vger.kernel.org, Mark Brown Subject: [PATCH v7 11/11] arm64: mm: Display guarded pages in ptdump Date: Wed, 26 Feb 2020 15:57:14 +0000 Message-Id: <20200226155714.43937-12-broonie@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200226155714.43937-1-broonie@kernel.org> References: <20200226155714.43937-1-broonie@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org v8.5-BTI introduces the GP field in stage 1 translation tables which indicates that blocks and pages with it set are guarded pages for which branch target identification checks should be performed. Decode this when dumping the page tables to aid debugging. Signed-off-by: Mark Brown --- arch/arm64/mm/dump.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/mm/dump.c b/arch/arm64/mm/dump.c index 860c00ec8bd3..78163b7a7dde 100644 --- a/arch/arm64/mm/dump.c +++ b/arch/arm64/mm/dump.c @@ -145,6 +145,11 @@ static const struct prot_bits pte_bits[] = { .val = PTE_UXN, .set = "UXN", .clear = " ", + }, { + .mask = PTE_GP, + .val = PTE_GP, + .set = "GP", + .clear = " ", }, { .mask = PTE_ATTRINDX_MASK, .val = PTE_ATTRINDX(MT_DEVICE_nGnRnE), -- 2.20.1