[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20160206074813.GI22220@gondor.apana.org.au>
Date: Sat, 6 Feb 2016 15:48:14 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Jerome Marchand <jmarchan@...hat.com>
Cc: "David S. Miller" <davem@...emloft.net>,
linux-crypto@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] fix out of bound read in __test_aead()
On Wed, Feb 03, 2016 at 01:58:12PM +0100, Jerome Marchand wrote:
> __test_aead() reads MAX_IVLEN bytes from template[i].iv, but the
> actual length of the initialisation vector can be shorter.
> The length of the IV is already calculated earlier in the
> function. Let's just reuses that. Also the IV length is currently
> calculated several time for no reason. Let's fix that too.
> This fix an out-of-bound error detected by KASan.
>
> Signed-off-by: Jerome Marchand <jmarchan@...hat.com>
Applied.
--
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