[PATCH v2] nvmet: accept ANA group ID NVMET_MAX_ANAGRPS in configfs
Keith Busch
kbusch at kernel.org
Fri Nov 6 10:43:07 PST 2026
On Fri, 6 Nov 2026 08:43:13 -0500, Andrew Stellman wrote:
> nvmet_ns_ana_grpid_store() accepts an ANA group ID in the range
> 1..NVMET_MAX_ANAGRPS, and nvmet_ana_groups_make_group() accepts
> 2..NVMET_MAX_ANAGRPS (group 1 is the default group). Both then pass the
> ID through array_index_nospec() with NVMET_MAX_ANAGRPS as the size.
> That helper treats the size as an exclusive upper bound, so the maximum
> valid ID, 128, is rewritten to 0.
>
> [...]
Thanks, applied to nvme-7.4.
[1/1] nvmet: accept ANA group ID NVMET_MAX_ANAGRPS in configfs
commit: f3c20e42ff5628b93ed0084154cf62082a2157b2
--
Keith Busch <kbusch at kernel.org>
More information about the Linux-nvme
mailing list