[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230628170734.2960-1-min15.li@samsung.com>
Date: Wed, 28 Jun 2023 17:07:34 +0000
From: Min Li <min15.li@...sung.com>
To: hch@....de
Cc: axboe@...nel.dk, dlemoal@...nel.org, gregkh@...uxfoundation.org,
linux-block@...r.kernel.org, linux-kernel@...r.kernel.org,
min15.li@...sung.com, stable@...nel.org, willy@...radead.org
Subject: Re: [PATCH v3] block: add check that partition length needs to be
aligned with block size
On Mon, Jun 28, 2023 at 04:48:36PM +0000, Christoph Hellwig wrote:
> They are long long in the UAPI, which is weird but has been that way
> for a long time. So I think we need checks for negative values
> before they are shifted and converted to a sector_t.
Do you mean that we need to check if p.start and p.length are negative?
Thanks for your reply
Min li
Powered by blists - more mailing lists