From: Herbert Xu <herbert@gondor.apana.org.au>
To: Jason Wang <wangborong@cdjrlc.com>
Cc: clabbe.montjoie@gmail.com, davem@davemloft.net,
mripard@kernel.org, wens@csie.org, jernej.skrabec@gmail.com,
mchehab+huawei@kernel.org, corbet@lwn.net,
baijiaju1990@gmail.com, linux-crypto@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] crypto: sun8i-ce - use kfree_sensitive to clear and free sensitive data
Date: Thu, 12 Aug 2021 19:36:05 +0800 [thread overview]
Message-ID: <20210812113605.GA561@gondor.apana.org.au> (raw)
In-Reply-To: <20210803125525.72603-1-wangborong@cdjrlc.com>
On Tue, Aug 03, 2021 at 12:55:25PM +0000, Jason Wang wrote:
> The kfree_sensitive is a kernel API to clear sensitive information
> that should not be leaked to other future users of the same memory
> objects and free the memory. Its function is the same as the
> combination of memzero_explicit and kfree. Thus, we can replace the
> combination APIs with the single kfree_sensitive API.
>
> Signed-off-by: Jason Wang <wangborong@cdjrlc.com>
> ---
> drivers/crypto/allwinner/sun8i-ce/sun8i-ce-prng.c | 9 +++------
> drivers/crypto/allwinner/sun8i-ce/sun8i-ce-trng.c | 3 +--
> 2 files changed, 4 insertions(+), 8 deletions(-)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
prev parent reply other threads:[~2021-08-12 11:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-03 12:55 Jason Wang
2021-08-12 11:36 ` Herbert Xu [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210812113605.GA561@gondor.apana.org.au \
--to=herbert@gondor.apana.org.au \
--cc=baijiaju1990@gmail.com \
--cc=clabbe.montjoie@gmail.com \
--cc=corbet@lwn.net \
--cc=davem@davemloft.net \
--cc=jernej.skrabec@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sunxi@lists.linux.dev \
--cc=mchehab+huawei@kernel.org \
--cc=mripard@kernel.org \
--cc=wangborong@cdjrlc.com \
--cc=wens@csie.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®