[PATCH v3] nvmet-auth: update sc_c in target host hash calculation
Shinichiro Kawasaki
shinichiro.kawasaki at wdc.com
Sun Nov 16 15:53:59 PST 2025
On Nov 07, 2025 / 09:17, alistair23 at gmail.com wrote:
> From: Alistair Francis <alistair.francis at wdc.com>
>
> Commit 7e091add9c43 "nvme-auth: update sc_c in host response" added
> the sc_c variable to the dhchap queue context structure which is
> appropriately set during negotiate and then used in the host response.
>
> This breaks secure concat connections with a Linux target as the target
> code wasn't updated at the same time. This patch fixes this by adding a
> new sc_c variable to the host hash calculations.
>
> Fixes: 7e091add9c43 ("nvme-auth: update sc_c in host response")
> Signed-off-by: Alistair Francis <alistair.francis at wdc.com>
I confirmed that this patch avoids the blktests nvme/063 failure symptom
that I reported [*]. Thanks for the fix.
Tested-by: Shin'ichiro Kawasaki <shinichiro.kawasaki at wdc.com>
[*] https://lore.kernel.org/linux-nvme/6xoxbezgcnv4bfaevi3pdpesfelia3epxiddk47azho7y5mnhr@ykmlqgnrbl3w/
More information about the Linux-nvme
mailing list