Thread (3 messages) 3 messages, 3 authors, 2023-11-28

Re: [PATCH] nvme-core: check for too small lba shift

From: Jens Axboe <axboe@kernel.dk>
Date: 2023-11-28 19:10:41

On 11/28/23 10:39 AM, Keith Busch wrote:
From: Keith Busch <kbusch@kernel.org>

The block layer doesn't support logical block sizes smaller than 512
bytes. The nvme spec doesn't support that small either, but the driver
isn't checking to make sure the device responded with usable data.
Failing to catch this will result in a kernel bug, either from a
division by zero when stacking, or a zero length bio.
Reviewed-by: Jens Axboe <axboe@kernel.dk>

-- 
Jens Axboe


Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help