From patchwork Fri Apr 22 16:48:04 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 66462 Delivered-To: patch@linaro.org Received: by 10.140.93.198 with SMTP id d64csp826662qge; Fri, 22 Apr 2016 09:49:52 -0700 (PDT) X-Received: by 10.98.98.1 with SMTP id w1mr30001515pfb.117.1461343792087; Fri, 22 Apr 2016 09:49:52 -0700 (PDT) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id h9si8465367pap.227.2016.04.22.09.49.51 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Apr 2016 09:49:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) smtp.mailfrom=linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ateGI-000298-Df; Fri, 22 Apr 2016 16:48:58 +0000 Received: from mail-wm0-x233.google.com ([2a00:1450:400c:c09::233]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ateFz-0001l8-FM for linux-arm-kernel@lists.infradead.org; Fri, 22 Apr 2016 16:48:40 +0000 Received: by mail-wm0-x233.google.com with SMTP id v188so27912671wme.1 for ; Fri, 22 Apr 2016 09:48:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=WmJOa5V67HXqXsEqj2J3l1Sjo9bVLlLbOYo6pNAq5t4=; b=egJcYq0mSIfhyn8MX2JaFiwmqpynIV2pRiMaeSjkEMu71nU/zeIzpHaW44Nz2YelUd cy2YydktT1C7QWU8O8NJt7kpK0rJCqE7DZ//6h6S41FzgHYLoRykN05WWWABL3QRZayF uGqtHJa3UCj/L7I8LQqF4eaQEpyz8siKIjudM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=WmJOa5V67HXqXsEqj2J3l1Sjo9bVLlLbOYo6pNAq5t4=; b=ieCmh5Cz7pTXveTsKfFsl6SSXGujpFA+dml+Iquiuv2JA5KuV6HCk1oEWlCfmhNOpG md021LZnpqH5dHyEgxGDNLjNIxoZ6974LSQk0xky5vLgvGsKrxNOoyBS5QMg5LPEKy/W Xwg5BuuVxwWsR6yqAr9YKMYBJmMLJyau2jwWJo7pZv4DrnTwUFr34KXSnY4stbK6DGkx rjPgVJB9xfk4fr7oNzzYoDKfHfLcC4m2mOfU9zThnwxxi00+ZBz8yUJxyaQGykU8UHNK YCh3Guz9w8sf3lQcjVd98IFEtZRnv9/Wp7fjmTlBZr+/+hKm/NQZOxScpi9OutwI3CON L/uQ== X-Gm-Message-State: AOPr4FVop2GtA/uG1d9el7GRonsDdNbP8jBNt5vRk6kjV749MSoUZ3DdoN2eMSufEf+KNktY X-Received: by 10.28.91.199 with SMTP id p190mr4830554wmb.47.1461343697884; Fri, 22 Apr 2016 09:48:17 -0700 (PDT) Received: from localhost.localdomain ([195.55.142.58]) by smtp.gmail.com with ESMTPSA id h8sm4256015wmd.2.2016.04.22.09.48.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 22 Apr 2016 09:48:17 -0700 (PDT) From: Ard Biesheuvel To: linux-arm-kernel@lists.infradead.org, linux-efi@vger.kernel.org, mark.rutland@arm.com, catalin.marinas@arm.com, linux@arm.linux.org.uk Subject: [PATCH v2 2/6] arm64: ptdump: add region marker for kasan shadow region Date: Fri, 22 Apr 2016 18:48:04 +0200 Message-Id: <1461343688-8552-3-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1461343688-8552-1-git-send-email-ard.biesheuvel@linaro.org> References: <1461343688-8552-1-git-send-email-ard.biesheuvel@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160422_094839_674768_9204A12E X-CRM114-Status: GOOD ( 10.10 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2a00:1450:400c:c09:0:0:0:233 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: will.deacon@arm.com, keescook@chromium.org, Ard Biesheuvel MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org Annotate the KASAN shadow region with boundary markers, so that its mappings stand out in the page table dumper output. Signed-off-by: Ard Biesheuvel --- arch/arm64/mm/dump.c | 5 +++++ 1 file changed, 5 insertions(+) -- 2.7.4 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel Acked-by: Mark Rutland diff --git a/arch/arm64/mm/dump.c b/arch/arm64/mm/dump.c index 493461159462..8404190fe2bd 100644 --- a/arch/arm64/mm/dump.c +++ b/arch/arm64/mm/dump.c @@ -23,6 +23,7 @@ #include #include +#include #include #include #include @@ -33,6 +34,10 @@ struct addr_marker { }; static const struct addr_marker address_markers[] = { +#ifdef CONFIG_KASAN + { KASAN_SHADOW_START, "Kasan shadow start" }, + { KASAN_SHADOW_END, "Kasan shadow end" }, +#endif { MODULES_VADDR, "Modules start" }, { MODULES_END, "Modules end" }, { VMALLOC_START, "vmalloc() Area" },