nvmet: zns: reject full zone report when buffer is too small
Status from this message: Thanks, applied to nvme-7.3.
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/1 | nvmet: zns: reject full zone report when buffer is too smalldrivers/ | +12 | 1 reply | |
| 1/1 | nvmet: zns: reject full zone report when buffer is too smalldrivers/ | +10 | 2 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Christoph Hellwig |
|---|---|
| 1/1 | R-b |
| 1/1 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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