From owner-freebsd-current@freebsd.org Thu Feb 25 20:58:28 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 6060F548F96 for ; Thu, 25 Feb 2021 20:58:28 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: from mail-il1-f179.google.com (mail-il1-f179.google.com [209.85.166.179]) (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 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DmlW73knLz3jpV for ; Thu, 25 Feb 2021 20:58:27 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: by mail-il1-f179.google.com with SMTP id d5so6192527iln.6 for ; Thu, 25 Feb 2021 12:58:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=E7wf+0tLYAzXSFe75SsNnmwG92Xr9osABfTXa7pC3yg=; b=OoAX7Ni7zeYO7gX7rv68FByOqfa3asjDvKF1rjnYomvsAU0sOk+EvAR0ts2/Snc+4c gwU2MTlD+p85uUYADRWNdQIW7gyoJNXtpkB85Zs9vAE9Ww1WYhfxztB+ctXdk/H2Pa2b P7tFXID+t3J0zYyN21P5pV/Pqt0mfWwwQX6BxW7l77BO/BYBgRMy9h3h6x/oROjI+heA zcIy7uwdzLJKq2h5hL8X40Li5eSHt6HvCb0eh6TaBQRIYulmilYYZDEgZS/lruep9ELS aoHtruzk3O9TT2ofXh/7TxcwOIXyRF2GGAnOVkXrqZ9J/C5j9ID3DLNwz6mSLMWrRSej DfzQ== X-Gm-Message-State: AOAM530DDYRGCZiXiwMZIZaWDUd+ZUNtkqvbzMveuXkr9qszcoay/m2K jsOXFGrUO093R/fSrY/u5OoqFFVecST4+W3Sl8P8wb1WiWaneg== X-Google-Smtp-Source: ABdhPJw98NvekMvJBHBGqbdRLJHwXlQDA4Nc9NN1rj6TiPLDSFi1ZBMAfyf4tohonVGx9oo7eVwIvAGTCPVNcRe5vt4= X-Received: by 2002:a92:c690:: with SMTP id o16mr4143875ilg.256.1614286705234; Thu, 25 Feb 2021 12:58:25 -0800 (PST) MIME-Version: 1.0 From: Ed Maste Date: Thu, 25 Feb 2021 15:58:07 -0500 Message-ID: Subject: HEADS-UP: PIE enabled by default on main To: FreeBSD Current Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4DmlW73knLz3jpV X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of carpeddiem@gmail.com designates 209.85.166.179 as permitted sender) smtp.mailfrom=carpeddiem@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17:c]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FORGED_SENDER(0.30)[emaste@freebsd.org,carpeddiem@gmail.com]; MIME_TRACE(0.00)[0:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[209.85.166.179:from]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FROM_NEQ_ENVFROM(0.00)[emaste@freebsd.org,carpeddiem@gmail.com]; TO_DOM_EQ_FROM_DOM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FREEFALL_USER(0.00)[carpeddiem]; R_DKIM_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[209.85.166.179:from:127.0.2.255]; RCVD_IN_DNSWL_NONE(0.00)[209.85.166.179:from]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.166.179:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-current] 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: Thu, 25 Feb 2021 20:58:28 -0000 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. 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=yes. 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. 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. 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.