Re: Shared system resources - Mailing list pgsql-general

From George Neuner
Subject Re: Shared system resources
Date
Msg-id dckk7bl52b502sor5l71v3pv4h3oo5tkce@4ax.com
Whole thread Raw
In response to Shared system resources  (oleg yusim <olegyusim@gmail.com>)
Responses Re: Shared system resources  (oleg yusim <olegyusim@gmail.com>)
List pgsql-general
On Tue, 22 Dec 2015 23:21:27 +0000, David Wilson <dw+pg@hmmz.org>
wrote:

>On Linux the memory pages of an exiting process aren't sanitized at
>exit, however it is impossible(?) for userspace to reallocate them
>without the kernel first zeroing their contents.

Not impossible, but it requires a non-standard kernel.

Since 2.6.33, mmap() accepts the flag MAP_UNINITIALIZED which allows
pages to be mapped without being cleared.  The flag has no effect
unless the kernel was built with CONFIG_MMAP_ALLOW_UNINITIALIZED.


No mainstream distro enables this.  AFAIK, there is NO distro at all
that enables it ... it's too big a security risk for a general purpose
system.  It's intended to support embedded systems where the set of
programs is known.

George

pgsql-general by date:

Previous
From: Alberto Cabello Sánchez
Date:
Subject: Re: Secret Santa List
Next
From: Killian Driscoll
Date:
Subject: Transfer db from one port to another