Re: [PATCH] ublk: enforce ublks_max only for unprivileged devices
From: Jens Axboe
Date: Tue Mar 04 2025 - 11:21:12 EST
On Fri, 28 Feb 2025 21:31:48 -0700, Uday Shankar wrote:
> Commit 403ebc877832 ("ublk_drv: add module parameter of ublks_max for
> limiting max allowed ublk dev"), claimed ublks_max was added to prevent
> a DoS situation with an untrusted user creating too many ublk devices.
> If that's the case, ublks_max should only restrict the number of
> unprivileged ublk devices in the system. Enforce the limit only for
> unprivileged ublk devices, and rename variables accordingly. Leave the
> external-facing parameter name unchanged, since changing it may break
> systems which use it (but still update its documentation to reflect its
> new meaning).
>
> [...]
Applied, thanks!
[1/1] ublk: enforce ublks_max only for unprivileged devices
commit: 80bdfbb3545b6f16680a72c825063d08a6b44c7a
Best regards,
--
Jens Axboe