linux/include/crypto
Corentin Labbe f7d76e05d0 crypto: user - fix use_after_free of struct xxx_request
All crypto_stats functions use the struct xxx_request for feeding stats,
but in some case this structure could already be freed.

For fixing this, the needed parameters (len and alg) will be stored
before the request being executed.
Fixes: cac5818c25 ("crypto: user - Implement a generic crypto statistics")
Reported-by: syzbot <syzbot+6939a606a5305e9e9799@syzkaller.appspotmail.com>

Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2018-12-07 14:15:00 +08:00
..
internal crypto: user - made crypto_user_stat optional 2018-12-07 14:15:00 +08:00
acompress.h crypto: user - fix use_after_free of struct xxx_request 2018-12-07 14:15:00 +08:00
aead.h crypto: user - fix use_after_free of struct xxx_request 2018-12-07 14:15:00 +08:00
aes.h
akcipher.h crypto: user - fix use_after_free of struct xxx_request 2018-12-07 14:15:00 +08:00
algapi.h crypto: api - Introduce notifier for new crypto algorithms 2018-09-04 11:37:04 +08:00
asym_tpm_subtype.h KEYS: asym_tpm: extract key size & public key [ver #2] 2018-10-26 09:30:46 +01:00
authenc.h
b128ops.h
blowfish.h
cast5.h
cast6.h
cast_common.h
cbc.h crypto: cbc - Remove VLA usage 2018-09-04 11:35:03 +08:00
chacha.h crypto: chacha - add XChaCha12 support 2018-11-20 14:26:55 +08:00
cryptd.h
crypto_wq.h
ctr.h
des.h
dh.h crypto: dh - add public key verification test 2018-07-09 00:26:22 +08:00
drbg.h crypto: drbg - in-place cipher operation for CTR 2018-08-03 18:05:48 +08:00
ecdh.h
engine.h
gcm.h
gf128mul.h
ghash.h
hash_info.h crypto: streebog - register Streebog in hash info for IMA 2018-11-16 14:09:40 +08:00
hash.h crypto: user - fix use_after_free of struct xxx_request 2018-12-07 14:15:00 +08:00
hmac.h
if_alg.h Revert changes to convert to ->poll_mask() and aio IOCB_CMD_POLL 2018-06-28 10:40:47 -07:00
kpp.h crypto: user - fix use_after_free of struct xxx_request 2018-12-07 14:15:00 +08:00
md5.h
morus640_glue.h crypto/morus(640,1280) - make crypto_...-algs static 2018-10-05 10:22:48 +08:00
morus1280_glue.h crypto/morus(640,1280) - make crypto_...-algs static 2018-10-05 10:22:48 +08:00
morus_common.h
nhpoly1305.h crypto: nhpoly1305 - add NHPoly1305 support 2018-11-20 14:26:56 +08:00
null.h crypto: null - Remove VLA usage of skcipher 2018-09-28 12:46:08 +08:00
padlock.h
pcrypt.h
pkcs7.h
poly1305.h crypto: poly1305 - add Poly1305 core API 2018-11-20 14:26:56 +08:00
public_key.h KEYS: Allow the public_key struct to hold a private key [ver #2] 2018-10-26 09:30:46 +01:00
rng.h crypto: user - fix use_after_free of struct xxx_request 2018-12-07 14:15:00 +08:00
scatterwalk.h crypto: scatterwalk - remove scatterwalk_samebuf() 2018-08-03 18:06:04 +08:00
serpent.h
sha1_base.h
sha3.h
sha256_base.h
sha512_base.h
sha.h
skcipher.h crypto: user - fix use_after_free of struct xxx_request 2018-12-07 14:15:00 +08:00
sm3_base.h
sm3.h
sm4.h
streebog.h crypto: streebog - add Streebog hash function 2018-11-16 14:09:40 +08:00
twofish.h
xts.h