Skip to content

nvmet: clean up DH group state on initialization failure - #35

Open
ghost wants to merge 1 commit into
for-next_basefrom
series/1207007=>for-next
Open

ghost wants to merge 1 commit into
for-next_basefrom
series/1207007=>for-next

Conversation

@ghost

@ghost ghost commented Nov 10, 2026

Copy link
Copy Markdown

Pull request for series with
subject: nvmet: clean up DH group state on initialization failure
version: 1
url: https://patchwork.kernel.org/series/1207007/

@ghost

ghost commented Nov 10, 2026

Copy link
Copy Markdown
Author

Upstream branch: de52810
series: https://patchwork.kernel.org/series/1207007/
version: 1

@ghost

ghost commented Nov 10, 2026

Copy link
Copy Markdown
Author

Upstream branch: de52810
series: https://patchwork.kernel.org/series/1207060/
version: 2

@ghost ghost added V2 and removed V1 labels Nov 10, 2026
@ghost
ghost force-pushed the series/1207007=>for-next branch from 83437ab to d48ccb3 Compare November 10, 2026 09:39
@ghost

ghost commented Nov 10, 2026

Copy link
Copy Markdown
Author

Upstream branch: de52810
series: https://patchwork.kernel.org/series/1207083/
version: 3

@ghost ghost added V3 and removed V2 labels Nov 10, 2026
@ghost
ghost force-pushed the series/1207007=>for-next branch from d48ccb3 to 92e3554 Compare November 10, 2026 10:12
@ghost
ghost force-pushed the for-next_base branch from 8c33852 to 18eb5ad Compare November 10, 2026 10:19
@ghost

ghost commented Nov 10, 2026

Copy link
Copy Markdown
Author

Upstream branch: de52810
series: https://patchwork.kernel.org/series/1207083/
version: 3

@ghost
ghost force-pushed the series/1207007=>for-next branch from 92e3554 to d93129e Compare November 10, 2026 10:21
@ghost

ghost commented Nov 10, 2026

Copy link
Copy Markdown
Author

Upstream branch: de52810
series: https://patchwork.kernel.org/series/1207188/
version: 4

@ghost ghost added V4 and removed V3 labels Nov 10, 2026
@ghost
ghost force-pushed the series/1207007=>for-next branch from d93129e to 6136e3e Compare November 10, 2026 11:47
@ghost

ghost commented Nov 10, 2026

Copy link
Copy Markdown
Author

Upstream branch: de52810
series: https://patchwork.kernel.org/series/1207188/
version: 4

nvmet_setup_dhgroup() leaves the DH transform and group ID
initialized when private-key generation, public-key allocation,
or public-key generation fails.

A subsequent invocation with the same DH group incorrectly
returns success because the existing transform and group ID
are treated as proof of successful initialization.

Release the transform and reset the group state on initialization
failures so that subsequent attempts can properly retry setup.

Fixes: 7a277c3 ("nvmet-auth: Diffie-Hellman key exchange support")
Signed-off-by: Sreeraj S Kurup <sreekuttan2156239@gmail.com>
Reviewed-by: Hannes Reinecke <hare@kernel.org>
@ghost
ghost force-pushed the series/1207007=>for-next branch from 6136e3e to 5bfc57a Compare November 10, 2026 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant