]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
nvme-auth: Don't propose NVME_AUTH_DHGROUP_NULL with SC_C
authorAlistair Francis <alistair.francis@wdc.com>
Fri, 20 Mar 2026 00:20:45 +0000 (10:20 +1000)
committerKeith Busch <kbusch@kernel.org>
Fri, 27 Mar 2026 14:35:05 +0000 (07:35 -0700)
commit33eb451044498098babb93b4161e896e0a3e9291
tree211bac34c009070812b4f4df34548b9041bcba08
parent09e8f0f93491c6be867f32d4edc0b16fb5da785e
nvme-auth: Don't propose NVME_AUTH_DHGROUP_NULL with SC_C

Section 8.3.4.5.2 of the NVMe 2.1 base spec states that

"""
The 00h identifier shall not be proposed in an AUTH_Negotiate message
that requests secure channel concatenation (i.e., with the SC_C field
set to a non-zero value).
"""

We need to ensure that we don't set the NVME_AUTH_DHGROUP_NULL idlist if
SC_C is set.

Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Chris Leech <cleech@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Kamaljit Singh <kamaljit.singh@opensource.wdc.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/auth.c