On Thu, Jun 28, 2012 at 05:26:02PM +0200, Milan Broz wrote:
> kfree(new_key_mem) in rfc4106_set_key() should be called on malloced pointer,
> not on aligned one, otherwise it can cause invalid pointer on free.
> 
> (Seen at least once when running tcrypt tests with debug kernel.)
> 
> Signed-off-by: Milan Broz <[email protected]>

Good catch.  Patch applied.
-- 
Email: Herbert Xu <[email protected]>
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-crypto" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to