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

From: Ian Bridges

Date: Thu Nov 12 2026 - 20:12:33 EST


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>