summaryrefslogtreecommitdiff
path: root/tools/perf/scripts
diff options
context:
space:
mode:
authorSreeraj S Kurup <sreekuttan2156239@gmail.com>2026-11-10 08:15:59 +0000
committerKeith Busch <kbusch@kernel.org>2026-11-16 07:15:02 -0800
commit706076f51eb78ebb4cc7fb06751bf09042fb515c (patch)
treebc55fc5b13b1f99d2f521cd1865700a1b3165bbf /tools/perf/scripts
parent21f0f264962358f3af6e08805b21d32abdd0e35f (diff)
nvmet: synchronize DH-CHAP secret removal
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: bb2df18958b4 ("nvmet-auth: allow to clear DH-HMAC-CHAP keys") Signed-off-by: Sreeraj S Kurup <sreekuttan2156239@gmail.com> Reviewed-by: Hannes Reinecke <hare@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions