Message ID | CAKv+Gu_62V1Ww5UEJd3KP+TRj_kw3PW+wZaxQDnn-0ookLBBDg@mail.gmail.com |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp1084573qga; Fri, 22 Jul 2016 09:29:20 -0700 (PDT) X-Received: by 10.67.8.10 with SMTP id dg10mr7902518pad.54.1469204960386; Fri, 22 Jul 2016 09:29:20 -0700 (PDT) Return-Path: <linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org> Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id oy8si16556401pac.126.2016.07.22.09.29.20 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Jul 2016 09:29:20 -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.85_2 #1 (Red Hat Linux)) id 1bQdJI-0001UK-TJ; Fri, 22 Jul 2016 16:28:24 +0000 Received: from mail-it0-x233.google.com ([2607:f8b0:4001:c0b::233]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bQdJD-0001Qj-80 for linux-arm-kernel@lists.infradead.org; Fri, 22 Jul 2016 16:28:21 +0000 Received: by mail-it0-x233.google.com with SMTP id f6so40683344ith.1 for <linux-arm-kernel@lists.infradead.org>; Fri, 22 Jul 2016 09:27:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=tWR9m7u0C4LM3jn3IdbAhtiAWUCkz67oxbUBy6zdl1M=; b=NEGbJycCeLq7aNHJNgZx0/B/k4xfh0K+dp1tJ74i1xNYQHDVdSSqA3fWTnOazhiHW/ iCXAt7Yb1lkiovTRd4BM4tve+zZw01dyTEd6hIDf/pfqz2f1rzC1Kwa8vmZo0GHKvbs2 GyFiuwyhbZ9qaZPosLV9aSa0oiXyikd1FCgFU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=tWR9m7u0C4LM3jn3IdbAhtiAWUCkz67oxbUBy6zdl1M=; b=f8iKnLa9vIMmwBNNmVcLkpmVhz75nxaG4cYzVR08FAkBOiN/NBiSX9mWwmUU37CKQx HH+WuJyvA/prCwaelYEg6BqLMSV2NeTq++K90e+Si1pYNwBYxL2bxwQJYsmuNn9G1MYf HCM50vWHizXFTXPamLmJnyMNRzWk9B/LCJd+pdPwHCa6rXaGVkdZ7FoLcI5NpGuvUBis 3JVa5rSKTEsAVPK+xfE+uJ44sU//5U/i55RkbF3LxH+0EQFU98sN9BJUkaoUibmsSWcu noub6kjELoI/0gg3exY8u5LgLnFNGLoXa/z9EOPLL1bnmBjNoTdDkaW0mxA75r8QswZ6 KSZA== X-Gm-Message-State: AEkoousJNNHQn7cXOg5djhgYV0mTfkUh/P1I9okH4U+tTiQfm+FKjtDwJv0RECl+KMwdlrdI4jU39Z2DnZ7mdVrP X-Received: by 10.36.107.211 with SMTP id v202mr5115474itc.51.1469204878007; Fri, 22 Jul 2016 09:27:58 -0700 (PDT) MIME-Version: 1.0 Received: by 10.36.214.6 with HTTP; Fri, 22 Jul 2016 09:27:57 -0700 (PDT) In-Reply-To: <64a731b2-1ddb-78f5-fd02-204f19f0a432@arm.com> References: <1467204690-10790-1-git-send-email-ard.biesheuvel@linaro.org> <1467204690-10790-3-git-send-email-ard.biesheuvel@linaro.org> <64a731b2-1ddb-78f5-fd02-204f19f0a432@arm.com> From: Ard Biesheuvel <ard.biesheuvel@linaro.org> Date: Fri, 22 Jul 2016 18:27:57 +0200 Message-ID: <CAKv+Gu_62V1Ww5UEJd3KP+TRj_kw3PW+wZaxQDnn-0ookLBBDg@mail.gmail.com> Subject: Re: [PATCH 2/5] arm64: efi: always map runtime services code and data regions down to pages To: Sudeep Holla <sudeep.holla@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160722_092819_803714_30D013A1 X-CRM114-Status: GOOD ( 19.29 ) 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 [2607:f8b0:4001:c0b: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_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 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Mark Rutland <mark.rutland@arm.com>, "linux-efi@vger.kernel.org" <linux-efi@vger.kernel.org>, Matt Fleming <matt@codeblueprint.co.uk>, Catalin Marinas <catalin.marinas@arm.com>, Leif Lindholm <leif.lindholm@linaro.org>, "linux-arm-kernel@lists.infradead.org" <linux-arm-kernel@lists.infradead.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org |
--- a/arch/arm64/mm/mmu.c +++ b/arch/arm64/mm/mmu.c @@ -272,6 +272,7 @@ static phys_addr_t late_pgtable_alloc(void) { void *ptr = (void *)__get_free_page(PGALLOC_GFP); BUG_ON(!ptr); + BUG_ON(!pgtable_page_ctor(virt_to_page(ptr))); /* Ensure the zeroed page is visible to the page table walker */ dsb(ishst);