[PATCH] nvme-multipath: avoid size_t underflow in ANA log bounds checks
Keith Busch
kbusch at kernel.org
Thu Oct 22 08:44:03 PDT 2026
On Thu, Oct 22, 2026 at 05:33:23PM +0530, Martin George wrote:
> The ANA log bounds checks subtract the required size from ana_log_size
> in unsigned arithmetic, which can wrap when a rogue or buggy target
> reports an oversized nnsids. Compare as "ana_log_size - offset < required"
> instead, so the subtraction can't underflow and bypass the check.
Looks good, applied to nvme-7.4.
More information about the Linux-nvme
mailing list