[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <171751063982.375344.56104601455563821.b4-ty@kernel.dk>
Date: Tue, 04 Jun 2024 08:17:19 -0600
From: Jens Axboe <axboe@...nel.dk>
To: Andreas Hindborg <nmi@...aspace.dk>
Cc: Andreas Hindborg <a.hindborg@...sung.com>,
Keith Busch <kbusch@...nel.org>, Bart Van Assche <bvanassche@....org>,
John Garry <john.g.garry@...cle.com>, Damien Le Moal <dlemoal@...nel.org>,
linux-block@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] null_blk: fix validation of block size
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@metaspace.dk/
>
> [...]
Applied, thanks!
[1/1] null_blk: fix validation of block size
commit: 237e061865aa5a24c2cd960c4feb2904c8736a75
Best regards,
--
Jens Axboe
Powered by blists - more mailing lists