Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1czVDE-0002qD-KH for pgsql-hackers@arkaria.postgresql.org; Sat, 15 Apr 2017 21:26:32 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1czVDE-0001r1-40 for pgsql-hackers@arkaria.postgresql.org; Sat, 15 Apr 2017 21:26:32 +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 1czVBj-0007aa-P3 for pgsql-hackers@postgresql.org; Sat, 15 Apr 2017 21:24:59 +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 1czVBh-0002Jt-D8 for pgsql-hackers@postgresql.org; Sat, 15 Apr 2017 21:24:59 +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 v3FLOsVr003668; Sat, 15 Apr 2017 17:24:54 -0400 From: Tom Lane To: Andres Freund cc: pgsql-hackers@postgresql.org Subject: Re: OK, so culicidae is *still* broken In-reply-to: <20170415211810.vsing3muvqfcswqx@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> Comments: In-reply-to Andres Freund message dated "Sat, 15 Apr 2017 14:18:10 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3666.1492291494.1@sss.pgh.pa.us> Date: Sat, 15 Apr 2017 17:24:54 -0400 Message-ID: <3667.1492291494@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:09:38 -0400, Tom Lane wrote: >> Why doesn't Windows' ability to map the segment into the new process >> before it executes take care of that? > Because of ASLR of the main executable (i.e. something like PIE). Not following. Are you saying that the main executable gets mapped into the process address space immediately, but shared libraries are not? 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. 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