From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id sEZbIapsQWJmwgAAgWs5BA (envelope-from ) for ; Mon, 28 Mar 2022 10:07:06 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 4MAEHqpsQWJ5hwAAauVa8A (envelope-from ) for ; Mon, 28 Mar 2022 10:07:06 +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 166399C26 for ; Mon, 28 Mar 2022 10:07:06 +0200 (CEST) Received: from localhost ([::1]:47730 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nYjxw-0003HN-6E for larch@yhetil.org; Mon, 28 Mar 2022 03:39:04 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42654) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nYjwT-0003Da-8G for guix-devel@gnu.org; Mon, 28 Mar 2022 03:37:33 -0400 Received: from [2a00:1450:4864:20::433] (port=46066 helo=mail-wr1-x433.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nYjwR-0000yP-KP for guix-devel@gnu.org; Mon, 28 Mar 2022 03:37:32 -0400 Received: by mail-wr1-x433.google.com with SMTP id w4so19000468wrg.12 for ; Mon, 28 Mar 2022 00:37:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=NWkmoIXm3SskQxOqL/rCMxPTM1TvwZLBNGZzJJdnd5k=; b=okGK1suK9sF9epXHhAPtz5gjdzPJxsIWgf/A8ZFGihYu3B3Vv2RYzEs9PvXl7WlX60 blmvXgiV1xudSXFAEb4MBc9h4O93Chx5lxS/WY7fZKTF5Mai5nn/VCmzFZgbBrlhgBzt WHlRbxr0XVzwezMaH3g9XMeDtHxNhDY4DzpRDGn3D+XvqkUGOYKnISK5YrhiA2xJYt0w Xhx3q4tB+XgBBtGGXMqC1PwC6NIoWvoROouoVd2pzRXiM+2rmp+mDVNjJadaiNrvzL9r z4jYXcso+zFObpEAFJ77tu/KCFcHkgiQhzvmjv1P9OBrLMb6YMGYMBEXK5g+FT6u/7br zqyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=NWkmoIXm3SskQxOqL/rCMxPTM1TvwZLBNGZzJJdnd5k=; b=5YopnNNqDIOJpfrz95ejL27oAtpK5mHLPm+oApcbfFEaOkM3jSjrbUb4xQpK0XrkR7 fWWmCKa9EmHUdTqTxYJHLvLn8jmaJZjXST3irsHMdu0horH4p4CC2zMQwds/vtDGUGI0 PWHX4XkhduFU027UzQY/15hdVhl6hOzkfkqV+f3UgoK7sghqBmMfwY5f0ZhNzXa2z/ov wrDmIsm+kNvzd+bDBPdxRTUtmeDdFRiGYBVtcbNahp1qX64GSb8XKUhJIRgxogIWu/jb 4pQ+w8/8M2CaKk74U67Tpjry09qF/PlBXgc3MFz7+Oy8r4IlL61TVk739dlK2iZqFdBB hlAg== X-Gm-Message-State: AOAM533n5fbrhMxYR18T5IsBiM0m05tByfi+QUrMMrKWMvoLbmeo/xs7 8MI58BsVLroNitwbl47hdMbyCyqdY38= X-Google-Smtp-Source: ABdhPJzkulD+1+Xhvcii+1xhOomeeSADrl99LvwJVCO+hy5MxIqHNbG/N5tA9paObH/JN6z2DSWI7Q== X-Received: by 2002:adf:ffc9:0:b0:204:195:4ab0 with SMTP id x9-20020adfffc9000000b0020401954ab0mr21628925wrs.561.1648453049230; Mon, 28 Mar 2022 00:37:29 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id p23-20020a1c5457000000b0038c98c12ea9sm10934303wmi.1.2022.03.28.00.37.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Mar 2022 00:37:28 -0700 (PDT) From: zimoun To: Maxim Cournoyer , Maxime Devos Subject: Re: Hardened toolchain In-Reply-To: <874k3iwysf.fsf@gmail.com> References: <874k3r8m4m.fsf@gmail.com> <8464b1bff3acb0a84f46ea6dcbbeaa7045b03d1c.camel@telenet.be> <874k3iwysf.fsf@gmail.com> Date: Mon, 28 Mar 2022 09:35:41 +0200 Message-ID: <86a6dattpu.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::433 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::433; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x433.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 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, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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: , Cc: guix-devel@gnu.org, kiasoc5@tutanota.com Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" 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=1648454826; h=from:from:sender:sender: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=NWkmoIXm3SskQxOqL/rCMxPTM1TvwZLBNGZzJJdnd5k=; b=ThZ7/sInvJ20teVdLiHu6appE1Q/fTVcHGrdzi7sumRIPcpqwFti/lCaNMllNyihMPA2rf Kh2FZnbuSAJw7wrEqZduasqxgqqn/tiXlDdy/JTwGovb67ABXbToqnnGmog2h6cjHsfKqT cFlRRoAUkUflFFUVEocg0Kbp6AjvSIGxIiCX1Up623ylX4Ey5Ul7SHZ91CjLZd3NTVW2a4 WDBZXlEJvMYIQT/qz1pC77jM/bMZDUxHOEBcJxxc3+4wGJVTzgDCay2V8dhpeC2sqyxCAV REqbvBsWZHVUfYuER3trgeH+dw9/wG3AWCxA+pbKvpyn3rTnEBCvpDQwpz2eDw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1648454826; a=rsa-sha256; cv=none; b=eNwQsaDdKZc8s/7IJN8BzKlxGI31WDG2Iz/WcfiKeefnzz6f6Rtl8SH3IsHUWyiFZdufuz t+/J5PMXAhGxaIjz96AQHEH/EIBCxdRF6yiT0WEnMWYaOfVoTNTkZ4WyGGBM9Au4OGh3rj uyylJIuWWL1J3C56WJQbAyfXU53kiwwCWeWuETFfacQagvROnvNkLxnOlMxsHijr9lw0zP yC/BWjwPOEsr6ettbN69PkYgn2PyGqIrcaRQjWDNMhJl5y0wBSjkHRKs2bR81KZ4CJXxnb MMLqm5kH+PzseRRw/C73nDJH/+Hek6AfzcQu2YmCkoEtFZ0gP6kZfri3wZkkcQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=okGK1suK; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: 7.63 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=okGK1suK; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: 166399C26 X-Spam-Score: 7.63 X-Migadu-Scanner: scn1.migadu.com X-TUID: mGbWvL1ucuo6 Hi, On Sun, 27 Mar 2022 at 23:17, Maxim Cournoyer w= rote: > Maxime Devos writes: >> I think it would be a lot simpler to just add this to the 'standard' >> gcc configure flags, in (gnu packages gcc), given that probably the >> idea is to do this hardening for all packages? Needs a world-rebuild >> though. > > +1. The whole distribution can probably benefit from this hardening. (Parenthesis, the initial question is about how to create a custom gcc, somehow whatever the options are about, and my answers are in this direction and not in supporting directly in Guix some variants or even create a new upstream . To me, that =E2=80=9Ca lot simpler=E2=80=9D is ort= hogonal. :-) Closing parenthesis.) Yes, for sure, it can be a good idea to follow the =E2=80=9CArch Linux=E2= =80=9D hardened flags. The two question I have are: 1. Is it well-supported for cross-compiling? 2. Do we introduce the hardened flags for compiling the hardened compiler? Other said, at which bootstrap level in the chain do we introduce these hardened options? Cheers, simon