* Re: [PATCH v3] nvmet-auth: update sc_c in target host hash calculation
2025-11-06 23:17 [PATCH v3] nvmet-auth: update sc_c in target host hash calculation alistair23
@ 2025-11-07 8:30 ` Hannes Reinecke
2025-11-07 11:42 ` Christoph Hellwig
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Hannes Reinecke @ 2025-11-07 8:30 UTC (permalink / raw)
To: alistair23, kbusch, axboe, hch, sagi, kch, linux-nvme
Cc: linux-kernel, Alistair Francis
On 11/7/25 00:17, alistair23@gmail.com wrote:
> From: Alistair Francis <alistair.francis@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@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: Hannes Reinecke <hare@suse.de>
Cheers,
Hannes
--
Dr. Hannes Reinecke Kernel Storage Architect
hare@suse.de +49 911 74053 688
SUSE Software Solutions GmbH, Frankenstr. 146, 90461 Nürnberg
HRB 36809 (AG Nürnberg), GF: I. Totev, A. McDonald, W. Knoblich
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [PATCH v3] nvmet-auth: update sc_c in target host hash calculation
2025-11-06 23:17 [PATCH v3] nvmet-auth: update sc_c in target host hash calculation alistair23
2025-11-07 8:30 ` Hannes Reinecke
@ 2025-11-07 11:42 ` Christoph Hellwig
2025-11-07 15:01 ` Martin George
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Christoph Hellwig @ 2025-11-07 11:42 UTC (permalink / raw)
To: alistair23
Cc: hare, kbusch, axboe, hch, sagi, kch, linux-nvme, linux-kernel,
Alistair Francis
Looks good:
Reviewed-by: Christoph Hellwig <hch@lst.de>
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [PATCH v3] nvmet-auth: update sc_c in target host hash calculation
2025-11-06 23:17 [PATCH v3] nvmet-auth: update sc_c in target host hash calculation alistair23
2025-11-07 8:30 ` Hannes Reinecke
2025-11-07 11:42 ` Christoph Hellwig
@ 2025-11-07 15:01 ` Martin George
2025-11-16 23:15 ` Alistair Francis
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Martin George @ 2025-11-07 15:01 UTC (permalink / raw)
To: alistair23, hare, kbusch, axboe, hch, sagi, kch, linux-nvme
Cc: linux-kernel, Alistair Francis
On Fri, 2025-11-07 at 09:17 +1000, alistair23@gmail.com wrote:
> From: Alistair Francis <alistair.francis@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@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@netapp.com>
-Martin
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [PATCH v3] nvmet-auth: update sc_c in target host hash calculation
2025-11-06 23:17 [PATCH v3] nvmet-auth: update sc_c in target host hash calculation alistair23
` (2 preceding siblings ...)
2025-11-07 15:01 ` Martin George
@ 2025-11-16 23:15 ` Alistair Francis
2025-11-16 23:53 ` Shinichiro Kawasaki
2025-11-17 16:06 ` Keith Busch
5 siblings, 0 replies; 7+ messages in thread
From: Alistair Francis @ 2025-11-16 23:15 UTC (permalink / raw)
To: hare, kbusch, axboe, hch, sagi, kch, linux-nvme
Cc: linux-kernel, Alistair Francis
On Fri, Nov 7, 2025 at 9:17 AM <alistair23@gmail.com> wrote:
>
> From: Alistair Francis <alistair.francis@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@wdc.com>
Gentle reminder that this is needed in 6.18
Alistair
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [PATCH v3] nvmet-auth: update sc_c in target host hash calculation
2025-11-06 23:17 [PATCH v3] nvmet-auth: update sc_c in target host hash calculation alistair23
` (3 preceding siblings ...)
2025-11-16 23:15 ` Alistair Francis
@ 2025-11-16 23:53 ` Shinichiro Kawasaki
2025-11-17 16:06 ` Keith Busch
5 siblings, 0 replies; 7+ messages in thread
From: Shinichiro Kawasaki @ 2025-11-16 23:53 UTC (permalink / raw)
To: alistair23@gmail.com
Cc: hare@suse.de, kbusch@kernel.org, axboe@kernel.dk, hch,
sagi@grimberg.me, kch@nvidia.com, linux-nvme@lists.infradead.org,
linux-kernel@vger.kernel.org, Alistair Francis
On Nov 07, 2025 / 09:17, alistair23@gmail.com wrote:
> From: Alistair Francis <alistair.francis@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@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@wdc.com>
[*] https://lore.kernel.org/linux-nvme/6xoxbezgcnv4bfaevi3pdpesfelia3epxiddk47azho7y5mnhr@ykmlqgnrbl3w/
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [PATCH v3] nvmet-auth: update sc_c in target host hash calculation
2025-11-06 23:17 [PATCH v3] nvmet-auth: update sc_c in target host hash calculation alistair23
` (4 preceding siblings ...)
2025-11-16 23:53 ` Shinichiro Kawasaki
@ 2025-11-17 16:06 ` Keith Busch
5 siblings, 0 replies; 7+ messages in thread
From: Keith Busch @ 2025-11-17 16:06 UTC (permalink / raw)
To: alistair23
Cc: hare, axboe, hch, sagi, kch, linux-nvme, linux-kernel,
Alistair Francis
On Fri, Nov 07, 2025 at 09:17:11AM +1000, alistair23@gmail.com wrote:
> From: Alistair Francis <alistair.francis@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.
Thanks, applied to nvme-6.18.
^ permalink raw reply [flat|nested] 7+ messages in thread