Message ID | CAKv+Gu-ncY=edbP0tD13m_Fogqrh+BFKW+ACSwGTu+7JtuKGWA@mail.gmail.com |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp710123lbc; Fri, 1 Apr 2016 05:38:02 -0700 (PDT) X-Received: by 10.98.44.73 with SMTP id s70mr30694318pfs.2.1459514281875; Fri, 01 Apr 2016 05:38:01 -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 x80si21182069pfi.97.2016.04.01.05.38.01 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Apr 2016 05:38:01 -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 1alyJv-0000YY-Q0; Fri, 01 Apr 2016 12:36:59 +0000 Received: from mail-ig0-x22c.google.com ([2607:f8b0:4001:c05::22c]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1alyJr-0000Qp-M5 for linux-arm-kernel@lists.infradead.org; Fri, 01 Apr 2016 12:36:57 +0000 Received: by mail-ig0-x22c.google.com with SMTP id ui10so11991022igc.1 for <linux-arm-kernel@lists.infradead.org>; Fri, 01 Apr 2016 05:36:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=VY+TKQ6QpYRMLXAxDGzclm2XZCl4XuJcnvUIsOcv/rE=; b=Lthif41StXzklamy/sQBPf1Rf1ytQOYC85o3JiNQvvaN2mrlIGM+GC+7lN1wTqpD/0 r1tU6XL1BQZfYP6mc6uH1NPqZYESPp9bt19T6CNXnw9qZm8PT+kDqS2ICVj0MDS/jdai wq4QcKFmMlvQa/eUSQUTEHIoB0N8i36we2i1U= 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:date :message-id:subject:from:to:cc; bh=VY+TKQ6QpYRMLXAxDGzclm2XZCl4XuJcnvUIsOcv/rE=; b=B+sNX/OOfCn9DvSh9LGCrMYxc4c6ELTHVHnww2e1EzSjoF6hBE5skkAesWyMok9rA5 0B2oOk18nUQRHz2Xnck/cW5xn1nuCzcIzrviORYGhGYtIGjeVEcn3Lhou6ZJn5X/0Hzb xNzgeeFwFCJi3dxwgB4EjnKEKivHXrrv58vz74/GylUnZg32xBknjIs+q+P/ix+qy3Zn PTGUnsbC8WG5BQ72lmOctvmxEXy6XArsH/4nENpLU484eqbqxZvjf+2EWTxhtpDwlszk S3c0K1C0AkUFCLGcvJwQhlckyZK9HIYcPLn2iTG4vuMfLZOeWTLLPNWOYhvLwCkVS2eI eb1g== X-Gm-Message-State: AD7BkJLUItRCj8yMFAnd0ZFMCXJnk6mrC6CAOjZvwzaWvGD4Ps7oPALh8LQe4IxglwpHRpi8CL2d1yJL78EJ8FwH MIME-Version: 1.0 X-Received: by 10.50.78.130 with SMTP id b2mr2863549igx.71.1459514193694; Fri, 01 Apr 2016 05:36:33 -0700 (PDT) Received: by 10.36.29.6 with HTTP; Fri, 1 Apr 2016 05:36:33 -0700 (PDT) In-Reply-To: <1459355933-13529-5-git-send-email-ard.biesheuvel@linaro.org> References: <1459355933-13529-1-git-send-email-ard.biesheuvel@linaro.org> <1459355933-13529-5-git-send-email-ard.biesheuvel@linaro.org> Date: Fri, 1 Apr 2016 14:36:33 +0200 Message-ID: <CAKv+Gu-ncY=edbP0tD13m_Fogqrh+BFKW+ACSwGTu+7JtuKGWA@mail.gmail.com> Subject: Re: [PATCH v2 4/5] efi: implement generic support for the Memory Attributes table From: Ard Biesheuvel <ard.biesheuvel@linaro.org> To: "linux-efi@vger.kernel.org" <linux-efi@vger.kernel.org>, "linux-arm-kernel@lists.infradead.org" <linux-arm-kernel@lists.infradead.org>, Matt Fleming <matt@codeblueprint.co.uk>, Mark Rutland <mark.rutland@arm.com>, Russell King - ARM Linux <linux@arm.linux.org.uk> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160401_053655_988820_0C4EA675 X-CRM114-Status: GOOD ( 33.93 ) 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:c05: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_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: <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: Ard Biesheuvel <ard.biesheuvel@linaro.org>, Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will.deacon@arm.com>, Leif Lindholm <leif.lindholm@linaro.org>, "Prakhya, Sai Praneeth" <sai.praneeth.prakhya@intel.com>, Peter Jones <pjones@redhat.com> 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 |
diff --git a/drivers/firmware/efi/memattr.c b/drivers/firmware/efi/memattr.c index c55683937f4a..4dfef78e64d8 100644 --- a/drivers/firmware/efi/memattr.c +++ b/drivers/firmware/efi/memattr.c @@ -61,6 +61,8 @@ static bool entry_is_valid(const efi_memory_desc_t *in, efi_memory_desc_t *out) u64 in_size = in->num_pages << EFI_PAGE_SHIFT; efi_memory_desc_t *md; + *out = *in; + if (in->type != EFI_RUNTIME_SERVICES_CODE && in->type != EFI_RUNTIME_SERVICES_DATA) {