Re: [PATCH -next] nbd: Add the maximum limit of allocated index in nbd_dev_add
From: Jens Axboe
Date: Wed Jun 07 2023 - 09:52:40 EST
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