diff options
author | Zilin Guan <zilin@seu.edu.cn> | 2025-05-23 11:47:17 +0000 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-05-27 17:31:42 -0700 |
commit | c8ef20fe7274c5766a317f9193b70bed717b6b3d (patch) | |
tree | b2fc7802321362651d7ce3f06b7f74f4c354886b /scripts/lib/kdoc/kdoc_re.py | |
parent | 09d7ff0694ea133c50ad905fd6e548c13f8af458 (diff) |
tipc: use kfree_sensitive() for aead cleanup
The tipc_aead_free() function currently uses kfree() to release the aead
structure. However, this structure contains sensitive information, such
as key's SALT value, which should be securely erased from memory to
prevent potential leakage.
To enhance security, replace kfree() with kfree_sensitive() when freeing
the aead structure. This change ensures that sensitive data is explicitly
cleared before memory deallocation, aligning with the approach used in
tipc_aead_init() and adhering to best practices for handling confidential
information.
Signed-off-by: Zilin Guan <zilin@seu.edu.cn>
Reviewed-by: Tung Nguyen <tung.quang.nguyen@est.tech>
Link: https://patch.msgid.link/20250523114717.4021518-1-zilin@seu.edu.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_re.py')
0 files changed, 0 insertions, 0 deletions