Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1czVMD-0003qK-VK for pgsql-hackers@arkaria.postgresql.org; Sat, 15 Apr 2017 21:35:50 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1czVMD-00067L-Gl for pgsql-hackers@arkaria.postgresql.org; Sat, 15 Apr 2017 21:35:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1czVKi-0001Ru-18 for pgsql-hackers@postgresql.org; Sat, 15 Apr 2017 21:34:16 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1czVKa-0002WR-UG for pgsql-hackers@postgresql.org; Sat, 15 Apr 2017 21:34:15 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v3FLY6NW004181; Sat, 15 Apr 2017 17:34:06 -0400 From: Tom Lane To: Andres Freund cc: pgsql-hackers@postgresql.org Subject: Re: OK, so culicidae is *still* broken In-reply-to: <20170415213017.co7gkjlbcy44zlmw@alap3.anarazel.de> References: <7036.1492231361@sss.pgh.pa.us> <18D5D7AF-C587-4B63-B2CF-13590849A624@anarazel.de> <32559.1492278226@sss.pgh.pa.us> <1842.1492289285@sss.pgh.pa.us> <20170415210643.cdapwhwmbiwaqd6e@alap3.anarazel.de> <2829.1492290578@sss.pgh.pa.us> <20170415211810.vsing3muvqfcswqx@alap3.anarazel.de> <3667.1492291494@sss.pgh.pa.us> <20170415213017.co7gkjlbcy44zlmw@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Sat, 15 Apr 2017 14:30:18 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4179.1492292046.1@sss.pgh.pa.us> Date: Sat, 15 Apr 2017 17:34:06 -0400 Message-ID: <4180.1492292046@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Andres Freund writes: > On 2017-04-15 17:24:54 -0400, Tom Lane wrote: >> I wonder whether we could work around that by just destroying the created >> process and trying again if we get a collision. It'd be a tad >> inefficient, but hopefully collisions wouldn't happen often enough to be a >> big problem. > That might work, although it's obviously not pretty. We could also just > default to some out-of-the-way address for MapViewOfFileEx, that might > also work. Could be. Does Microsoft publish any documentation about the range of addresses their ASLR uses? Obviously, any such fix would be a lot more likely to be reliable in 64-bit machines. There's probably not enough daylight to be sure of making it work in 32-bit Windows, so I suspect we'd need some retry logic anyway for that case. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers