Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp4364258ima; Mon, 4 Feb 2019 15:17:19 -0800 (PST) X-Google-Smtp-Source: AHgI3IYg6n9y0D77+rlwlI/d6ULxWUU0IzMnFo0srQ2AZVpCOrjtb/ryzy6jHGkUtQvFs/hVHZzJ X-Received: by 2002:a17:902:112a:: with SMTP id d39mr1976751pla.66.1549322239209; Mon, 04 Feb 2019 15:17:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549322239; cv=none; d=google.com; s=arc-20160816; b=0OF4x9t0YYNwzefue2+n3JczP3ZzCvGeFeInQbDgpAvVlfHDJ/hzwm1ec5AmsPRq3k VgBxenNbw+r/ceirmH4uvxTd1ghcaJLIcGbw/V+7TcEi9aV2b+DJQW4jcD102ywOyzVw 3hNHc6WRWSRu6eWMVG3mNlF+pB4zPUCZRYlc7gmCOkBI4stThTeS68fkGzbeS2qAuJd1 rTsfGoRlH+IP+HLErAOS+UUM+QPu2pY9bFc2OhJIKjyELl8depaMThk9l76sfMkKfpSZ 9cVCD3fp4lM/XMRAgtlJgs7JtYE3kaa9faK0GBx5oClFqyoVT9wVMDQ/ejOsSA4/VTAR IS7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :dlp-reaction:dlp-version:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from; bh=J/ExATfWjR5X3eiwKgK2jlnaUZukU5slcC2AJOTEWKM=; b=CRnASWwd1NH8mPTRRizN8OoGB3UC4UDNa5JuijwS97Rbbx+Ds3l/5CVG+HyocD0hn4 +UaVBNblKqTcmFNT/Q4dKqoYv9cTmhztI8YbFuPvWU63EYeLwCEDx6fg6dtQpFz+gDDN HWeAb9mxboZfLIgpIIDbSw6vwSxiEgIO8DNsFNsjZQQb+BZrqlFwEH6P/uNPv66xP9rx NJPc1nFvwttwA3QVCGlFcLr45QEUHO5dGU1uhzFhBd/XnqU1MPeT90+J/dYKdn557F11 QB2usMegbPIbeBLmUduW7+NSMnHv5hfuwajoI0JQhO+o1OLMvAeDviLAKQa9YMx9yX+i cxjg== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q10si1314530pll.221.2019.02.04.15.17.03; Mon, 04 Feb 2019 15:17:19 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727833AbfBDW3i (ORCPT + 99 others); Mon, 4 Feb 2019 17:29:38 -0500 Received: from mga03.intel.com ([134.134.136.65]:13526 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726676AbfBDW3h (ORCPT ); Mon, 4 Feb 2019 17:29:37 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Feb 2019 14:29:35 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,560,1539673200"; d="scan'208";a="140652615" Received: from orsmsx110.amr.corp.intel.com ([10.22.240.8]) by fmsmga002.fm.intel.com with ESMTP; 04 Feb 2019 14:29:34 -0800 Received: from orsmsx114.amr.corp.intel.com ([169.254.8.248]) by ORSMSX110.amr.corp.intel.com ([169.254.10.158]) with mapi id 14.03.0415.000; Mon, 4 Feb 2019 14:29:34 -0800 From: "Prakhya, Sai Praneeth" To: Ard Biesheuvel , Ingo Molnar CC: linux-efi , Thomas Gleixner , Linux Kernel Mailing List , AKASHI Takahiro , Alexander Graf , Bjorn Andersson , Borislav Petkov , Heinrich Schuchardt , Jeffrey Hugo , Lee Jones , "Leif Lindholm" , Linus Torvalds , Peter Jones , "Peter Zijlstra" Subject: RE: [PATCH 02/10] x86/efi: Return error status if mapping EFI regions fail Thread-Topic: [PATCH 02/10] x86/efi: Return error status if mapping EFI regions fail Thread-Index: AQHUutt7LSE8klPKh0KE/vBXB1rXuqXPw/SAgAACwwCAAHQnQA== Date: Mon, 4 Feb 2019 22:29:34 +0000 Message-ID: References: <20190202094119.13230-1-ard.biesheuvel@linaro.org> <20190202094119.13230-3-ard.biesheuvel@linaro.org> <20190204071809.GA115714@gmail.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZTQwY2Q5OTAtNDFlZi00NWViLThkODMtNzQ0MDIwMTg3MTBhIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoieGpjZUpPZkpMK3dRWjdmTDBrSXpxTDJqeG91MEZRWHR5dXFuK1htdlg1cWdldjdkZDk0eHFJU0RhQVh1Yk12ViJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-originating-ip: [10.22.254.139] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org PiA+ID4gZWZpX21hcF9yZWdpb24oKSBjcmVhdGVzIFZBIG1hcHBpbmdzIGZvciBhbiBnaXZlbiBF RkkgcmVnaW9uIHVzaW5nDQo+ID4gPiBhbnkgb25lIG9mIHRoZSB0d28gaGVscGVyIGZ1bmN0aW9u cyAobmFtZWx5IF9fbWFwX3JlZ2lvbigpIGFuZA0KPiBvbGRfbWFwX3JlZ2lvbigpKS4NCj4gPiA+ IFRoZXNlIGhlbHBlciBmdW5jdGlvbnMgKmNvdWxkKiBmYWlsIHdoaWxlIGNyZWF0aW5nIG1hcHBp bmdzIGFuZA0KPiA+ID4gcHJlc2VudGx5IHRoZWlyIHJldHVybiB2YWx1ZSBpcyBub3QgY2hlY2tl ZC4gTm90IGNoZWNraW5nIGZvciB0aGUNCj4gPiA+IHJldHVybiB2YWx1ZSBvZiB0aGVzZSBmdW5j dGlvbnMgbWlnaHQgY3JlYXRlIGlzc3VlcyBiZWNhdXNlIGFmdGVyDQo+ID4gPiB0aGVzZSBmdW5j dGlvbnMgcmV0dXJuICJtZC0+dmlydF9hZGRyIiBpcyBzZXQgdG8gdGhlIHJlcXVlc3RlZA0KPiA+ ID4gdmlydHVhbCBhZGRyZXNzIChzbyBpdCdzIGFzc3VtZWQgdGhhdCB0aGVzZSBmdW5jdGlvbnMg YWx3YXlzIHN1Y2NlZWQNCj4gPiA+IHdoaWNoIGlzIG5vdCBxdWl0ZSB0cnVlKS4gVGhpcyBhc3N1 bXB0aW9uIGxlYWRzIHRvICJtZC0+dmlydF9hZGRyIg0KPiA+ID4gaGF2aW5nIGludmFsaWQgbWFw cGluZyBzaG91bGQgYW55IG9mDQo+ID4gPiBfX21hcF9yZWdpb24oKSBvciBvbGRf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