Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bsaK2-00028D-Qv for pgsql-hackers@arkaria.postgresql.org; Fri, 07 Oct 2016 18:56:43 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bsaK2-0000J3-Dy for pgsql-hackers@arkaria.postgresql.org; Fri, 07 Oct 2016 18:56:42 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bsaK1-0000IJ-8U for pgsql-hackers@postgresql.org; Fri, 07 Oct 2016 18:56:41 +0000 Received: from mail-lf0-x233.google.com ([2a00:1450:4010:c07::233]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bsaJt-0004hK-V1 for pgsql-hackers@postgresql.org; Fri, 07 Oct 2016 18:56:40 +0000 Received: by mail-lf0-x233.google.com with SMTP id l131so47902666lfl.2 for ; Fri, 07 Oct 2016 11:56:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=Ne5G9vFqavQiuOLIZnsKbGQa6j9K8XP66H3TAFcea/o=; b=HazYp9jAoP8sc2KvpcNdxbtvIW3yYYVrDaw1hmGunWpHX7Baw1V1CBogYeP1ewzLXf amZoct3ZCqslaOxl9HAyeU/iV0f20Tj0EVwlJU2yJiiSS5XPg7gl8P34Ybll1l3wDnrq FO16Qom1RiBvZ6294X7QUicb8BJRtpMLQJxbQDX9tl/LyEXhAr9m7fxEfC1NPpydQ3uu xHy7F8U1R2407CMILiyFqDRt1mo+43N0R3JpjTPeDMA3UfL9j04e2C16AgNvJ4dHkoJB X7NGjBSOpgl2TSULezmDe4tRFgZldjiMqDo0tcEe/sYHX9gguXH1HHo2fvc7AaxZ6YJB OxlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:to:references:cc:from:message-id :date:user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=Ne5G9vFqavQiuOLIZnsKbGQa6j9K8XP66H3TAFcea/o=; b=ECaN1LW9QLyBlq2/3wOgpGd6al1TvSVniy9wwcd2KM1XF+IfjNIS/BqYbps9LW479u OCnm7K1icgFD2Rsmy6wqXx8x6ur93c6B8onShvugkQE5WoIEoReHhROdsM/w7byy8/rp 3K3mWRLbwuf4gh4y3cwqAu5BYBnxgPsy+UcR3BpCJVfg3HieDzV/CGWghcFv7BNYelsE Sd5dVw+MZt7Jwp2M26i674JhuFGLFLriAM4UzJSfp6jVGpzrezyBuZlQ9eFungygXlTQ yUyLXOvctSJ9bHOTGUX9Ll68egxyMem6oXNgOhbTGd8PxAHLei15NYIuLR5YDJIAuJk/ u4ng== X-Gm-Message-State: AA6/9RkpXGmyvzN5ZvrxE/89dKEMwFttKfAkVJQBdJshGrfazMwmIF4Kul5hFk9VEOjPLg== X-Received: by 10.25.205.19 with SMTP id d19mr9666502lfg.67.1475866591523; Fri, 07 Oct 2016 11:56:31 -0700 (PDT) Received: from [192.168.1.111] (dsl-hkibrasgw1-58c38f-82.dhcp.inet.fi. [88.195.143.82]) by smtp.gmail.com with ESMTPSA id u134sm3758971lja.18.2016.10.07.11.56.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Oct 2016 11:56:30 -0700 (PDT) Subject: Re: CVE-2016-1238 fix breaks (at least) pg_rewind tests To: Michael Paquier , Andres Freund References: <20160908210440.vs22nia2nportdxr@alap3.anarazel.de> <20160908211306.GA61403@alvherre.pgsql> <20160908214919.2wv23lup2aouflcl@alap3.anarazel.de> Cc: Alvaro Herrera , PostgreSQL mailing lists From: Heikki Linnakangas Message-ID: <6b7ee4c4-cdec-0464-b233-054582fcd6f5@iki.fi> Date: Fri, 7 Oct 2016 21:56:27 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) 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 On 09/12/2016 11:08 AM, Michael Paquier wrote: > On Fri, Sep 9, 2016 at 6:49 AM, Andres Freund wrote: >> On 2016-09-08 18:13:06 -0300, Alvaro Herrera wrote: >>>> I can't vouch for the windows stuff, and >>>> the invocations indeed look vulnerable. I'm not sure if the fix actually >>>> matters on windows, given . is the default for pretty much everything >>>> there. >>> >>> Well, maybe it doesn't matter now but as I understand the fix is going >>> to enter the next stable upstream perl, so it'll fail eventually. It'd >>> be saner to just fix the thing completely so that we can forget about >>> it. >> >> Yea, it'd need input from somebody on windows. Michael? What happens if >> you put a line remove . from INC (like upthread) in the msvc stuff? > > I haven't tested that directly because I am not sure how to enforce > INC when running the prove command through system(), and there is no > point to use pop on @INC directly in vcregress.pl as that would just > be ignored in the system() call. But to be short: this will blow up as > @INC is part of the default per perl -V if one uses active perl. So it > looks fair to me to append the local source directory as well to what > is included. You can actually do that by just adding $dir to > $ENV{PERL5LIB} in vcregress.pl and that would be fine. I committed a fix for the unix Makefile, per Andres' original suggestion, because this started to bother me. I tried reproducing this on Windows by hacking Prove.pm to remove '.' from @INC, but I wasn't able to make that to fail. So I didn't do anything about MSVC for now. Let's fix vcregress.pl, when someone reports an actual problem on Windows. - Heikki -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers