ASLR support for Postgres12 - Mailing list pgsql-hackers

From Joel Mariadasan (jomariad)
Subject ASLR support for Postgres12
Date
Msg-id BN6PR11MB417838276FE033D89F36DBF9D7F00@BN6PR11MB4178.namprd11.prod.outlook.com
Whole thread Raw
Responses Re: ASLR support for Postgres12  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers

Hi All,

 

We found that Postgres12 doesn’t support ASLR. Attached the process explorer screenshot (Process_Explorer_ASLR.png).

 

Analyzing dumpbin headers of postgres looks like the /HIGHENTROPYVA flag set and not the /DYNAMICBASE flag(dumpbin_headers.txt). According to this link, resulting image will not have ASLR enabled.

 

Windows has a feature to force randomization of images (Mandatory ASLR for those images which have not been compiled with /DYNAMICBASE).

Enabling this also didn’t have any effect.

 

The base addresses of postgres in Process Explorer doesn’t change upon restart (Postgres_Imagebase.png).

 

We would like to know if there is a roadmap to enable ASLR support for postgre.

 

Let us know if you need more information.

 

Regards,

Joel

 

 

 

Attachment

pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: [PATCH] Add schema and table names to partition error
Next
From: Michael Paquier
Date:
Subject: Re: Refactor compile-time assertion checks for C/C++