[PATCH nvmet-v1 0/1] nvmet: zns: reject full zone report when buffer is too small
Xixin Liu <[email protected]>
| Newsgroups | org.infradead.lists.linux-nvme |
|---|---|
| Message-ID | <[email protected]> |
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