[PATCH v2] nvmet: reject invalid write-protect feature values
Keith Busch
kbusch at kernel.org
Mon Nov 16 07:16:49 PST 2026
On Mon, 9 Nov 2026 14:24:28 +0000, Sreeraj S Kurup wrote:
> The Set Features handler for namespace write protection currently
> accepts unsupported values. The default case in the write-protect
> switch leaves the status unchanged, causing the command to return
> success even though no valid setting was applied.
>
> Return NVME_SC_INVALID_FIELD | NVME_STATUS_DNR for unsupported
> values. This also prevents issuing a namespace-change notification
> for an invalid request.
>
> [...]
Thanks, applied to nvme-7.4.
[1/1] nvmet: reject invalid write-protect feature values
commit: 21f0f264962358f3af6e08805b21d32abdd0e35f
--
Keith Busch <kbusch at kernel.org>
More information about the Linux-nvme
mailing list