[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <867dcc0a-c807-2851-e2c4-750a7646a97f@huawei.com>
Date: Tue, 30 May 2023 21:42:06 +0800
From: zhongjinghua <zhongjinghua@...wei.com>
To: Eric Biggers <ebiggers@...nel.org>
CC: <axboe@...nel.dk>, <linux-block@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, <yi.zhang@...wei.com>,
<yukuai3@...wei.com>
Subject: Re: [PATCH -next v2] block: Fix the partition start may overflow in
add_partition()
在 2023/5/26 13:35, Eric Biggers 写道:
> On Thu, May 25, 2023 at 03:20:41PM +0800, Zhong Jinghua wrote:
>> + if (p.start < 0 || p.length <= 0 || p.start + p.length < 0)
>> + return -EINVAL;
> Were zero-length partitions allowed before?
Before this patch, the io to the zero-length partition failed, I think
it is meaningless, and it was fixed by the way
> - Eric
Powered by blists - more mailing lists