Linux-NVME Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH nvmet-v1 0/1] nvmet: zns: reject full zone report when buffer is too small
@ 2026-07-09  6:51 Xixin Liu
  2026-07-09  6:51 ` [PATCH nvmet-v1 1/1] " Xixin Liu
  0 siblings, 1 reply; 2+ messages in thread
From: Xixin Liu @ 2026-07-09  6:51 UTC (permalink / raw)
  To: linux-nvme; +Cc: hch, sagi, kch, liuxixin

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(-)

-- 
2.43.0



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-07-09  7:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-09  6:51 [PATCH nvmet-v1 0/1] nvmet: zns: reject full zone report when buffer is too small Xixin Liu
2026-07-09  6:51 ` [PATCH nvmet-v1 1/1] " Xixin Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox