[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ZUMs5C2FLQL4POO+@gondor.apana.org.au>
Date: Thu, 2 Nov 2023 13:00:20 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Yuran Pereira <yuran.pereira@...mail.com>
Cc: Eric Biggers <ebiggers@...nel.org>, linux-crypto@...r.kernel.org,
davem@...emloft.net, tglx@...utronix.de, mingo@...hat.com,
bp@...en8.de, dave.hansen@...ux.intel.com, x86@...nel.org,
hpa@...or.com, linux-kernel@...r.kernel.org,
linux-kernel-mentees@...ts.linuxfoundation.org
Subject: Re: [PATCH 0/7] crypto: Proper Initialization of `struct
skcipher_walk` in x86 Glue Files
On Thu, Nov 02, 2023 at 10:27:41AM +0530, Yuran Pereira wrote:
>
> I noticed that, but since skcipher_walk_first can return with failure, there seems
> to be a chance that those bits are never initialized.
The API is such that if an error is returned by walk_first/next,
then you must not call into the skcipher_walk_* functions again.
Cheers,
--
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Powered by blists - more mailing lists