diff options
author | Vitaliy Shevtsov <[email protected]> | 2024-09-16 22:41:37 +0500 |
---|---|---|
committer | Keith Busch <[email protected]> | 2024-10-30 07:19:18 -0700 |
commit | d2f551b1f72b4c508ab9298419f6feadc3b5d791 (patch) | |
tree | 6ac40fc95e080317e780239e9d4937595efea059 /scripts/gdb/linux/timerlist.py | |
parent | 42ab37eaad17aee458489c553a367621ee04e0bc (diff) |
nvmet-auth: assign dh_key to NULL after kfree_sensitive
ctrl->dh_key might be used across multiple calls to nvmet_setup_dhgroup()
for the same controller. So it's better to nullify it after release on
error path in order to avoid double free later in nvmet_destroy_auth().
Found by Linux Verification Center (linuxtesting.org) with Svace.
Fixes: 7a277c37d352 ("nvmet-auth: Diffie-Hellman key exchange support")
Cc: [email protected]
Signed-off-by: Vitaliy Shevtsov <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: Hannes Reinecke <[email protected]>
Signed-off-by: Keith Busch <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/timerlist.py')
0 files changed, 0 insertions, 0 deletions