From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4449 Path: news.gmane.org!not-for-mail From: =?ISO-8859-2?Q?Daniel_Cegie=B3ka?= Newsgroups: gmane.linux.lib.musl.general Subject: Re: Re: Removing sbrk and brk Date: Fri, 3 Jan 2014 13:59:18 +0100 Message-ID: References: <20131221234041.GA13204@brightrain.aerifal.cx> <20131222184855.GS1685@port70.net> <20131223044609.GZ24286@brightrain.aerifal.cx> <20140102220302.GR24286@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1388753990 11699 80.91.229.3 (3 Jan 2014 12:59:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Jan 2014 12:59:50 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-4453-gllmg-musl=m.gmane.org@lists.openwall.com Fri Jan 03 13:59:58 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 1Vz4Lv-000553-DP for gllmg-musl@plane.gmane.org; Fri, 03 Jan 2014 13:59:51 +0100 Original-Received: (qmail 11344 invoked by uid 550); 3 Jan 2014 12:59:50 -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 11336 invoked from network); 3 Jan 2014 12:59:50 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=MO4s6lngakRilpn8/aemOii7BjJaEq3jWyhhcO6I+IA=; b=MG9ZuvW6hffBX9xMZZ9+JHt+xYGNBCuagJaQkILM/7pLMmGG9tEiA16lJ4drwtwhZ+ MiSLUyxfYHHauLWmUfJgLfkaqTbFkqZ7K4ll2lWb1TWL92eP4jPnUK7i6Y9ClyIQGLMT PwqCz787VbEI1dE0o1eBKwtHkffBSu9FgmYmyd1KpZvTTFiBmTfrngNvQW/+BkgNJYnt Tvwawtbujj4UPwExl7Kv5DHX0GKFDr5ca57Qo+SpBTiainSLOXY8G6WVvEkVI0jl2D9b XyIF6SosEfNjWSoe8q82A5PyxjASZ8XlKaWTzDb145dl9bBURDzKWqVSYymYJBk567w4 GQ0Q== X-Received: by 10.224.56.5 with SMTP id w5mr146088664qag.60.1388753978536; Fri, 03 Jan 2014 04:59:38 -0800 (PST) In-Reply-To: Xref: news.gmane.org gmane.linux.lib.musl.general:4449 Archived-At: 2014/1/3 Thorsten Glaser : > Rich Felker aerifal.cx> writes: > >> sbrk may be re-added sometime after 1.0 if malloc is changed to no >> longer use the brk (option 5 above). > > You may want to import omalloc (based on mmap malloc, written from > scratch by Otto Moerbeek) with lots of security features: > > http://www.openbsd.org/cgi-bin/cvsweb/src/lib/libc/stdlib/malloc.c > http://www.openbsd.org/cgi-bin/man.cgi?query=malloc > > It does assume that mmap() is randomised and NULs the result. > > bye, > //mirabilos Yes, I also wanted to suggest malloc from OpenBSD. This may be the right solution for musl. Daniel