From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4528 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general,gmane.linux.gentoo.embedded,gmane.linux.gentoo.hardened Subject: Re: yet another alternative libc Date: Thu, 30 Jan 2014 01:06:41 -0500 Message-ID: <20140130060641.GS24286@brightrain.aerifal.cx> References: <52E97075.4030306@gentoo.org> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1391062008 4855 80.91.229.3 (30 Jan 2014 06:06:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 Jan 2014 06:06:48 +0000 (UTC) Cc: gentoo-embedded@lists.gentoo.org, gentoo-hardened@lists.gentoo.org To: musl@lists.openwall.com Original-X-From: musl-return-4532-gllmg-musl=m.gmane.org@lists.openwall.com Thu Jan 30 07:06:56 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1W8km6-0004xB-CI for gllmg-musl@plane.gmane.org; Thu, 30 Jan 2014 07:06:54 +0100 Original-Received: (qmail 7626 invoked by uid 550); 30 Jan 2014 06:06:53 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 7618 invoked from network); 30 Jan 2014 06:06:53 -0000 Content-Disposition: inline In-Reply-To: <52E97075.4030306@gentoo.org> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:4528 gmane.linux.gentoo.embedded:4108 gmane.linux.gentoo.hardened:6146 Archived-At: On Wed, Jan 29, 2014 at 04:19:49PM -0500, Anthony G. Basile wrote: > Hi everyone, > > I just thought I'd let everyone know that I've built a musl stage4 > for amd64 and put it on the mirrors [1]. If you don't know about > musl, you can read about it here [2]. Its yet another libc which > aims to be a slim and fast. Glad to hear you're at the point of announcing this! > I've got a stage4 (kinda/sorta). It is not made using catalyst but > rather starts from a musl chroot and builds a new chroot using a > ROOT=rootfs emerge -ev @system technique. The scripts are on the > releng repo [3]. Right now there are lots of packages which do not > immediately build with musl. Mostly these are due to header > locations, gnu-isms, gnulib (which assumes way too much about > internal implementations) and at least one bug in musl or gcc > (depending on who you ask --- exit() compiled with > --stack-protector-all). The patches are on the hardened-dev::musl > overlay [4]. They are "quickies" and may need work if any are to go > upstream. > > A few points about the stage: 1) it doesn't use busybox for its core > utilities. I like a robust native development environment from > which you can build. 2) Despite the fact that the profile is under > hardened, it is still a vanilla stage. I'm working on getting it > hardened, but a few packages break when we turn on pie, ssp, relro > and/or bind_now. A few notes from our side (musl) regardinging your status for hardening: 1. relro is presently not supported in musl, but it's just a no-op (the relro range will remain writable after relocations) so it shouldn't hurt to turn it on. 2. musl doesn't support lazy binding at all (and won't), so whether or not you turn on bind_now at the linker level, it's always in effect. 3. We're interested in any reports of problems with PIE and SSP. The issue of SSP not getting initialized in tiny (configure-script-test sized) programs that don't reference __stack_chk_fail is known, but any other SSP-related problems would likely be something new we should check out. Rich