Skip to content

Conversation

@igaw
Copy link
Collaborator

@igaw igaw commented Nov 3, 2025

Commit fe89efa ("tree: do not set dhchap_key to 'none'") and commit a343ed6 ("tree: always set the host key") missed one spot to preserve the existing secret (aka host key). Update nvme_scan_ctrl to only set the secret from sysfs when it's actually there.

Reported-by: Puspak Sahu puspak.sahu@nutanix.com

fixes: #1087

Commit fe89efa ("tree: do not set dhchap_key to 'none'") and
commit a343ed6 ("tree: always set the host key") missed one spot to
preserve the existing secret (aka host key). Update nvme_scan_ctrl to
only set the secret from sysfs when it's actually there.

Reported-by: Puspak Sahu <puspak.sahu@nutanix.com>
Signed-off-by: Daniel Wagner <wagi@kernel.org>
@igaw igaw merged commit fa4969f into linux-nvme:master Nov 4, 2025
12 checks passed
@igaw igaw deleted the fix-scan-dhcpchap branch November 4, 2025 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DHCHAP authentication fails with --device parameter when using config-based keys

1 participant