Re: [PATCH AUTOSEL 6.18-5.10] sctp: auth: propagate HMAC calculation errors to callers
From: Xin Long
Date: Tue Oct 20 2026 - 10:22:21 EST
On Mon, Oct 19, 2026 at 1:28 PM Eric Biggers <ebiggers@xxxxxxxxxx> wrote:
>
> On Mon, Oct 19, 2026 at 09:49:03AM -0400, Sasha Levin wrote:
> > - Residual in this tree: `crypto_shash_setkey()` failure still `goto
> > free` without an error (mainline HMAC helpers no longer have that
> > path). That is preexisting and outside this commit.
>
> I don't think this backport can be considered complete without handling
> that case.
>
Agreed. We should return the error from crypto_shash_setkey() when
it fails in sctp_auth_calculate_hmac().
Thanks.