mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ian Bridges <icb@fastmail.org>
To: piyus@iiitd.ac.in
Cc: linkinjeon@kernel.org, linux-cifs@vger.kernel.org,
	senozhatsky@chromium.org, tom@talpey.com,
	chenxiaosong@chenxiaosong.com, linux-kernel@vger.kernel.org,
	kapil@presceralabs.ai, Ian Bridges <icb@fastmail.org>
Subject: Re: [PATCH] ksmbd: compare the passkey lengths in ksmbd_compare_user()
Date: Fri,  4 Dec 2026 13:16:17 -0600	[thread overview]
Message-ID: <20261204191617.574966-1-icb@fastmail.org> (raw)
In-Reply-To: <20261204151451.3533017-1-piyus@iiitd.ac.in>

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@fastmail.org>

  reply	other threads:[~2026-12-04 19:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04 15:14 [BUG] ksmbd: slab-out-of-bounds read in ksmbd_compare_user() on session re-authentication Piyus Kedia
2026-12-04 15:14 ` [PATCH] ksmbd: compare the passkey lengths in ksmbd_compare_user() Piyus Kedia
2026-12-04 15:14 ` [BUG] ksmbd: slab-out-of-bounds read in ksmbd_compare_user() on session re-authentication Piyus Kedia
2026-12-04 15:14 ` [PATCH] ksmbd: compare the passkey lengths in ksmbd_compare_user() Piyus Kedia
2026-12-04 19:16   ` Ian Bridges [this message]
2026-12-05  2:48     ` Namjae Jeon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261204191617.574966-1-icb@fastmail.org \
    --to=icb@fastmail.org \
    --cc=chenxiaosong@chenxiaosong.com \
    --cc=kapil@presceralabs.ai \
    --cc=linkinjeon@kernel.org \
    --cc=linux-cifs@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=piyus@iiitd.ac.in \
    --cc=senozhatsky@chromium.org \
    --cc=tom@talpey.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®