From owner-freebsd-current@freebsd.org Fri Feb 26 19:32:29 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 1E27D54C5DB for ; Fri, 26 Feb 2021 19:32:29 +0000 (UTC) (envelope-from gbe@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 4DnKYT0FvMz4mrH; Fri, 26 Feb 2021 19:32:29 +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 7C0A63DAE; Fri, 26 Feb 2021 19:32:28 +0000 (UTC) (envelope-from gbe@freebsd.org) Date: Fri, 26 Feb 2021 20:32:26 +0100 From: Gordon Bergling To: Konstantin Belousov Cc: Gordon Bergling , Ed Maste , 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="0aKDmc0T7z5bRVAk" Content-Disposition: inline In-Reply-To: X-Url: X-Operating-System: FreeBSD 12.2-STABLE amd64 X-Host-Uptime: 8:28PM up 12:18, 1 user, load averages: 0.39, 0.29, 0.26 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 19:32:29 -0000 --0aKDmc0T7z5bRVAk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Feb 26, 2021 at 08:57:55PM +0200, Konstantin Belousov wrote: > On Fri, Feb 26, 2021 at 07:34:03PM +0100, Gordon Bergling wrote: > > 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. > >=20 > > Thats a huge step forward in terms on security. > Can you explain why? >=20 > Thanks. I can try. Enabling PIE for every 64bit architecture is in that matter a st= ep forward in security as it enables ASLR for further adoption. Thank You, again. --Gordon > > Thanks for the efforts and anyone involved. --0aKDmc0T7z5bRVAk Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGTBAEBCgB9FiEEYbWI0KY5X7yH/Fy4OQX2V8rP09wFAmA5TMpfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDYx QjU4OEQwQTYzOTVGQkM4N0ZDNUNCODM5MDVGNjU3Q0FDRkQzREMACgkQOQX2V8rP 09xi1Qf/bzXv5q8UON5FW5fLatZSuOCE5oH1iD5/Sp80R917R6CimMO9Ofd/lcnL Yedtu6MK7WgK5WYf/nTtuOv5pesvcMTWhJo6dqjBJanynlcKx2Lt79fwV1LNn6O/ 6hPlWiTO5CvH16zgkLBpSq0dLlU4GUHlgZKwv8ysDui5Ye29a5C7NdO3WLz0Bcqs CBfgEz9cEjFiILrcp1HcREhdEGGWw5AsekocDT17P3cicNcQaH6XhhoCb8cchRj8 3L3ioN4fSntDkIwKiSIDiAKsC5//6cW5FQ0FfpcNyA+rJPOyDQanXl80Wmh3bucf LNn0VsSHm2JqVAuY6NKUo3NctXHJtg== =AHE4 -----END PGP SIGNATURE----- --0aKDmc0T7z5bRVAk--