linux/crypto
Herbert Xu da7cd59ab9 [CRYPTO] api: Read module pointer before freeing algorithm
The function crypto_mod_put first frees the algorithm and then drops
the reference to its module.  Unfortunately we read the module pointer
which after freeing the algorithm and that pointer sits inside the
object that we just freed.

So this patch reads the module pointer out before we free the object.

Thanks to Luca Tettamanti for reporting this.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2007-05-19 14:51:00 +10:00
..
ablkcipher.c [CRYPTO] api: Add async blkcipher type 2007-05-02 14:38:31 +10:00
aes.c
algapi.c [CRYPTO] api: Do not remove users unless new algorithm matches 2007-05-02 14:38:32 +10:00
anubis.c
api.c [CRYPTO] api: Read module pointer before freeing algorithm 2007-05-19 14:51:00 +10:00
arc4.c
blkcipher.c [CRYPTO] api: Add async block cipher interface 2007-05-02 14:38:30 +10:00
blowfish.c
camellia.c
cast5.c
cast6.c
cbc.c [CRYPTO] templates: Pass type/mask when creating instances 2007-05-02 14:38:31 +10:00
cipher.c
compress.c
crc32c.c
cryptd.c [CRYPTO] cryptd: Add software async crypto daemon 2007-05-02 14:38:32 +10:00
crypto_null.c
cryptomgr.c [CRYPTO] cryptomgr: Fix use after free 2007-05-09 13:04:39 +10:00
deflate.c
des.c
digest.c
ecb.c [CRYPTO] templates: Pass type/mask when creating instances 2007-05-02 14:38:31 +10:00
fcrypt.c
gf128mul.c
hash.c [CRYPTO] api: Proc functions should be marked as unused 2007-05-02 14:38:29 +10:00
hmac.c [CRYPTO] templates: Pass type/mask when creating instances 2007-05-02 14:38:31 +10:00
internal.h
Kconfig Fix trivial typos in Kconfig* files 2007-05-09 07:12:20 +02:00
khazad.c
lrw.c [CRYPTO] templates: Pass type/mask when creating instances 2007-05-02 14:38:31 +10:00
Makefile [CRYPTO] cryptd: Add software async crypto daemon 2007-05-02 14:38:32 +10:00
md4.c
md5.c
michael_mic.c [PATCH] Update my email address from jkmaline@cc.hut.fi to j@w1.fi 2007-04-28 11:01:01 -04:00
pcbc.c [CRYPTO] templates: Pass type/mask when creating instances 2007-05-02 14:38:31 +10:00
proc.c
scatterwalk.c [CRYPTO] api: Flush the current page right than the next 2007-03-31 12:58:20 +10:00
scatterwalk.h
serpent.c
sha1.c
sha256.c
sha512.c
tcrypt.c [CRYPTO] tcrypt: Add missing error check 2007-05-18 16:25:19 +10:00
tcrypt.h
tea.c
tgr192.c
twofish_common.c
twofish.c
wp512.c
xcbc.c [CRYPTO] templates: Pass type/mask when creating instances 2007-05-02 14:38:31 +10:00