From: David Howells Date: Mon, 06 Apr 2020 16:26:29 +0000 Subject: Re: [PATCH] mm: Add kvfree_sensitive() for freeing sensitive data objects Message-Id: <334933.1586190389@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit List-Id: References: <20200406023700.1367-1-longman@redhat.com> <319765.1586188840@warthog.procyon.org.uk> In-Reply-To: To: Joe Perches Cc: dhowells@redhat.com, Waiman Long , Andrew Morton , Jarkko Sakkinen , James Morris , "Serge E. Hallyn" , linux-mm@kvack.org, keyrings@vger.kernel.org, linux-kernel@vger.kernel.org, Linus Torvalds Joe Perches wrote: > While I agree with Linus about the __ prefix, > the z is pretty common and symmetric to all > the 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