From: zhongjinghua <zhongjinghua@huawei.com>
To: Eric Biggers <ebiggers@kernel.org>
Cc: <axboe@kernel.dk>, <linux-block@vger.kernel.org>,
<linux-kernel@vger.kernel.org>, <yi.zhang@huawei.com>,
<yukuai3@huawei.com>
Subject: Re: [PATCH -next v2] block: Fix the partition start may overflow in add_partition()
Date: Tue, 30 May 2023 21:42:06 +0800 [thread overview]
Message-ID: <867dcc0a-c807-2851-e2c4-750a7646a97f@huawei.com> (raw)
In-Reply-To: <20230526053557.GA875@sol.localdomain>
在 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
prev parent reply other threads:[~2023-05-30 13:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-25 7:20 [PATCH -next v2] block: Fix the partition start may overflow in add_partition() Zhong Jinghua
2023-05-26 5:35 ` Eric Biggers
2023-05-30 13:42 ` zhongjinghua [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=867dcc0a-c807-2851-e2c4-750a7646a97f@huawei.com \
--to=zhongjinghua@huawei.com \
--cc=axboe@kernel.dk \
--cc=ebiggers@kernel.org \
--cc=linux-block@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=yi.zhang@huawei.com \
--cc=yukuai3@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox