lkml.org 
[lkml]   [2023]   [Jan]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] w1: Use kfree_sensitive to clear sensitive information
On Sun, Jan 08, 2023 at 01:41:18AM +0530, Deepak R Varma wrote:
> On Fri, Dec 23, 2022 at 04:09:22AM +0530, Deepak R Varma wrote:
> > Replace combination of 'memset(0) + kfree()' by kfree_sensitive() as it
> > prevents compiler from optimizing away from zeroing out memory at the
> > end of a scope. kfree_sensitive() is also safe in case the memory
> > pointer turns out to be null, which simply gets ignored.
> >
> > Issue identified using kfree_sensitive.cocci coccinelle semantic patch.
> >
> > Signed-off-by: Deepak R Varma <drv@mailo.com>
> > ---
>
> Hello,
> Requesting a review and feedback on this patch proposal.

Hello,
Requesting a review and feedback on this patch proposal please.

Thank you,
./drv

>
> Thank you,
> ./drv


\
 
 \ /
  Last update: 2023-03-26 23:51    [W:0.262 / U:0.356 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site