From: | Robert Haas <robertmhaas(at)gmail(dot)com> |
---|---|
To: | "Robert Lerche (rlerche)" <rlerche(at)cisco(dot)com> |
Cc: | "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>, "Sailesh Krishnamurthy (sailkris)" <sailkris(at)cisco(dot)com> |
Subject: | Re: PostgreSQL and ASLR on Linux |
Date: | 2013-08-05 00:33:50 |
Message-ID: | CA+TgmoaGNU7BbqfrvGeO3vFTz1xtFonEA+Qehb6iTKKzedXopQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Wed, Jul 31, 2013 at 4:35 PM, Robert Lerche (rlerche)
<rlerche(at)cisco(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Andres Freund | 2013-08-05 00:54:05 | Re: PostgreSQL and ASLR on Linux |
Previous Message | Robert Haas | 2013-08-05 00:31:25 | Re: Review: UNNEST (and other functions) WITH ORDINALITY |