[PATCH] nvme-multipath: protect ana_log_buf teardown with ana_lock

Nilay Shroff nilay at linux.ibm.com
Wed Nov 25 01:43:35 PST 2026


On 11/25/26 12:53 PM, Christoph Hellwig wrote:
> On Wed, Nov 25, 2026 at 02:01:53PM +0800, Guixin Liu wrote:
>> Reported by Sashiko AI review as a pre-existing issue (not introduced by
>> the ANATT timer fix). Confirmed by source analysis and reproduced in a
>> KASAN guest with nvmet-tcp loopback and ANA enabled.
> 
> Sashiko thinks this is still not enough, and it's probably right.
> 
Yes and I think we should add __guarded_by(&ctrl->ana_lock) context annotation
around ctrl->ana_log_buf and ctrl->ana_log_size.

Thanks,
--Nilay



More information about the Linux-nvme mailing list