Re: [PATCH] nvme-auth: Include SC_C in RVAL controller hash

From: Alistair Francis

Date: Thu Mar 19 2026 - 00:23:02 EST


On Thu, Mar 19, 2026 at 2:40 AM Chris Leech <cleech@xxxxxxxxxx> wrote:
>
> On Tue, Mar 17, 2026 at 01:13:30PM +1000, alistair23@xxxxxxxxx wrote:
> > From: Alistair Francis <alistair.francis@xxxxxxx>
> >
> > 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.
>
> Am I correct in reading this, the current kernel implementation is out
> of spec when doing secure channel concatenation (SC_C != 0) with
> bidirectional authentication (R1 takes SC_C into account, but not R2)?

Correct, SC_C isn't included in the RVAL. So if SC_C is 0 it works,
but if it's 1 it doesn't work

Alistair

>
> - Chris
>