[PATCH v5 06/11] crypto: crypto_user_stat: fix use_after_free of struct xxx_request

2018-11-29 Thread Corentin Labbe
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: cac5818c25d0 ("crypto: user - Implement a generic crypto

[PATCH v5 06/11] crypto: crypto_user_stat: fix use_after_free of struct xxx_request

2018-11-29 Thread Corentin Labbe
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: cac5818c25d0 ("crypto: user - Implement a generic crypto