From nobody Mon Apr 15 14:06:17 2024 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VJ8985whYz5GfSF for ; Mon, 15 Apr 2024 14:06:20 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: from mail-il1-x12c.google.com (mail-il1-x12c.google.com [IPv6:2607:f8b0:4864:20::12c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VJ8983qf6z4YN2 for ; Mon, 15 Apr 2024 14:06:20 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Authentication-Results: mx1.freebsd.org; none Received: by mail-il1-x12c.google.com with SMTP id e9e14a558f8ab-36a118d3b30so20193005ab.2 for ; Mon, 15 Apr 2024 07:06:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hardenedbsd.org; s=google; t=1713189979; x=1713794779; darn=freebsd.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=7LD6uTjGt9XkuWOpfEzItCjnkZNNlJhd00ne+FhfOI8=; b=NiE/eesceuRboKqLtGcfkUEbAb/NbXFGuOcecbOfmr65p77m5gBD6rOP1o5lE4v2PL YBAslXALyaT0Gk6Mn2VInzgYysRYvKiIteKw3QJflSHlt9Jv+9CVwQC++RI1xrKMGMve xMU+hd2DgAIjTT866Ty6QMKdgh2GzR2ivTyLJCNEiU4NBOoe7lMnVLu/1CIkTGODzogL HAi22tZvCR/VPa3z7W+keSCthaNT93GzLDI1hSur97Flg3bPzXQz410t3Pv9lpb1xts+ M+Grto8F6x4xwSkUQqMLtRX2PravzmM2AyAJpt8Nqok2apdL4hD75bd6ZK4U3FD6rGYF WtHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713189979; x=1713794779; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=7LD6uTjGt9XkuWOpfEzItCjnkZNNlJhd00ne+FhfOI8=; b=NoqFEjAF0KpaLLFYUBJA+MQq8lbbjz21BqYoLXoYxlhV5tT7GnFkm0bdiacFAcc2Na Fh6i0skKz9L3LcjRTtU1oZNu2svccYjIgdA0eLncBNCFHg1ouKl1QQSHMFek6Z71qzBU bzX9o9zV9S4Nbd2uKGewazaPbWNR6bENK0f5z5t6sHaBxcLdB4xSAJDHAlTr0daijDAS bFqxBBH2MbCZw/NrMRzbVkpHYvldvQNvzZ6E3+KMIrLVdvnVXIzJ1OWRc6mAvTaoIkN3 Uof5K9/yQaYX8AkMDNCYJnBA3pRDz1hwK9mZ/8ir1K+VNbsgYE1Zh/kKB5X/LvBHVhcs iI7w== X-Gm-Message-State: AOJu0YyNJFn7W1ERa3N8JrXlNyfMG5cn6t2tU40VqG9j+xqVO1CRLngT RHa6lvPEQo2Yh+0ZXvhhew3s/kfs9Y8D/IF+F/HQ4IqKMa8SRHL1Y9T90essl4JyxX2qbXlIc21 1 X-Google-Smtp-Source: AGHT+IHAjx+iACXFwGtsJrLGtelnpB7UC3lmnbcL19MiaNvRJ3hvtNzGEvqolMGm34LUYQR8j2nN+w== X-Received: by 2002:a05:6e02:1609:b0:36a:2934:a8e5 with SMTP id t9-20020a056e02160900b0036a2934a8e5mr11505733ilu.9.1713189978797; Mon, 15 Apr 2024 07:06:18 -0700 (PDT) Received: from mutt-hbsd ([184.99.37.29]) by smtp.gmail.com with ESMTPSA id s15-20020a056e02216f00b0036afaeb2c95sm2658587ilv.50.2024.04.15.07.06.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 07:06:17 -0700 (PDT) Date: Mon, 15 Apr 2024 14:06:17 +0000 From: Shawn Webb To: Jamie Landeg-Jones Cc: freebsd-hackers@freebsd.org Subject: Re: Question regarding crunchgen(1) binaries Message-ID: <7lmqszm7n35b5jitwvzagmlc2lecl6p3dhu2bnhri4unnjtlow@f5txrntbo7yw> X-Operating-System: FreeBSD mutt-hbsd 15.0-CURRENT-HBSD FreeBSD 15.0-CURRENT-HBSD X-PGP-Key: https://git.hardenedbsd.org/hardenedbsd/pubkeys/-/blob/master/Shawn_Webb/03A4CBEBB82EA5A67D9F3853FF2E67A277F8E1FA.pub.asc References: <202404150105.43F15VoL068210@donotpassgo.dyslexicfish.net> List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="4fnylkubg4nkpsqf" Content-Disposition: inline In-Reply-To: <202404150105.43F15VoL068210@donotpassgo.dyslexicfish.net> X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4VJ8983qf6z4YN2 --4fnylkubg4nkpsqf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 15, 2024 at 02:05:31AM +0100, Jamie Landeg-Jones wrote: > Shawn Webb wrote: >=20 > > 1. Enhance crunchgen(1) to support libc built with LTO. > > 2. Kick crunchgen(1) to the curb. > > 3. Other ideas from the community are possible. > > > > Does anyone find crunchgen(1) to be truly useful in 2024? If we kick > > crunchgen(1) to the curb, we need to modify the build system for > > /rescue binaries. >=20 > Please note, my response is not considering the security aspects you rais= e, > and is only based on the usefulness of /rescue itself. >=20 > Do you mean get rid of /rescue, or just getting rid of crunchgen producing > it? I recognize now that the way I phrased things left room for ambiguity. I apologize for the ambiguity. We do indeed want to keep /rescue around. I still have the occasional use for it, as do many others. The only thing that would change would be that the applications in /rescue would be regular statically-linked executables. We would stop using crunchgen(1) to produce those executables. >=20 > I've been "rescued" by rescue on more than one location - usually systems > that won't mount /usr and also have a screwed up lib. >=20 > I wouldn't want to see a static /rescue disappear, and the size would pro= bably > be too large for individual binaries. There are around 148 files in my 15-CURRENT/amd64 /rescue. The size would likely baloon quite drastically. I think I will likely determine the level of effort to fix crunchgen(1) to work with LTO-ified libc. I might base my decision off that. Meanwhile, if anyone else has any info to pass along that could help in this journey, I would very much appreciate it. This touches bits that have a lot of history, and this is definitely a blind spot of mine. Thanks, --=20 Shawn Webb Cofounder / Security Engineer HardenedBSD Tor-ified Signal: +1 303-901-1600 / shawn_webb_opsec.50 https://git.hardenedbsd.org/hardenedbsd/pubkeys/-/raw/master/Shawn_Webb/03A= 4CBEBB82EA5A67D9F3853FF2E67A277F8E1FA.pub.asc --4fnylkubg4nkpsqf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEA6TL67gupaZ9nzhT/y5nonf44foFAmYdNE8ACgkQ/y5nonf4 4fqqKQ//Y8RShCks4+t6k4HHpLCDn1zYMGa+QCQihbdnabWysDanLudtXLg8l91O QhLAlqwo7HKRwB7TwwORSlLR0XxgGxvK0xjIdQ3nRvV/IopXFmfVEMU/adjsiqZI qjHrkHCn5ws225DtaKOCdkDobNG6WZJsmpbmFQT0kSccZUn0WVqGpJ9i9g4fWS0t +OwAlVanCzokFeN0TJKLA752eSji5chTX+OcErt4OhsPoRteF6dBXHI8a7fkcATC cQXpvgUVpl/NPnY6t9ZNVfLuuFDGJjUmNdmwrzwWjmANynfs+iDi1gfaTNQ0/fyE 3q1pIRCvk+bgcYDNOlePzQt/6T6o6CCEehwlNOjvdn7bHOQwRuC0JKlWzWL4lHIZ 54U6Db9PmOQ9c8Vd/nVLUv/ffRA9zyi/Fbt3Bxa82xh5nnBH5sh6DSy7PgJ/d+S1 Pk2XdWPDAc6EzSx879QMhM9kDmY1z8kbvZX2Auwa+adWkb3szKkIPPiv3poqqYfI iBoDg/HqMqNHSU48YEtJ4O74Rop7MvHRBEyNLPeZGZlTFvgElIQCAv4KUH8ggdM8 UiGYTHRXHfuEOg4VDgWj6FKTJEXJ8bY79HTOBhsWI4wuh9gwbrSdz/8q24mx64hk 0qjL7N3YUXDtZh4RwQd2SMJ/QpA0i+JnCI9Rd2bDnPrew33o04Y= =aG7e -----END PGP SIGNATURE----- --4fnylkubg4nkpsqf--