[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230526053557.GA875@sol.localdomain>
Date: Thu, 25 May 2023 22:35:57 -0700
From: Eric Biggers <ebiggers@...nel.org>
To: Zhong Jinghua <zhongjinghua@...wei.com>
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()
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?
- Eric
Powered by blists - more mailing lists