Re: PostgreSQL and ASLR on Linux - Mailing list pgsql-hackers

From Robert Haas
Subject Re: PostgreSQL and ASLR on Linux
Date
Msg-id CA+TgmoaGNU7BbqfrvGeO3vFTz1xtFonEA+Qehb6iTKKzedXopQ@mail.gmail.com
Whole thread Raw
In response to PostgreSQL and ASLR on Linux  ("Robert Lerche (rlerche)" <rlerche@cisco.com>)
Responses Re: PostgreSQL and ASLR on Linux
Re: PostgreSQL and ASLR on Linux
List pgsql-hackers
On Wed, Jul 31, 2013 at 4:35 PM, Robert Lerche (rlerche)
<rlerche@cisco.com> wrote:
> Hi.  Has anyone had experience building PostgreSQL to support Address Space
> Layout Randomization (ASLR)?  I recently took a brute-force approach
> (compiling everything with -fPIC and specifying -pie on all executables).
> This worked, but a (very superficial) performance test indicated a high cost
> (around 50%, much more than I expected).  This was on 64-bit Linux x86.
>
> Google turns up some references to the Ubuntu distribution of version 8.3
> being built this way but nothing much more interesting.
>
> I’d appreciate any information or help anyone can give me on this.  Thanks.

AFAIK you've got it backwards: ASLR is something that happens
automatically, unless you take steps to suppress it, at least on MacOS
X.  I not long ago built with EXEC_BACKEND on that platform and found
that it broke stuff until I disabled ASLR.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Review: UNNEST (and other functions) WITH ORDINALITY
Next
From: Andres Freund
Date:
Subject: Re: PostgreSQL and ASLR on Linux