lkml.org 
[lkml]   [2010]   [Mar]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH v1] compiler: prevent dead store elimination
From
On Mon, Mar 1, 2010 at 11:32 AM, Mikael Pettersson <mikpe@it.uu.se> wrote:
> Arjan van de Ven writes:
>  > On Sat, 27 Feb 2010 21:47:42 +0100
>  > Roel Kluin <roel.kluin@gmail.com> wrote:
>  > > +void secure_bzero(void *p, size_t n)
>  > > +{
>  > > +  memset(p, 0, n);
>  > > +  ARRAY_PREVENT_DSE(p, n);
>  > > +}
>  > > +EXPORT_SYMBOL(secure_bzero);
>  >
>  >
>  > please don't introduce bzero again to the kernel;
>  >
>  > make it secure_memset() please.

What's so secure in this function? :^)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2010-03-01 10:35    [W:0.053 / U:0.200 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site