[PATCH] nvmet: don't return memory contents beyond valid data when reading ANA log page

Keith Busch kbusch at kernel.org
Wed Nov 4 12:37:15 PST 2026


On Wed, 4 Nov 2026 12:28:33 -0500, Ewan D. Milne wrote:
> The host side does not know how much valid data will be returned by the target
> so it will typically provide a buffer larger than the amount of valid data in
> the ANA log page.  The memory allocation used by the target does not guarantee
> that prior kernel memory contents will not be returned past the end of the valid
> page data.  Fix this to ensure that the SGL is zeroed before copying the data.
> 
> 
> [...]

Applied, thanks!

[1/1] nvmet: don't return memory contents beyond valid data when reading ANA log page
      commit: 29b8758b4700357909f06705a0c48c7a60c556d5

Best regards,
-- 
Keith Busch <kbusch at kernel.org>




More information about the Linux-nvme mailing list