Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1107041imm; Thu, 13 Sep 2018 12:48:46 -0700 (PDT) X-Google-Smtp-Source: ANB0VdangDc8vAionA9GOX+fzhPLOKdzDUkGQAppoy7KZpbqaPmphPNznU05cWupK9PF5eaLnI3j X-Received: by 2002:a17:902:7c07:: with SMTP id x7-v6mr8643894pll.113.1536868126389; Thu, 13 Sep 2018 12:48:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536868126; cv=none; d=google.com; s=arc-20160816; b=EppLON2BFM9tQ7+oBnwWjjaPfqBzBOPzAhhFzQ0yZ6EHq28kvXWIijdBwDbIA7j2ph TKpIBLu/K+5h3q1gb4iAT3kBeDIOFi67TdDz/UJFdGFtH5MT1l2FlYpNGAb9M5J2vFQB vkJaNaQkcimRQQhNdX8g/jq621JftQttUoPCRZPxMIW9Ch+Q7IGC6/Ow2YGi7CWanvzJ 2GUZS42sAIsEhQwDqtwak7sdPoItJeZ/en1ImbRehtYo60qKaHGwT+o6VtglCYT2ESGr 1GnUsgNXWVZxNp5Dy60VdMnwn/NV04nmX//uHJvwYF8OJornFo1qtNPL6CtpliVopV8V gedQ== 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=EpSqoHloRitp382xCPsaYDoJMi4lr5stUxXxiJnsPlA=; b=m4efptF0Il7PP3eh+IPrFR1SKtr3RWV7qa8UxL+nxBHa8nvk5kHZ/Cz5VDbZPdWVfr QcJZR81GUlrgnjHhQutqJTPK5aJwmZ1369GdvIMsLw2rPYOXQOZdKYi5ODoQQt3UBAO2 WfH7hvj9KjQ4LBzQMWiDcSWc3ieyZtZgMUT6ZAH0CYpBxKFXJdzTw6uD62J9ggdPVMnU 7FhIJWQdd8rmGUZrSaPaosYOQAoGGdV0KK/0XdbLD0IPv/8rKIUWvKAI5MvcR9Tr2Vhl U3CqR1xd+iOYtgXWqIx1ieduId6IVno2Lml6NbLOPOceoYSr2M8yBEmy3hIghc1x4nKi sH3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WPNGaT0B; 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 j13-v6si4858047pfj.230.2018.09.13.12.48.30; Thu, 13 Sep 2018 12:48:46 -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=WPNGaT0B; 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 S1728154AbeINA7M (ORCPT + 99 others); Thu, 13 Sep 2018 20:59:12 -0400 Received: from mail-it0-f47.google.com ([209.85.214.47]:39740 "EHLO mail-it0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726839AbeINA7M (ORCPT ); Thu, 13 Sep 2018 20:59:12 -0400 Received: by mail-it0-f47.google.com with SMTP id h1-v6so9301619itj.4; Thu, 13 Sep 2018 12:48:14 -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=EpSqoHloRitp382xCPsaYDoJMi4lr5stUxXxiJnsPlA=; b=WPNGaT0B1C2fhOUJv+s1H+H0JTT2WPX+3G8rhSvnxrGyoKUpif1+UcO8sD7qzYbvhA MgFKL9bNM3krcJDZsMUgbKl53x6Sisb+hn2b2Ge6B7mtoETId9nIFLuC34qQucOcPWji uss0q8sWrT7ns6ZvLP55+SnnVZC2bIAp2BlFhlMsjlfnh0OkAQqOMpVyUXgWKTgfQl75 tDjs+TxLyVtj5za4esFVulqmMG2EtZBxdxI+cVx5tqr46MNKT2pDBGBXes3AlHpzjJ4D CpaBRDvcU57ETt6SYTVF2cZNGIQoBZKgTWUZWx/6ETC7/xIBcECHL1YxloV33WIroFge xjFg== 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=EpSqoHloRitp382xCPsaYDoJMi4lr5stUxXxiJnsPlA=; b=V0JbOoUDxLRDTu337hx+Gyg4BPm6oxxWSAVRAsaiZu6DbMRXu1oi4cosPCEIGqLCXV X6ItMTTbRWDPv3IIJ90dxmUhNUPMLxuKU8+IfktvEzmAnKO8ktA9VhNqSC+GiLxI2XUb wCfmcx34IwK+UrkeRyrzY7f2aQjuKWXqcx6pwp9d3qQqYv7lVQnF9IsoXOCq2OSm2o7B CSZHL9fIlwtnKWtYtdEtNl2/J8PSYFi38YcbjBh9rWCuBh/0MnYWgNCZ6Ac7Hgse9aj0 nu1lrV9mQpg6gxcmkAxS39aTL9d+UhXgR+Fx7lgOGT3xok5xoGyRdmVfSbS8qspMClIY YFmQ== X-Gm-Message-State: APzg51AxNzNuM/Kuc31lQ0qkFFZdnYkd7uowNlNWAB3aHKVV0iqOWBDU +P54ewuexBngymgU+cVXNoW9Y/yTXcI/xdi3AoQ= X-Received: by 2002:a24:7bd4:: with SMTP id q203-v6mr7626953itc.123.1536868094236; Thu, 13 Sep 2018 12:48:14 -0700 (PDT) MIME-Version: 1.0 References: <20180911161527.GA30689@vnote> <20180912083844.iegei2kobcz4b7ag@ws.net.home> <6d349d22d37041c1a2942d8ed4c76b69@AcuMS.aculab.com> In-Reply-To: <6d349d22d37041c1a2942d8ed4c76b69@AcuMS.aculab.com> From: Eugene Korenevsky Date: Thu, 13 Sep 2018 22:48:03 +0300 Message-ID: Subject: Re: [PATCH v2] efi: take size of partition entry from GPT header To: David.Laight@aculab.com Cc: kzak@redhat.com, Davidlohr Bueso , linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, Ard Biesheuvel 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 > I suspect you also need a sanity check that the value isn't too small > or stupidly large. What would be the criterion for too large entries? -- Eugene