Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4279411imm; Tue, 11 Sep 2018 09:28:17 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZXG8udjp9cLoWYT5rRV6v8Zcek/zkqllVfuLna40UYQugtnRIiiX9s3fQ58W40l3fbxko+ X-Received: by 2002:a63:da04:: with SMTP id c4-v6mr29755150pgh.398.1536683297425; Tue, 11 Sep 2018 09:28:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536683297; cv=none; d=google.com; s=arc-20160816; b=qHj55cTnks+simc9hpOiSc0QKYIltlp5w26OZEyL3WXacuSAxHhJacVs7nLz/xf2OM iqL2TEz9Ry1FBGg8BXcgvZoQUyVQua564NcyEURdN3mykXsHoJb74G829l3Y4fM7r+Vs tsQDF4qpCC3lPj1878Bfjrgizd8k4cynMwn789LkeX2XYLOULaTJHkRlEeTa7pZErkhJ z8mGYEpfgDrg16ZaEsrSNXg8LbzVZ6+psrVOKPkHNnt61KRhlGxfzeVTAm5hegY57wp5 KxJRraHoYuVIfQuBLz1p/t/AGOJLfs1EsxRImb9XULTEQE6EQkAM3c2hBdUTgFdWqk1L 8g0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:to :from:date; bh=wYVCJCGB/t7/YPB2gwszzgvHWZP8Cbhis5remYEtZ2o=; b=QWmLSXB2osVY/BQlnDOPBTfsPvjN2Y2Y1cUKnlDUkVPfymmfCl5qjEWHC71uIGo6R8 NpwL1hHo7Bh+WbCvzul2nJf6MxyXn1S6h04nl3bIaEEEvuZmWCteigTUlYTaGC3pV0ml ZWr8zZWLLo5dzElw8Tu8cS9mluGiGGMsOzSIYQX197DkkGDx8NVFvgFXXRuiSLUyf6VZ UWROmbzo5GXvs4FEoEKxUSPEQckqH0zXcffoZPzNmTR35rtTTqdcumNB0KBrcRC2qA1d r4H2rCk8F4HmGlfpkL+rec0egASYNyVGiPi8ggO9TDak+V+5ouKE580sKvwigc7cC1SX qJEA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o123-v6si21362862pfd.36.2018.09.11.09.28.01; Tue, 11 Sep 2018 09:28:17 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727645AbeIKV14 (ORCPT + 99 others); Tue, 11 Sep 2018 17:27:56 -0400 Received: from mx2.suse.de ([195.135.220.15]:57506 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726622AbeIKV14 (ORCPT ); Tue, 11 Sep 2018 17:27:56 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 71682ACEA; Tue, 11 Sep 2018 16:27:51 +0000 (UTC) Date: Tue, 11 Sep 2018 09:27:41 -0700 From: Davidlohr Bueso To: Eugene Korenevsky , linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, Ard Biesheuvel Subject: Re: [PATCH v2] efi: take size of partition entry from GPT header Message-ID: <20180911162741.GC3902@linux-r8p5> References: <20180911161527.GA30689@vnote> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20180911161527.GA30689@vnote> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 11 Sep 2018, Eugene Korenevsky wrote: >Use gpt_header.sizeof_partition_entry instead of sizeof(gpt_entry) >for GPT entry size. >According to UEFI 2.7 spec 5.3.1 "GPT overview":, the size of a GUID Partition >Entry element is defined in the Size Of Partition Entry field of GPT header. >The GPT with entries sized more than sizeof(gpt_entry) is not illegal. >OVMF firmware from EDK2 perfectly works with it, see edk2-tianocore source >code. But _why_ is this needed? Does this firmware need larger sized entries (ie: does not work without it)? Thanks, Davidlohr