From owner-svn-src-all@freebsd.org Wed Nov 21 02:20:27 2018 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8A765114655F for ; Wed, 21 Nov 2018 02:20:27 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 949F48FD49 for ; Wed, 21 Nov 2018 02:20:26 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: by mail-wm1-x32b.google.com with SMTP id r63-v6so3962069wma.4 for ; Tue, 20 Nov 2018 18:20:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hardenedbsd.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=19QkhDYDGJ4nqMZ9CrYjqKCJJmb/l6762AFXa3fJH9E=; b=ISt0CFTj8WTBFP9+QW4R/iUkbXtOpVcY2WVJETHLre7FS7Khf1HtJxpimPVyFJ+YvU FCvNlcgY6ZGVod/X1Odapc/Ki+XVO229Ypzsw8NbMs6og6ehfdd2z7xO6LvNhSy2xD0I V8jozqovSLdpAUiK16m7gtGfS/ds3HkdENzEL1s+r3YBY4n9I5SbWvoN5TG+LWynKrZt XWntnq/M1KAyvk+N89ApcFaUhTZIyZrAyHwysnNT4UkNmLCmWsJmzJaZtT0zrld9ZkpT yOp5CiPrEnlATSTKbmt1EeCxBxvhmYsB9QtJ5E8xMkTqh2ActSPsiRg36/RPKJDYk1IK rJYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=19QkhDYDGJ4nqMZ9CrYjqKCJJmb/l6762AFXa3fJH9E=; b=JENF2apWJEIfc87u0aqCEgFSm9x7tzsjk4RZ0yrqy+yAhmnJClwo9Cz3Jalah+Ejwx QE3s6/4i76KwpnrLheBJ4wEU9PCVq+1aw2LbOyKiI8BhYmPDsXS1bNOPnBubb03to5qk 40xbJDOaNRbpS5/8qyi45I/n13JbCFhgUscIZAmiYuTA35vKiPe/S9fU4qoNUXB5Jecf a1zDE7/XG+Bk/XHpbcCmViJoKCCBTmG0C1yeKQP4zcvA6phH5AdQCsEjHLs/vkPAMG8O yoeticx0LQMVzsGv7/7ImlA26wqkHT5qjwzXKULaJzu5xvXhdJ9+cS4CtSTnnxBLSjOc VQ1A== X-Gm-Message-State: AGRZ1gKmqNMHWZ+e8T0LNu9YA9U8FDdcftF1VOliopmX2oT+fAV+4j8a s+BNah+biIPTNcsdEU+xzAa3A0TKmzeQ+w== X-Google-Smtp-Source: AJdET5fYNDOANIhUOXMKs6EgA7Dk+OBwDBcqRhdvpI91DFD3jEu3HiE83Kp/O8pkFiBdrlsz+ysOTQ== X-Received: by 2002:a1c:248b:: with SMTP id k133-v6mr3872465wmk.148.1542766825084; Tue, 20 Nov 2018 18:20:25 -0800 (PST) Received: from mutt-hbsd ([185.24.218.172]) by smtp.gmail.com with ESMTPSA id q20-v6sm25263237wmc.33.2018.11.20.18.20.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Nov 2018 18:20:24 -0800 (PST) Date: Tue, 20 Nov 2018 21:19:49 -0500 From: Shawn Webb To: Konstantin Belousov Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r339898 - head/lib/libc/amd64/sys Message-ID: <20181121021949.vk7u5mji375fsy7h@mutt-hbsd> References: <201810300011.w9U0BUui038857@repo.freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="v5kqyhyamip2vsp4" Content-Disposition: inline In-Reply-To: <201810300011.w9U0BUui038857@repo.freebsd.org> X-Operating-System: FreeBSD mutt-hbsd 13.0-CURRENT FreeBSD 13.0-CURRENT HARDENEDBSD-13-CURRENT amd64 X-PGP-Key: http://pgp.mit.edu/pks/lookup?op=vindex&search=0x6A84658F52456EEE User-Agent: NeoMutt/20180622 X-Rspamd-Queue-Id: 949F48FD49 X-Spamd-Result: default: False [-4.04 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(0.00)[+ip6:2a00:1450:4000::/36]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[hardenedbsd.org:+]; MX_GOOD(-0.01)[cached: alt1.aspmx.l.google.com]; NEURAL_HAM_SHORT(-0.97)[-0.971,0]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; IP_SCORE(-2.46)[ip: (-9.03), ipnet: 2a00:1450::/32(-1.58), asn: 15169(-1.58), country: US(-0.09)]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; R_DKIM_ALLOW(0.00)[hardenedbsd.org]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; RECEIVED_SPAMHAUS_XBL(3.00)[172.218.24.185.zen.spamhaus.org : 127.0.0.4]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[svn-src-all@freebsd.org]; DMARC_NA(0.00)[hardenedbsd.org]; BAD_REP_POLICIES(0.10)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[b.2.3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; MID_RHS_NOT_FQDN(0.50)[] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Nov 2018 02:20:27 -0000 --v5kqyhyamip2vsp4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 30, 2018 at 12:11:30AM +0000, Konstantin Belousov wrote: > Author: kib > Date: Tue Oct 30 00:11:30 2018 > New Revision: 339898 > URL: https://svnweb.freebsd.org/changeset/base/339898 >=20 > Log: > Convert amd64_get/set_fs/gsbase to ifunc. > =20 > Note that this is the first use of ifuncs in our userspace. Hey Kostik, It appears this commit broke building/linking libc with LTO. I'm running into this assertion from clang/lld 7.0.0 (from the projects/clang700-import feature branch): https://github.com/HardenedBSD/hardenedBSD-playground/blob/hardened/current= /cross-dso-cfi/contrib/llvm/include/llvm/Support/Casting.h#L255 I'm likely going to file a bug report upstream in llvm. I'm wondering if lld doesn't support mixing ifuncs and LTO. Thanks, --=20 Shawn Webb Cofounder and Security Engineer HardenedBSD Tor-ified Signal: +1 443-546-8752 Tor+XMPP+OTR: lattera@is.a.hacker.sx GPG Key ID: 0x6A84658F52456EEE GPG Key Fingerprint: 2ABA B6BD EF6A F486 BE89 3D9E 6A84 658F 5245 6EEE --v5kqyhyamip2vsp4 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEKrq2ve9q9Ia+iT2eaoRlj1JFbu4FAlv0wL8ACgkQaoRlj1JF bu5AqBAAtZ0R+MwC6p5ufuDk+gUGjYxTQkHqnf4wTWZ4Vu+AfxOqNe5MS+mNbMhQ xJqJ4TM8+lKXwx85WcS1+l4tlGUxDGiNPRDZKEl6QHJDElgBeFUR0YUZuzsePitD dkUeb4GOVp7cn6TYiwn4rduvWBzis+IBDHOe2M+TcIlE//Jy+B+3N9PbUh/pASp3 KiTjnvH5fpXsJ+QYGug2L1Cw45gONpmWvZutEYpPWD5bp/GwLaKSDnJvnsbBs8HA djcQuKiVVSLSeg6q0tNBUrR4hHGG9GQ0cs/T/F7tNBqjIprF0U+8lLCsmvEHuD7C Af4RPX2tS5WZ7pYr0DcDkBRRINsNY6k3O8uWz/vpal2NufkqHKvwfuggj/PVEysz WQ77LS8p1dEt8qVhD0ek1joD28e0fvuUvEhWjOxZxj0VN9I3cTHPfsuitli8oxMY sL6e5BvgWRnW5VWortLC8jLTuRLORydEiwtzaZj9IdEEgjQAy7ANthfAk+HQe9/A ACAgtiObkFXbLcoz+E+YxfWa66tZxVNfLnwWyFov5DLyz71uNdzVPUhZTVdzmYjw OJnHyLBUtfjF6fcELHjr5IgUi8H6WfN9rBxc6SHxt1+6rWv8zPrL03HpBKgC3NaZ J3if1t4Pn6hpDlC1FjrkPLqu2z5zbJnZfUCHNHz5Nf9tVF8efK0= =njfv -----END PGP SIGNATURE----- --v5kqyhyamip2vsp4--