From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by sourceware.org (Postfix) with ESMTPS id 833B33858D28 for ; Tue, 20 Jun 2023 13:48:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 833B33858D28 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=owlfolio.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=owlfolio.org Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 44C7A5C02DD; Tue, 20 Jun 2023 09:48:01 -0400 (EDT) Received: from imap45 ([10.202.2.95]) by compute1.internal (MEProxy); Tue, 20 Jun 2023 09:48:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=owlfolio.org; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm1; t= 1687268881; x=1687355281; bh=0C57bu+TnEng9+iwzZTf781cDhsaymtK6MH 7dl+dtic=; b=bYv8YIi0CzTPjF6mhFtjSZL5sGddvxqP3IK+R85oV+EsM/JOVDc R0o4HbaC8KO/uDzKKZHUSuqbWWz97e63N7eAmzNoG3vIHX+glEDOqFuCkfObBFox fhi6Boipa0XMW4OHHDgnNqNjsBxIr3J5SeaEvrOyO4w4l/UCKu0XA4645t+Yb3iY VGjqpUC2zpTZXA7vsOzNHsD/x1E27jQcwkNlXvFq5nGjjvU13lS3U9q63vZfv79T Dvk3z72I9EP1uc8xgDNt72Y4dxl2PY52FBz2sVz0OSJGajp1Wod0/IrFR75bR2s7 ZIUkVNn4emgVk8xk1mtsBX2FkXpRZWH+jSg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1687268881; x=1687355281; bh=0C57bu+TnEng9+iwzZTf781cDhsaymtK6MH 7dl+dtic=; b=ZtChwSoqQdp0O2DM+JoQD7ntXk0t/PTmFuxb2UJeMw1v9QQyqJD aU96fw+OtmbYcWHMFh9t744XRc65/bRPcq72YjDnvHDu/wB0epK1z1Hn/sqKKbLd b3axrETTUnmeE+m9oRLmLJTlTk5YvapH8N+MtUy2WzdybmnWrzWbUjYAByMC5AZ1 j7zJLAp+t+iwE001VxCmRk34l7BQuurun7pU/noQ5FO3au6ogXo2Nvnsiayi7cWD HMJAz48WQSU0yNLAXWS+ZxD+2vNOPgOncCKCfMHVR5phBf3JVdWhx4bDk7mo6DVd xqx7qfbsYTZUtYOWqyxQcxQr0vK0ttr0VWg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrgeefhedggeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtgfesthhqredtreerjeenucfhrhhomhepfdgk rggtkhcuhggvihhnsggvrhhgfdcuoeiirggtkhesohiflhhfohhlihhordhorhhgqeenuc ggtffrrghtthgvrhhnpeduueeigeehffekiefhtdehiedvueffteevtefhudfguedtueei tdetgfetieeiieenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpeiirggtkhesohiflhhfohhlihhordhorhhg X-ME-Proxy: Feedback-ID: i876146a2:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id F2807272007A; Tue, 20 Jun 2023 09:48:00 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-499-gf27bbf33e2-fm-20230619.001-gf27bbf33 Mime-Version: 1.0 Message-Id: <04a5bda9-ae0a-459b-a088-e6c8e2935d50@app.fastmail.com> In-Reply-To: <53aba94c-c2bb-1810-51b9-5c0775881388@linaro.org> References: <20230617222218.642125-1-bugaevc@gmail.com> <1249c048-c72d-0bf1-f0e0-2e619cfe5372@redhat.com> <783b1d24-f2b4-3a3c-d636-2b231be3b823@linaro.org> <2B723D88-546D-4AA6-8BDA-7B6CC9F5D404@linaro.org> <4F21801F-83DB-44EE-A463-9C6FC42F81B4@linaro.org> <99B8C69B-D3F3-4ED3-9F3B-19BC586BF6B6@linaro.org> <53aba94c-c2bb-1810-51b9-5c0775881388@linaro.org> Date: Tue, 20 Jun 2023 09:47:40 -0400 From: "Zack Weinberg" To: "Adhemerval Zanella" , "Sergey Bugaev" , "Maxim Kuvyrkov" Cc: "Carlos O'Donell" , "GNU libc development" Subject: Re: [PATCH v3 0/5] fcntl fortification Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,JMQ_SPF_NEUTRAL,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Tue, Jun 20, 2023, at 9:40 AM, Adhemerval Zanella Netto via Libc-alph= a wrote: > On 20/06/23 09:53, Sergey Bugaev wrote: >> On Tue, Jun 20, 2023 at 3:38=E2=80=AFPM Maxim Kuvyrkov >> wrote: >>> We don't set _FORTIFY_SOURCE in our CI's glibc build, but, I think, = it comes from Ubuntu's GCC, where it may be enabled by default. Or are = you using Ubuntu and not seeing this with default Ubuntu toolchain? >>=20 >> I'm not using Ubuntu. >>=20 >> Do they just set _FORTIFY_SOURCE by default -- i.e. not only when >> building OS packages, but for all compilations? That's... unusual :| > > It does for any optimized build: > > $ gcc -v 2>&1 | grep 'gcc version' > gcc version 11.3.0 (Ubuntu 11.3.0-1ubuntu1~22.04.1) > $ gcc -dM -E - < /dev/null | grep -w _FORTIFY_SOURCE > $ gcc -O2 -dM -E - < /dev/null | grep -w _FORTIFY_SOURCE > #define _FORTIFY_SOURCE 2 > > And I think this is a common configuration for recent distros. Argh, I should have thought to try turning on optimization :-/ zw