Re: [PATCH] mm: Add kvfree_sensitive() for freeing sensitive data objects

David Howells
2020-04-06T16:26:43Z

Joe Perches <joe@perches.com> wrote:

> While I agree with Linus about the __ prefix,
> the z is pretty common and symmetric to all
> the <foo>zalloc uses.
>
> And if _sensitive is actually used, it'd be
> good to do a s/kzfree/kfree_sensitive/ one day
> sooner than later.

How much overhead would it be to always use kvfree_sensitive() and never have
a kfree_sensitive()?

David