Re: [PATCH] security: keys: Use kvfree_sensitive in a few places

2020-09-14 Thread Jarkko Sakkinen
On Fri, Sep 11, 2020 at 07:05:16PM +0300, Denis Efremov wrote: > Hi, > > same patch > > https://lkml.org/lkml/2020/8/27/168 > > Thanks, > Denis David, can you pick this up? /Jarkko

Re: [PATCH] security: keys: Use kvfree_sensitive in a few places

2020-09-11 Thread James Bottomley
On Fri, 2020-09-11 at 12:44 +0100, Alex Dewar wrote: > In big_key.c, there are a few places where memzero_explicit + kvfree > is used. It is better to use kvfree_sensitive instead, which is more > readable and also prevents the compiler from eliding the call to > memzero_explicit. Fix this. That l

Re: [PATCH] security: keys: Use kvfree_sensitive in a few places

2020-09-11 Thread Alex Dewar
On 2020-09-11 17:05, Denis Efremov wrote: Hi, same patch https://lkml.org/lkml/2020/8/27/168 Thanks, Denis Ah ok. Sorry for the noise! On 9/11/20 2:44 PM, Alex Dewar wrote: In big_key.c, there are a few places where memzero_explicit + kvfree is used. It is better to use kvfree_sensitive in

Re: [PATCH] security: keys: Use kvfree_sensitive in a few places

2020-09-11 Thread Denis Efremov
Hi, same patch https://lkml.org/lkml/2020/8/27/168 Thanks, Denis On 9/11/20 2:44 PM, Alex Dewar wrote: > In big_key.c, there are a few places where memzero_explicit + kvfree is > used. It is better to use kvfree_sensitive instead, which is more > readable and also prevents the compiler from eli

[PATCH] security: keys: Use kvfree_sensitive in a few places

2020-09-11 Thread Alex Dewar
In big_key.c, there are a few places where memzero_explicit + kvfree is used. It is better to use kvfree_sensitive instead, which is more readable and also prevents the compiler from eliding the call to memzero_explicit. Fix this. Signed-off-by: Alex Dewar --- security/keys/big_key.c | 9 +++