Re: [PATCH] ksmbd: sign the last response of a compound that ends early

From: Namjae Jeon

Date: Thu Nov 12 2026 - 19:17:21 EST


On Fri, Nov 13, 2026 at 5:56 AM Ian Bridges <icb@xxxxxxxxxxxx> wrote:
>
> I tested this with the ksmbd code from ksmbd-for-next. I sent a signed
> compound of two ECHOs whose second NextCommand covers only that
> command, so the compound ends early. Before the patch, the first
> response carried a signature that did not verify and the second was
> not signed. With the patch, both responses are signed and verify. A
> normal signed compound gives the same result as before, and the
> connection keeps working in both cases. smbtorture gives the same
> results as without the patch, and KASAN reports nothing.
>
> Reviewed-by: Ian Bridges <icb@xxxxxxxxxxxx>
> Tested-by: Ian Bridges <icb@xxxxxxxxxxxx>
Applied it to #ksmbd-for-next.
Thanks!