Skip to content

nvmet: zns: reject full zone report when buffer is too small

Xixin Liu linux-nvme 1 version Applied

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/1nvmet: zns: reject full zone report when buffer is too smalldrivers/nvme/target/zns.c+12 -31 reply
1/1nvmet: zns: reject full zone report when buffer is too smalldrivers/nvme/target/zns.c+10 -32 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchChristoph Hellwig
1/1R-b
1/1R-b

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

Read the v1 thread

Cover letter [PATCH nvmet-v1 0/1] nvmet: zns: reject full zone report when buffer is too small

Hi,

A Zone Management Receive partial report (PR bit set) may return fewer zone descriptors than zones matched. A full report (PR bit clear) must fit every matching descriptor in the data buffer.

nvmet already caps Number of Zones on partial reports, but may return success on a full report when the buffer is too small. Reject those commands with INVALID_FIELD.

Tested on nvmet-tcp loopback with io-passthru.

Thanks,
Xixin Liu

---

Xixin Liu (1):
nvmet: zns: reject full zone report when buffer is too small

 drivers/nvme/target/zns.c | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)
Signature · 1 line
2.43.0