Re: [PATCH] block: bio-integrity: fix potential null-ptr-deref in bio_integrity_free

From: yebin
Date: Thu Jun 06 2024 - 07:35:01 EST




On 2024/6/6 14:44, Christoph Hellwig wrote:
What kernel is this on? As of Linux 6.9 we are now always freezing
v4.18
the queue while updating the logical_block_size in the nvme driver,
so there should be no inflight I/O while it is changing.

The root cause of the problem is that there is no concurrency protection between
issuing DIO checks in __ blkdev direct IO simple() and updating logical block sizes ,
resulting in the block layer being able to see DIOs that are not aligned with logical
blocks.