[PATCH v3] nvmet-auth: update sc_c in target host hash calculation

Martin George martinus.gpy at gmail.com
Fri Nov 7 07:01:34 PST 2025


On Fri, 2025-11-07 at 09:17 +1000, 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>
> ---
>  drivers/nvme/target/auth.c             | 4 ++--
>  drivers/nvme/target/fabrics-cmd-auth.c | 1 +
>  drivers/nvme/target/nvmet.h            | 1 +
>  3 files changed, 4 insertions(+), 2 deletions(-)

Reviewed-by: Martin George <marting at netapp.com>

-Martin



More information about the Linux-nvme mailing list