[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <168614594988.134969.5912378237473757521.b4-ty@kernel.dk>
Date: Wed, 07 Jun 2023 07:52:29 -0600
From: Jens Axboe <axboe@...nel.dk>
To: josef@...icpanda.com, Zhong Jinghua <zhongjinghua@...weicloud.com>
Cc: linux-block@...r.kernel.org, nbd@...er.debian.org,
linux-kernel@...r.kernel.org, zhongjinghua@...wei.com,
yi.zhang@...wei.com, yukuai3@...wei.com, yangerkun@...wei.com
Subject: Re: [PATCH -next] nbd: Add the maximum limit of allocated index in
nbd_dev_add
On Mon, 05 Jun 2023 20:21:59 +0800, Zhong Jinghua wrote:
> If the index allocated by idr_alloc greater than MINORMASK >> part_shift,
> the device number will overflow, resulting in failure to create a block
> device.
>
> Fix it by imiting the size of the max allocation.
>
>
> [...]
Applied, thanks!
[1/1] nbd: Add the maximum limit of allocated index in nbd_dev_add
commit: f12bc113ce904777fd6ca003b473b427782b3dde
Best regards,
--
Jens Axboe
Powered by blists - more mailing lists