From owner-freebsd-current@freebsd.org Thu Jul 28 00:15:17 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EF619BA7994 for ; Thu, 28 Jul 2016 00:15:17 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: from mail-qk0-x234.google.com (mail-qk0-x234.google.com [IPv6:2607:f8b0:400d:c09::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 93F271C9F for ; Thu, 28 Jul 2016 00:15:17 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: by mail-qk0-x234.google.com with SMTP id p74so49416519qka.0 for ; Wed, 27 Jul 2016 17:15:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hardenedbsd-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=DPhhB7Yr6h5inTJbH1HRfPeHQsRZlcdYtmV34SO5ENw=; b=dH4MwmeJljadtyNATGCzhRj6dZwS9nf57tbaL0ava2WFSQTPNN3SNAuv3Z2z1iq5wo Dj8cpCxPTyBdl/Ukh+rOAhk7qp+U6oJ12IhY9BmP0tA+CG0qryAkpJNPvao91A4zzdR7 PoaHq9Treyc9iyEf3I5VMVvB0G5tSUbHbVzANaw6y1Mvyhh/Y9YBPeMNfo0umLTFGeB5 MgowYQ8e2MtFVQwEXIM1LK/ni+9rTmkbV9T5VZlR3J6EpfQexB+bpXhx6hGzdtMpHcrC eeh5HnmSNlpEoQxsiRD/3I0R5Qe5p7nVJ5wHPtV6GsdBtzl7CrvYGIboPZIjHw0kaf51 /6RA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=DPhhB7Yr6h5inTJbH1HRfPeHQsRZlcdYtmV34SO5ENw=; b=UyFGwh7Wb1SnSWSZk+HYjAMUiHwjBSo4fawOGzjezBNUFZottIxXGnJsQGC9MmjIps IJ9GShQwYsDTZ75uarafNyt6YSWRE3AHuNdCZ6OtRIayDsLi0n7JDmC1X7N1zBLnQrnr t9opASthnShfv7vNVvLvBXmIbgg7RdnUwle1H013h04q+k6v0uyJlYXDl4mKTccv+SPe 4XHHAYip2+mSaNXO5InEGkujg1woCgr5b8yd9NpqO5VqbxPmFrIBYMkkak8jVwIrW9HZ g3STO45s+QI5emNVkIVXFw3JwivQ3Bfah+go7jc0lS25+OekPMlYDKnWrukPvZyq+AsH Qsxw== X-Gm-Message-State: AEkoouvn2UlbbllahqVtBLMYZDwjyuciiEkfeNCy07J1fQM19v5KvfSybbr2oOPHRa+v4VZv X-Received: by 10.55.44.134 with SMTP id s128mr38706411qkh.198.1469664916665; Wed, 27 Jul 2016 17:15:16 -0700 (PDT) Received: from mutt-hardenedbsd (pool-100-16-217-171.bltmmd.fios.verizon.net. [100.16.217.171]) by smtp.gmail.com with ESMTPSA id d190sm5749683qke.18.2016.07.27.17.15.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 27 Jul 2016 17:15:15 -0700 (PDT) Date: Wed, 27 Jul 2016 20:15:14 -0400 From: Shawn Webb To: Conrad Meyer Cc: freebsd-current , Ed Maste Subject: Re: SafeStack in base Message-ID: <20160728001514.GI13428@mutt-hardenedbsd> References: <20160727225527.GG13428@mutt-hardenedbsd> <20160728000530.GH13428@mutt-hardenedbsd> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="LQAwcd5tHl0Qlnzi" Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD mutt-hardenedbsd 12.0-CURRENT-HBSD FreeBSD 12.0-CURRENT-HBSD X-PGP-Key: http://pgp.mit.edu/pks/lookup?op=vindex&search=0x6A84658F52456EEE User-Agent: Mutt/1.6.1 (2016-04-27) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.22 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, 28 Jul 2016 00:15:18 -0000 --LQAwcd5tHl0Qlnzi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 27, 2016 at 05:11:12PM -0700, Conrad Meyer wrote: > On Wed, Jul 27, 2016 at 5:05 PM, Shawn Webb = wrote: > > On Wed, Jul 27, 2016 at 05:02:07PM -0700, Conrad Meyer wrote: > >> The problem appears to be an upstream limitation of > >> -fsanitize=3Dsafe-stack: "Most programs, static libraries, or individu= al > >> files can be compiled with SafeStack as is. ??? Linking a DSO with > >> SafeStack is not currently supported." [0] > >> > >> That probably needs to be addressed upstream before it can be enabled = globally. > > > > Gotcha. If I'm reading correctly, then, SafeStack can only be enabled in > > bsd.prog.mk (and _not_ bsd.lib.mk). Is that correct? >=20 > That is my reading of the page. I'll admit my total experience with > -fsanitize=3Dsafe-stack is limited to glancing at the web page 5 minutes > ago, so don't consider my take authoritative. Doing a test build right now with SafeStack enabled only in bsd.prog.mk. I'll report back with results tonight or tomorrow. Thanks again, --=20 Shawn Webb Cofounder and Security Engineer HardenedBSD GPG Key ID: 0x6A84658F52456EEE GPG Key Fingerprint: 2ABA B6BD EF6A F486 BE89 3D9E 6A84 658F 5245 6EEE --LQAwcd5tHl0Qlnzi Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXmU6RAAoJEGqEZY9SRW7uUXoP/0WJX7Mp3MP5NLhlBRd9rTMM wvW4Tlg7idvKqBibZs3pO6p4UbH1NdxcfKoIFJ+2TvV8CKS8uTA/3jTIDjpT0CWB wg7aSGQRaHbrcBCWEWY3RT9uYjYrhBnS0txFZ6e/7Ki6+vDUoCLt2gTz3g1cyW9I XHVbtUHRKLQa21rAg4OQe0YInmFh/H+p1ndObn7KSGosWq8vJk4qhVmpxs06seTk iKxiJ0HiXqcFuyOIRwVlBb9w48lylHcqcQxlbkiTcXST5VR+cuyl88GAt5gj0Imb cnjP9pqVhBBfX2msP2w5G7tBJKZf8jIZ3YCqNj1xrmqDa5JKQS1dSAIIYnHvvGsP 6GfU9YpYOt8ixMCFEQvY5SeaqOtq0Mqp8S0EnZuDrN/f8SqaniLmkprh2DEF1mQK IeGE3x2oO2Re8xuLD5Tlo/gBbuCki5nKS4zlfNhmHFYexauYxqyrKL3OBPgfpSL9 fhRsU7+6ATB6Z8wLmSGv+sGNh8TBc8BA5LyVNfAHrznT/2QjoXyalvf1lesdI4eE RyBe+SOYn0qzOF+cMVroVPAnTF1e/9LzNBiX/epSoLBXSGgAcXJXiRlCFHFgC5ZD 3ZaaDVWF1qIkoDDZWZliRDHFMyCkDrP7hQqUsrb/zut8yoU/FxJtrG/FQhS5zIPu H3xrltLKxwmNiaeyzYjk =VzMH -----END PGP SIGNATURE----- --LQAwcd5tHl0Qlnzi--