Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4295658imm; Tue, 11 Sep 2018 09:43:05 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdb37p96/CNNsknvOYCq7r6lqogeqPf5axLV04AlXxquJ6KWh+iYsxvufccxYkxnPdt5cUij X-Received: by 2002:a62:c805:: with SMTP id z5-v6mr30926282pff.44.1536684185126; Tue, 11 Sep 2018 09:43:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536684185; cv=none; d=google.com; s=arc-20160816; b=GoA4x+2aQpSA7thXtGfP+y25lMRwxInHtcnbqPz9HJATvl4f1mD9NTCxNBQEQm+odc mG4uGVBzqdGnZK/VlMS0T5fYGnRgxgCPwFTy29lysBLieK3B85Vvm86kBuQ9x/UVlo9I +Ay5OhEMBBwZAnBmT78hBw2WvdSSV1x2anuerxUE8Qavur6CLLrrSNhh5RgEJd7AT+/1 nUFS7qjKbTsrXA6Pyo8aAmgxS06ukNb7NVYZouFI8wOu1X/vJoDBNVXhCDLNFbIFrui5 FTtKPKRpAITdpiMofciM1D1MuPHxSrI88nWbtysRBoBfeQriKB1D4sZLTpF9vtlioeYw P64Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=6vX4UW7RaK/6b9Bmv6ojKyw7WtIAXIJrAaOPuMQcqT0=; b=SHT9BnK6yF3ZI3kMtSHK7L8JyJ/0oHUPdKoZ9ZgL9uEZ2cDQJ5yNwFmhVuGjBwP3Zv iioO7Yh3kJ6jOB4DwTHuMClV9I2mdA42KxeHtCb3oPPt59QJ8z8baB+tvoQtJ2EgMCCB j4GmkFLY47NzQcYP46kmhZfOKK+gMxyMB1zLBeeo4PiZcEURpDNSwN2s4h8C8c53+ee3 IE4NmjwzsRvf99zv03FLdrIA75644t2TWUdCohMAn77NXggxeSmsla+6bXLKPhkRDb1R IpArYGhFz78jcQMFBqxPEb5OZoKmyflMEmWahlqrV35cxnp3l49LBpZmV4Smz3ud/wYK z8dQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=j2FHupLD; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g69-v6si20789210plb.297.2018.09.11.09.42.49; Tue, 11 Sep 2018 09:43:05 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=j2FHupLD; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728260AbeIKVmb (ORCPT + 99 others); Tue, 11 Sep 2018 17:42:31 -0400 Received: from mail-it0-f65.google.com ([209.85.214.65]:37667 "EHLO mail-it0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728190AbeIKVma (ORCPT ); Tue, 11 Sep 2018 17:42:30 -0400 Received: by mail-it0-f65.google.com with SMTP id h20-v6so2381640itf.2; Tue, 11 Sep 2018 09:42:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6vX4UW7RaK/6b9Bmv6ojKyw7WtIAXIJrAaOPuMQcqT0=; b=j2FHupLD+T3g4+OtBqVggJRsEkZoBMx8a9N/jfdoDMCmJzEk/oPa4mIQjP2fwbFhF9 K9JlEfPe50Hi5nyW/mXX5JB4AlPvWMHVnNscgRXSjoguT7FqHsNItZi5S4dYrBwAQd0e BrTwnXqa5YRFftHAu2KS/czvErDJ1r2aLTE5aGrSerVAhCWOSCsoWk7kPCTjebOJRMoj kxCD+6u28bRJIZj6oDSiA4a06yPE+pEaOm/2Ln2+/AW5Gu24kZ8GK436c7XEMfSSxvdg 3OQstCn66lGK4VMo9ryGVeXBbnwBbHmhu06jlxM4T9L6YpZCRsPEfAeMm+yjWhufPKo+ bLxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6vX4UW7RaK/6b9Bmv6ojKyw7WtIAXIJrAaOPuMQcqT0=; b=HkM4bQDfyoojoX72xdkkm75nx92BsxYhIXr3Sp+HmbI20i+xaalE8qV80Uz+qBvYT5 WOIjJcer4bzo5zjh/mbIr91MdSCRuWrKZFGkgSNRGxJ2KU9Ki1OwV5hRGBbCrwdrPcbd +gFIGWIV5hhNyVUT1XGvzuIrCbcbf/3uC8A+adRhcSgLU47nTnMIlIxINksM9JItM5x6 vyvFUbTi+6kup54waTkYMgigevhfIiR1n+1MwwtXgnd3GvHV0mP45RXilwhIKkVQ5pL/ P35SHfTw6TCCE2etUp0GuvXv6Ea3mvW4TiKaMMLGHGBQY43A2Fs16kNqegblejSGdeGg ydFQ== X-Gm-Message-State: APzg51DnHOuuOgZ3ISwqvCeOLeakEN+8rK7h/2ZpiTX9GFcagUcm4MYt p5WGxLL9opljES0qZkcd8v7wOSGfG85JLotpOZNw9hHa X-Received: by 2002:a24:7bd4:: with SMTP id q203-v6mr2311550itc.123.1536684142640; Tue, 11 Sep 2018 09:42:22 -0700 (PDT) MIME-Version: 1.0 References: <20180911161527.GA30689@vnote> <20180911162741.GC3902@linux-r8p5> In-Reply-To: <20180911162741.GC3902@linux-r8p5> From: Eugene Korenevsky Date: Tue, 11 Sep 2018 19:42:11 +0300 Message-ID: Subject: Re: [PATCH v2] efi: take size of partition entry from GPT header To: dave@stgolabs.net Cc: linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, ard.biesheuvel@linaro.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > >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)? A disk with correct large-sized GPT entries can be created. UEFI firmwares will work with it, Linux kernel will not. Is it necessary to perform such synthetic test or this issue does not matter anyway? -- Eugene