Re: [PATCH] ksmbd: compare the passkey lengths in ksmbd_compare_user()
From: Namjae Jeon
Date: Fri Dec 04 2026 - 21:49:02 EST
On Sat, Dec 5, 2026 at 4:16 AM Ian Bridges <icb@xxxxxxxxxxxx> wrote:
>
> 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>
Applied it to #ksmbd-for-next.
Thanks!