smb: server: Make sure that passkey is not leaked on the heap in user_config.c

Use kfree_sensitive() to free the user->passkey (and the struct
ksmbd_login_response in ksmbd_login_user() that contains the same
information) to avoid that this information could leak somewhere
else via the heap.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
This commit is contained in:
Thomas Huth 2026-08-12 21:36:32 +09:00 • committed by Namjae Jeon
commit 2c5a176882