Re: [PATCH] ksmbd: compare the passkey lengths in ksmbd_compare_user()
From: Ian Bridges
Date: Fri Dec 04 2026 - 14:16:32 EST
The size check makes the compare safe for every caller, including
ksmbd_krb5_authenticate(). destroy_previous_session() already checks
the passkey sizes the same way before its own memcmp(). A later
cleanup could have it call ksmbd_compare_user() instead.
Reviewed-by: Ian Bridges <icb@xxxxxxxxxxxx>