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

Guixin Liu kanie at linux.alibaba.com
Wed Nov 25 03:28:28 PST 2026



在 2026/11/25 17:43, Nilay Shroff 写道:
> 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.
True, I will do the full fix in v2, thanks.

Best Regards,
Guixin Liu
>
> Thanks,
> --Nilay




More information about the Linux-nvme mailing list