Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Nov 2005 12:18:26 +0100
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        Ulrich Spoerlein <q@galgenberg.net>
Cc:        Jason Evans <jasone@canonware.com>, current@freebsd.org
Subject:   Re: New libc malloc patch 
Message-ID:  <6861.1133349506@critter.freebsd.dk>
In-Reply-To: Your message of "Wed, 30 Nov 2005 12:10:17 %2B0100." <20051130111017.GA67032@galgenberg.net> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <20051130111017.GA67032@galgenberg.net>, Ulrich Spoerlein writes:

>I just read that mmap() part and have to wonder: Is it possible to
>introduce something like the guard pages that OpenBSD has implemented?
>I'd love to try this out and see the dozens of applications that fail
>due to off-by-one bugs.

Guard-pages are very expensive and that is why I have not adopted
OpenBSD's patch.

I would advocate that people use one of the dedicated debugging malloc
implementations (ElectricFence ?) instead of putting too much overhead
into our default malloc.

For all practical purposes, the options J, A, X & Z are the most commonly
used.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6861.1133349506>