From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4448 Path: news.gmane.org!not-for-mail From: Thorsten Glaser Newsgroups: gmane.linux.lib.musl.general Subject: Re: Removing sbrk and brk Date: Fri, 3 Jan 2014 11:51:32 +0000 (UTC) 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=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1388750732 9011 80.91.229.3 (3 Jan 2014 12:05:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Jan 2014 12:05:32 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-4452-gllmg-musl=m.gmane.org@lists.openwall.com Fri Jan 03 13:05:40 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 1Vz3VH-0000Uj-JB for gllmg-musl@plane.gmane.org; Fri, 03 Jan 2014 13:05:27 +0100 Original-Received: (qmail 21859 invoked by uid 550); 3 Jan 2014 12:05:25 -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 21851 invoked from network); 3 Jan 2014 12:05:25 -0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 15 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 94.198.62.204 (Mozilla/5.0 (X11; Linux 3.12-1-amd64 i686) KHTML/4.11.3 (like Gecko) Konqueror/4.11) Xref: news.gmane.org gmane.linux.lib.musl.general:4448 Archived-At: 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