Re: [PATCH] crypto: aesni-intel - fix wrong kfree pointer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <mbroz@xxxxxxxxxx>

Good catch.  Patch applied.
-- 
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux