From owner-freebsd-current@freebsd.org Fri Feb 26 18:34:08 2021 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6CB5154A69E for ; Fri, 26 Feb 2021 18:34:08 +0000 (UTC) (envelope-from gbe@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DnJG82fX9z4hsq; Fri, 26 Feb 2021 18:34:08 +0000 (UTC) (envelope-from gbe@freebsd.org) Received: from localhost (p200300d5d740b9896d069cdace2dee6b.dip0.t-ipconnect.de [IPv6:2003:d5:d740:b989:6d06:9cda:ce2d:ee6b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: gbe) by smtp.freebsd.org (Postfix) with ESMTPSA id EC00A3318; Fri, 26 Feb 2021 18:34:07 +0000 (UTC) (envelope-from gbe@freebsd.org) Date: Fri, 26 Feb 2021 19:34:03 +0100 From: Gordon Bergling To: Ed Maste Cc: FreeBSD Current Subject: Re: HEADS-UP: PIE enabled by default on main Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="N5TZ0lfI0IglflPV" Content-Disposition: inline In-Reply-To: X-Url: X-Operating-System: FreeBSD 12.2-STABLE amd64 X-Host-Uptime: 7:32PM up 11:22, 1 user, load averages: 0.22, 0.25, 0.21 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Feb 2021 18:34:08 -0000 --N5TZ0lfI0IglflPV Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 25, 2021 at 03:58:07PM -0500, Ed Maste wrote: > As of 9a227a2fd642 (main-n245052) base system binaries are now built > as position-independent executable (PIE) by default, for 64-bit > architectures. PIE executables are used in conjunction with address > randomization as a mitigation for certain types of security > vulnerabilities. >=20 > If you track -CURRENT and normally build WITHOUT_CLEAN you'll need to > do one initial clean build -- either run `make cleanworld` or set > WITH_CLEAN=3Dyes. >=20 > No significant user-facing changes are expected from this change, but > there are some minor ones. For example, `file` will indicate that > binaries are PIE by reporting something like `ELF 64-bit LSB pie > executable` rather than `ELF 64-bit LSB executable`. Also, for most > workloads no notable performance impact is expected. >=20 > For almost all ports this should result in no change. There are a > small number of ports that use base system /usr/share/mk > infrastructure and thus inherit the base system default, and some of > those initially failed to build. Those found during an exp-run in > PR253275 have been addressed or have patches waiting. >=20 > Please watch out for any new issues after you next update the base > system and/or ports, and report issues via a Bugzilla PR or in reply > here. Thats a huge step forward in terms on security. Thanks for the efforts and anyone involved. --Gordon --N5TZ0lfI0IglflPV Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGTBAEBCgB9FiEEYbWI0KY5X7yH/Fy4OQX2V8rP09wFAmA5PxtfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDYx QjU4OEQwQTYzOTVGQkM4N0ZDNUNCODM5MDVGNjU3Q0FDRkQzREMACgkQOQX2V8rP 09w3vAf/QMMXS//HKi/CVLUpki2+X8WDsDLDHT87yVPPuPXzPfodjBTn4Eb9ZYD7 5e3lRd+wB6pUQbnSQN/GsyTxjRldFOLjkRtqQ50RTApOk0AYUctfZXoD9DRobc8T cxfwRDWa33v999yMC0XZF2TUnSNFZ/GMCRH/4F/JQK1WITlSGfIAxXDtd5jRZIUN DpXqx+rU/r7Y6Sfr3sVx1nJxrBK9uTaBq6a+LiQXzO83KUbu0a2rcR/hoNsJ0jM/ N7wI+ma8hr9OlYn/eUqidq2VHQYhAs6h11ci7uqsGEb/bgiSnzuM6FkGFTeyuj6R K9uhNAKdWPE5/Y/+Bx4jYyWqnHLfAA== =v6tF -----END PGP SIGNATURE----- --N5TZ0lfI0IglflPV--