Skip to content

nvme: validate FDP configuration descriptor sizes

liuxixin linux-nvme lkml 1 version Applied

Status from this message: Thanks, applied to nvme-7.2.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v5 Latest1 patch 1 replyApplied

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/1nvme: validate FDP configuration descriptor sizesdrivers/nvme/host/core.c+6 -41 reply

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by.

PatchNitesh ShettyChristoph Hellwig
1/1R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH v5 0/1] nvme: validate FDP configuration descriptor sizes

Hi Keith,

Thanks for applying v4 1/2 to nvme-7.2.

v5 is only the descriptor-size validation patch, with your feedback on v4 2/2: remove the redundant "log >= end" check inside the walk loop now that dsze is validated before advancing.

## Test plan
- Build: make M=drivers/nvme -j$(nproc) (linux-next)
- fdp-lab: dsze==0 / walk past end -> "FDP invalid config descriptor at index %d" (see fdp-lab/TEST-FDP-BOUNDS.md)

Thanks,
liuxixin