lkml.org 
[lkml]   [2018]   [Jun]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: Memory zeroed when made available to user process
On Wed, Jun 27, 2018 at 11:34 AM, Jefferson Carpenter
<jeffersoncarpenter2@gmail.com> wrote:
> Is there a way for a user process to mark memory as 'sensitive' or
> 'non-sensitive' when it is allocated? That could allow it not to have to be
> zeroed before being allocated to another process.

Isn't this what we have Meltdown and Spectre for? ;-)

No, memory from the kernel is always zeroed.
libc offers malloc() and calloc() for this purpose.

--
Thanks,
//richard

\
 
 \ /
  Last update: 2018-06-27 13:30    [W:1.598 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site