Thread (8 messages) 8 messages, 3 authors, 2015-01-06

Re: [PATCH] Use memzero_explicit to clear local buffers

From: Herbert Xu <hidden>
Date: 2015-01-06 20:56:30
Also in: linux-cifs, lkml

On Tue, Jan 06, 2015 at 08:42:26PM +0100, Giel van Schijndel wrote:
Question: are you sure the compiler won't optimize the call to memset(0)
way if it's immediately followed by kfree()?
Yes it won't be optimised away.  However, you could use kzfree.
Another actually does change a stack-allocated buffer, I'll split that
one off right away.
OK.

Thanks,
-- 
Email: Herbert Xu [off-list ref]
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help