Re: nvme crash - Re: linux-next: Tree for Aug 13

From: John Garry
Date: Fri Aug 14 2020 - 09:40:12 EST


On 14/08/2020 14:07, John Garry wrote:

BTW, as for the DMA/sg scatterlist code, it so happens in this case that we try the dma alloc for size=0 in nvme_alloc_queue() - I know an allocation for size=0 makes no sense, but couldn't we bit a bit more robust?

it's giving ZERO_SIZE_PTR, which we deference, so ignore me...