]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
nvme-auth: Include SC_C in RVAL controller hash
authorAlistair Francis <alistair.francis@wdc.com>
Fri, 17 Apr 2026 00:50:48 +0000 (10:50 +1000)
committerKeith Busch <kbusch@kernel.org>
Wed, 22 Apr 2026 17:07:30 +0000 (10:07 -0700)
commit5d10069e1a1691a0d8642e1fa65f4c1869210299
tree3af1c5e596e0dcec767288809ec3e07a5c4b5269
parent26bb12b9caafa2e62d638104bf2732f610cdbb0b
nvme-auth: Include SC_C in RVAL controller hash

Section 8.3.4.5.5 of the NVMe Base Specification 2.1 describes what is
included in the Response Value (RVAL) hash and SC_C should be included.
Currently we are hardcoding 0 instead of using the correct SC_C value.

Update the host and target code to use the SC_C when calculating the
RVAL instead of using 0.

Fixes: e88a7595b57f2 ("nvme-tcp: request secure channel concatenation")
Reviewed-by: Chris Leech <cleech@redhat.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/auth.c
drivers/nvme/target/auth.c