[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20111020121907.GB4001@gondor.apana.org.au>
Date: Thu, 20 Oct 2011 14:19:08 +0200
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Nick Bowler <nbowler@...iptictech.com>
Cc: linux-crypto@...r.kernel.org, linux-kernel@...r.kernel.org,
"David S. Miller" <davem@...emloft.net>
Subject: Re: [PATCH v2] crypto: ghash: Avoid null pointer dereference if no
key is set.
On Fri, Oct 14, 2011 at 01:53:15PM -0400, Nick Bowler wrote:
> The ghash_update function passes a pointer to gf128mul_4k_lle which will
> be NULL if ghash_setkey is not called or if the most recent call to
> ghash_setkey failed to allocate memory. This causes an oops. Fix this
> up by returning an error code in the null case.
Patch applied. Will push to stable as well.
Thanks!
--
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists