Re: [PATCH v2] null_blk: fix validation of block size

From: Jens Axboe
Date: Tue Jun 04 2024 - 10:17:43 EST



On Mon, 03 Jun 2024 21:26:45 +0200, Andreas Hindborg wrote:
> Block size should be between 512 and PAGE_SIZE and be a power of 2. The current
> check does not validate this, so update the check.
>
> Without this patch, null_blk would Oops due to a null pointer deref when
> loaded with bs=1536 [1].
>
> Link: https://lore.kernel.org/all/87wmn8mocd.fsf@xxxxxxxxxxxx/
>
> [...]

Applied, thanks!

[1/1] null_blk: fix validation of block size
commit: 237e061865aa5a24c2cd960c4feb2904c8736a75

Best regards,
--
Jens Axboe