From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id eAIlFXQTbGL4BgAAbAwnHQ (envelope-from ) for ; Fri, 29 Apr 2022 18:33:56 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 4NDqE3QTbGJmSwEAG6o9tA (envelope-from ) for ; Fri, 29 Apr 2022 18:33:56 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E89DB2E29D for ; Fri, 29 Apr 2022 18:33:55 +0200 (CEST) Received: from localhost ([::1]:36228 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nkTZ4-0003as-QF for larch@yhetil.org; Fri, 29 Apr 2022 12:33:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50222) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nkSu4-0007SZ-1m for guix-devel@gnu.org; Fri, 29 Apr 2022 11:51:32 -0400 Received: from w1.tutanota.de ([81.3.6.162]:59860) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nkSu2-000277-5i; Fri, 29 Apr 2022 11:51:31 -0400 Received: from w3.tutanota.de (unknown [192.168.1.164]) by w1.tutanota.de (Postfix) with ESMTP id A33E4FBF8AD; Fri, 29 Apr 2022 15:51:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1651247486; s=s1; d=tutanota.com; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Cc:Cc:Date:Date:In-Reply-To:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:References:Sender; bh=BFYzBz6revp3YXIbyyRH4FY30a0RjooNmQTqSycwqoQ=; b=WaenKhPVVeU0o0Vyes21enLGHFF5b6OPePP/AHQzUub8tDm5SI+mvC1KjhqTiV1Y bK+PuV7M0OfAGPtaR5K1Sj6wCRRrMe6gNotXRB972PI0HtOkFn038Gtg5xaKT7jdSL5 a7cJXtSlshdM/Zt2V+O0Vo5KiUcxn6J2RM9hnu3iLLpzd7Chv/RaZuvelNIRO6NSCHT 3B/LTUXp2aVIXJE2KKEj/uQDPtJ2ImQJFkbpoeGqm0Rk5Z9Xb/UnVtq7BHIoaf5l8Ht U5zIgwlZOMHM/khOMAetBR7O3KFmcm6gazmaUdDU33eVAMrDuG2tAHPuLAZNlemE2C7 uPiXKMUYjw== Date: Fri, 29 Apr 2022 17:51:26 +0200 (CEST) To: zimoun Cc: =?UTF-8?Q?Ludovic_Court=C3=A8s?= , Maxim Cournoyer , Guix Devel Message-ID: In-Reply-To: <87h76ccha7.fsf@gmail.com> References: <874k3r8m4m.fsf@gmail.com> <8464b1bff3acb0a84f46ea6dcbbeaa7045b03d1c.camel@telenet.be> <874k3iwysf.fsf@gmail.com> <87pmm512uv.fsf@gnu.org> <87h76ccha7.fsf@gmail.com> Subject: Re: Hardened toolchain MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=81.3.6.162; envelope-from=kiasoc5@tutanota.com; helo=w1.tutanota.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" Reply-to: kiasoc5@tutanota.com From: kiasoc5--- via "Development of GNU Guix and the GNU System distribution." X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1651250036; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=BFYzBz6revp3YXIbyyRH4FY30a0RjooNmQTqSycwqoQ=; b=h24waBfnhvSP1TycXrGLRkV77U/Cqt0KWmtcmvjojRgSFuM8vcuBVd8coSMUfWx88vuSzF Vi5Z/zw2t7qbC+fPtY5FL6xtsw9/ukAWIJwou5+KcVIkR2QiweUWP1P58V1DjhGvyjppzi LOyaoPE/27L3QzVM7IjoQ652tK9NR/y4YKxjxXS0LFNET7qbvFuqZGgnhIMM1GDiaYwiWD iMGIGfbCx6eGKc9yuh5iH+sYwgygiT6MOvR4ncMF5YXrgh7xr2JDn1PQhghI6MfD/Z+6VB ymWoLAHstESjrPbjfArY5d+LmrMzm+x+N58xYhKVWH8WMsfg0aVnwNCNBCcW3Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651250036; a=rsa-sha256; cv=none; b=h8TYm9hxE6pCVoffuGE3qdouu0Y6pyvck2OPoz9tSn5w+FE54unubEDsO1yhdpUQMMb2K/ AaXPAbnE2oaQ7orhHD7JI6mpove3d7Gh+kCIzqtOyWx6H8n3wSIuqKeZGQyoMiz3o8EURs PorIJcnbZuQiHMZruxEudk2fIun4Lb2pdDamLQpoMqw1zJkXHz+ObTg38JdYesfM/1D15G 7TRBAQgkPlkkhJXBls+8ZFmn2fauzb4NobZrLKVZ93nj9V1EaOLn+ed4HggoMNBwvLGuOC gcPPH/QQz0wXZyuQJWndmt6r3BYL+ytiLsVQOb4oDipEwiPkX5UE3qkCVPgYyQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tutanota.com header.s=s1 header.b=WaenKhPV; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.80 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tutanota.com header.s=s1 header.b=WaenKhPV; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: E89DB2E29D X-Spam-Score: -1.80 X-Migadu-Scanner: scn1.migadu.com X-TUID: Y0Hq1AJeRMFj Apr 29, 2022, 10:31 by zimon.toutoune@gmail.com: > Hi, > > On Tue, 29 Mar 2022 at 12:15, Ludovic Court=C3=A8s wrote: > >> Stack smashing protection (SSP) may incur measurable run-time overhead >> though so enabling that one by default may be less consensual. >> > > That=E2=80=99s true and it could be an issue for HPC practitioners. Howe= ver, > quoting Wikipedia [1], for what it is worth: > > --8<---------------cut here---------------start------------->8--- > All Fedora packages are compiled with -fstack-protector since Fedora > Core 5, and -fstack-protector-strong since Fedora 20.[19][20] Most > packages in Ubuntu are compiled with -fstack-protector since 6.10.[21] > Every Arch Linux package is compiled with -fstack-protector since > 2011.[22] All Arch Linux packages built since 4 May 2014 use > -fstack-protector-strong.[23] Stack protection is only used for some > packages in Debian,[24] and only for the FreeBSD base system since > 8.0.[25] Stack protection is standard in certain operating systems, > including OpenBSD,[26] Hardened Gentoo[27] and DragonFly BSD. > --8<---------------cut here---------------end--------------->8--- > > Anaconda (science package distribution) compiles their packages with a vari= ety of security flags. These include PIE, SSP, fortify, RELRO, NOW. https:/= /www.anaconda.com/blog/improved-security-performance-in-anaconda-distributi= on-5 > Well, I miss if Guix is built using this =E2=80=99-fstack-protector=E2=80= =99 flag; or > whether it is included by default. > Are /any/ build flags used by default? I think right now only an empty lis= t is used for makeflags by default. It also depends on the configuration fo= r gcc and binutils, they can be set to enforce SSP and others by default. > Cheers, > simon > > > > 1: >