Re: [PATCH -next v2] block: Fix the partition start may overflow in add_partition()
From: Eric Biggers
Date: Fri May 26 2023 - 01:36:08 EST
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