Received: from list by lists.gnu.org with archive (Exim 4.71) id 1g2cou-0007I2-CF for mharc-grub-devel@gnu.org; Wed, 19 Sep 2018 09:47:08 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46958) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g2cos-0007Hw-KA for grub-devel@gnu.org; Wed, 19 Sep 2018 09:47:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g2coo-0005CT-Cr for grub-devel@gnu.org; Wed, 19 Sep 2018 09:47:06 -0400 Received: from dibed.net-space.pl ([84.10.22.86]:43499) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.71) (envelope-from ) id 1g2con-0005BI-WD for grub-devel@gnu.org; Wed, 19 Sep 2018 09:47:02 -0400 Received: (from localhost user: 'dkiper' uid#4000 fake: STDIN (dkiper@dibed.net-space.pl)) by router-fw-old.i.net-space.pl id S1870011AbeISNq7 (ORCPT ); Wed, 19 Sep 2018 15:46:59 +0200 Date: Wed, 19 Sep 2018 15:46:59 +0200 From: Daniel Kiper To: mchang@suse.com Cc: grub-devel@gnu.org Subject: Re: [PATCH] msdos: Fix overflow in converting partition start and length into 512B blocks Message-ID: <20180919134659.GC7003@router-fw-old.i.net-space.pl> References: <20180913080820.z5mic4tz55a6xtkx@mazu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180913080820.z5mic4tz55a6xtkx@mazu> User-Agent: Mutt/1.3.28i X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 84.10.22.86 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Sep 2018 13:47:07 -0000 On Thu, Sep 13, 2018 at 04:08:20PM +0800, Michael Chang wrote: > When booting from NVME SSD with 4k sector size, it fails with the message. > > error: attempt to read or write outside of partition. > > This patch fixes the problem by fixing overflow in converting partition start > and length into 512B blocks. > > Signed-off-by: Michael Chang Reviewed-by: Daniel Kiper Daniel