From patchwork Mon Feb 22 10:00:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 62549 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp1131293lbl; Mon, 22 Feb 2016 02:03:05 -0800 (PST) X-Received: by 10.98.34.25 with SMTP id i25mr36998259pfi.26.1456135384456; Mon, 22 Feb 2016 02:03:04 -0800 (PST) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id pz7si38688049pab.216.2016.02.22.02.03.04 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Feb 2016 02:03:04 -0800 (PST) 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; 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; dkim=neutral (body hash did not verify) header.i=@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 1aXnJh-0007zX-2U; Mon, 22 Feb 2016 10:02:09 +0000 Received: from mail-wm0-x22c.google.com ([2a00:1450:400c:c09::22c]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aXnIl-000701-A6 for linux-arm-kernel@lists.infradead.org; Mon, 22 Feb 2016 10:01:12 +0000 Received: by mail-wm0-x22c.google.com with SMTP id g62so155477562wme.0 for ; Mon, 22 Feb 2016 02:00:51 -0800 (PST) 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=b+DfmgPnvVRd4ARGtWbIgvg7A7V/aPh3Awcvkc8xPto=; b=ACJNr6+Dnqii+Q8/s8+B9xqg6s7D2DA8noqERYOjA8LW25A+71UVXWEd0JF/w4uxf/ Bp9XYrVlGPgmDApWtcBmgDe2ZrCy+VSZ6l3lMSGlytd3t+uDXzOHdM//lClnobD2BJi2 NchagqkbDwwR3Vq5s1ypil3mWEHFqwSIGNBNg= 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=b+DfmgPnvVRd4ARGtWbIgvg7A7V/aPh3Awcvkc8xPto=; b=A8v9k8XPxq8Uzr090CZPChx9UCUG8VMGTJfanMzPMlfX363aybsllSlJsI3E6Ii2o+ 66e/xwJyaINtGkVQ0lavOSk+rd5QUHleCKojOlv6iFdhTY65RIQ74QS9Y+1A04JLlEkU 0t8dC6UBePbzD39RYHCFWuiqCXOvqovJN+53M/ou1LcjBHO5wagiPY3P0YAykBq+Jyxz 92R6MaPEb7Eqoy8AVoKdzDJHoHvhv8s5596MRtODuyWuyoDqXl/Tl4tPOFKx2R3sAvxy aoO1NFGhpdpWJ1idZVGeSWe3gjKKLGuYJQ/O7RNFIP2hpAt+7yV6szOEdxqlbn/KuTSl whSw== X-Gm-Message-State: AG10YORCZuvFx/hVk2IwL78UwrWrq7HmR1ac7H3/JqCHky2vg6RZrG6Hp81kTTIsIwE+zWeu X-Received: by 10.194.143.44 with SMTP id sb12mr26612395wjb.58.1456135250370; Mon, 22 Feb 2016 02:00:50 -0800 (PST) Received: from localhost.localdomain ([195.55.142.58]) by smtp.gmail.com with ESMTPSA id e194sm20449019wma.19.2016.02.22.02.00.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 22 Feb 2016 02:00:49 -0800 (PST) From: Ard Biesheuvel To: linux-arm-kernel@lists.infradead.org, keescook@chromium.org, catalin.marinas@arm.com Subject: [PATCH 2/3] arm64: ptdump: add region marker for kasan shadow region Date: Mon, 22 Feb 2016 11:00:38 +0100 Message-Id: <1456135239-3607-3-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1456135239-3607-1-git-send-email-ard.biesheuvel@linaro.org> References: <1456135239-3607-1-git-send-email-ard.biesheuvel@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160222_020111_697636_6F4D19B8 X-CRM114-Status: GOOD ( 10.38 ) 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:22c 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_VALID_AU Message has a valid DKIM or DK signature from author's domain 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 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: matt@codeblueprint.co.uk, 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.5.0 _______________________________________________ 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 eadcb70e733c..12e4b1732303 100644 --- a/arch/arm64/mm/dump.c +++ b/arch/arm64/mm/dump.c @@ -23,6 +23,7 @@ #include #include +#include #include #include #include @@ -35,6 +36,10 @@ struct addr_marker { }; static 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" },