[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <7dd513fba6c248327a9118e8dafe628d13dde495.camel@linux.ibm.com>
Date: Tue, 12 Jul 2022 07:40:18 -0400
From: Mimi Zohar <zohar@...ux.ibm.com>
To: Jianglei Nie <niejianglei2021@....com>, dmitry.kasatkin@...il.com,
jmorris@...ei.org, serge@...lyn.com
Cc: linux-integrity@...r.kernel.org,
linux-security-module@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] ima/evm: Fix potential memory leak in
ima_init_crypto()
On Tue, 2022-07-12 at 09:10 +0800, Jianglei Nie wrote:
> On failure to allocate the SHA1 tfm, IMA fails to initialize and exits
> without freeing the ima_algo_array. Add the missing kfree() for
> ima_algo_array to avoid the potential memory leak.
>
> Signed-off-by: Jianglei Nie <niejianglei2021@....com>
Thanks, Jianglei. This patch is now queued in next-integrity/next-
integrity-testing.
Mimi
Powered by blists - more mailing lists