[linux-cifs] Re: [PATCH] Use memzero_explicit to clear local buffers


  • Previous message:
  • Re: [linux-cifs-client] [PATCH] cifs: hard mount option behaviour implementation
  • Next message:
  • Re: [PATCH] Use memzero_explicit to clear local buffers
  • Subject:
  • Re: [PATCH] Use memzero_explicit to clear local buffers
  • From:
  • Giel van Schijndel <me <at> mortis.eu>
  • To:
  • linux-kernel <at> vger.kernel.org
  • Cc:
  • Herbert Xu <herbert <at> gondor.apana.org.au>, "David S. Miller" <davem <at> davemloft.net>, Thomas Gleixner <tglx <at> linutronix.de>, Ingo Molnar <mingo <at> redhat.com>, "H. Peter Anvin" <hpa <at> zytor.com>, "maintainer:X86 ARCHITECTURE..." <x86 <at> kernel.org>, Greg Kroah-Hartman <gregkh <at> linuxfoundation.org>, Steve French <sfrench <at> samba.org>, Rahul Bedarkar <rahulbedarkar89 <at> gmail.com>, Thomas Pugliese <thomas.pugliese <at> gmail.com>, Randy Dunlap <rdunlap <at> infradead.org>, Julia Lawall <Julia.Lawall <at> lip6.fr>, "open list:CRYPTO API" <linux-crypto <at> vger.kernel.org>, "open list:CERTIFIED WIRELES..." <linux-usb <at> vger.kernel.org>, "open list:COMMON INTERNET F..." <linux-cifs <at> vger.kernel.org>, "moderated list:COMMON INTERNET F..." <samba-technical <at> lists.samba.org>
  • Date:
  • 2015-01-04 23:05:28
On Sun, Jan 04, 2015 at 19:05:40 +0100, Giel van Schijndel wrote:
> When leaving a function use memzero_explicit instead of memset(0) to
> clear locally allocated/owned buffers. memset(0) may be optimized away.
> 
> All of the affected buffers contain sensitive data, key material or
> derivatives of one of those two.
> ---

Forgot to:
Signed-off-by: Giel van Schijndel 

-- 
Met vriendelijke groet,
With kind regards,
Giel van Schijndel
--
"Question: what do you call your programming methodology?
 Answer: Faith based development. You code and then pray that it works."
  -- John Spelner

This message from: http://www.mailbrowse.com/linux-cifs/10391.html
Previous message: Re: [linux-cifs-client] [PATCH] cifs: hard mount option behaviour implementation
Next message:Re: [PATCH] Use memzero_explicit to clear local buffers