[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ZIrVLk73ulTPzOGq@gondor.apana.org.au>
Date: Thu, 15 Jun 2023 17:09:02 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: "Adam, Mahmoud" <mngyadam@...zon.de>
Cc: Mahmoud Adam <mngyadam@...zon.com>,
"dhowells@...hat.com" <dhowells@...hat.com>,
"davem@...emloft.net" <davem@...emloft.net>,
"keyrings@...r.kernel.org" <keyrings@...r.kernel.org>,
"linux-crypto@...r.kernel.org" <linux-crypto@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] KEYS: use kfree_sensitive with key
On Wed, Jun 14, 2023 at 01:32:51PM +0000, Adam, Mahmoud wrote:
>
> I think this holds for the other lines as well, I can use pkey->key_is_private to check for them also
That might be going a bit overboard.
So if the key is definitely public, then use kfree. If we don't
know what it is (i.e., public or private), then just use kfree_sensitive.
Thanks,
--
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Powered by blists - more mailing lists