[PATCH] [v2] evm: Fix memleak in init_desc

Mimi Zohar zohar at linux.ibm.com
Wed Jan 13 15:16:30 UTC 2021


Hi Dinghao,

On Sun, 2021-01-10 at 16:02 +0800, Dinghao Liu wrote:
> When kmalloc() fails, tmp_tfm allocated by
> crypto_alloc_shash() has not been freed, which
> leads to memleak.
> 
> Fixes: d46eb3699502b ("evm: crypto hash replaced by shash")
> Signed-off-by: Dinghao Liu <dinghao.liu at zju.edu.cn>

This patch is now queued, with an updated patch description, in next-
integrity-testing.

thanks,

Mimi



More information about the Linux-security-module-archive mailing list