[PATCH 0/2] crypto: aead - Fix aead_instance memory overrun

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

 



Hi:

I just noticed that the code for struct aead_instance allocation
is wrong.  The problem is that struct aead_instance doesn't contain
the full amount of space required.  For ahash/shash this is dealt
with by calculating the size by adding head space to the size of
struct crypto_instance.  Unfortunately we didn't do that for AEAD.

These two patches fix this in a slightly different way.  We will
enlarge struct aead_instance so that it contains the actual amount
of space required.

Cheers,
-- 
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