[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <53FB9EBF.1050108@redhat.com>
Date: Mon, 25 Aug 2014 22:38:23 +0200
From: Daniel Borkmann <dborkman@...hat.com>
To: Alexey Dobriyan <adobriyan@...il.com>
CC: tytso@....edu, zatimend@...mail.co.uk,
linux-kernel@...r.kernel.org,
Hannes Frederic Sowa <hannes@...essinduktion.org>
Subject: Re: [PATCH] random: add and use memzero_explicit() for clearing data
On 08/25/2014 10:35 PM, Alexey Dobriyan wrote:
> On Mon, Aug 25, 2014 at 10:01:39PM +0200, Daniel Borkmann wrote:
>> +void memzero_explicit(void *s, size_t count)
>> +{
>> + memset(s, 0, count);
>> + OPTIMIZER_HIDE_VAR(s);
>> +}
>
> BSD seems to name it explicit_bzero().
Sure, that's what I wrote in the commit log. But we don't have
bzero(), and I think the name is more clear and conform to
mem*() API.
Best,
Daniel
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists