Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Mar 2017 10:24:48 -0700
From:      Xin LI <delphij@gmail.com>
To:        Andrey Chernov <ache@freebsd.org>
Cc:        Steven Chamberlain <steven@pyro.eu.org>,  "freebsd-security@freebsd.org" <freebsd-security@freebsd.org>, freebsd <freebsd-hackers@freebsd.org>
Subject:   Re: arc4random weakness
Message-ID:  <CAGMYy3v4f1y6SwPjj=hqJVLA=ar0aAWsK4mwMGoQV3dEKC7=iA@mail.gmail.com>
In-Reply-To: <5160183b-9778-59aa-6cf9-118014a588eb@freebsd.org>
References:  <CAD2Ti28acbW%2BpGQR5UihECWvg9WduGmVzkVFug_2ZWRF2zyTBw@mail.gmail.com> <20170313220639.GB65190@pyro.eu.org> <20170315130615.GC25448@pyro.eu.org> <5160183b-9778-59aa-6cf9-118014a588eb@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Mar 15, 2017 at 1:13 PM, Andrey Chernov <ache@freebsd.org> wrote:
> On 15.03.2017 16:06, Steven Chamberlain wrote:
>> Also it is great to see INHERIT_ZERO was added to mmap(2)!
>
> It is not so great. For a program which forks very often zeroing even
> one page will be slowdown. It will be better and faster to implement it
> as fork syscall wrapper setting single variable, as it already done for
> threaded lib.

I think it's exactly what it was done (and unlike a fork wrapper, the
zeroing only happens on-demand, i.e. when the page is first touched).

Cheers,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGMYy3v4f1y6SwPjj=hqJVLA=ar0aAWsK4mwMGoQV3dEKC7=iA>