Skip to content

nvmet: synchronize DH-CHAP secret removal - #34

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

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

Conversation

@ghost

@ghost ghost commented Nov 10, 2026

Copy link
Copy Markdown

Pull request for series with
subject: nvmet: synchronize DH-CHAP secret removal
version: 1
url: https://patchwork.kernel.org/series/1206958/

@ghost

ghost commented Nov 10, 2026

Copy link
Copy Markdown
Author

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

@ghost

ghost commented Nov 10, 2026

Copy link
Copy Markdown
Author

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

@ghost ghost added V2 and removed V1 labels Nov 10, 2026
@ghost
ghost force-pushed the series/1206958=>for-next branch from 5d5f40b to dd4b266 Compare November 10, 2026 08:22
@ghost
ghost force-pushed the for-next_base branch from 8c33852 to 18eb5ad Compare November 10, 2026 10:19
The empty-secret path in nvmet_auth_set_key() modifies and frees
host authentication secrets without holding nvmet_config_sem.

nvmet_setup_auth() accesses these fields under the read lock,
allowing concurrent secret removal to cause a use-after-free.

Acquire nvmet_config_sem for writing while clearing the secrets
to synchronize with authentication setup.

Fixes: bb2df18 ("nvmet-auth: allow to clear DH-HMAC-CHAP keys")
Signed-off-by: Sreeraj S Kurup <sreekuttan2156239@gmail.com>
@ghost

ghost commented Nov 10, 2026

Copy link
Copy Markdown
Author

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

@ghost
ghost force-pushed the series/1206958=>for-next branch from dd4b266 to 9d9703e Compare November 10, 2026 10:23
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