Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu, 11 Jun 2020 00:33:02 -0400
From: Rich Felker <dalias@...c.org>
To: musl@...ts.openwall.com
Subject: Re: mallocng switchover - opportunity to test

On Wed, Jun 10, 2020 at 11:49:34PM -0400, Rich Felker wrote:
> On Mon, Jun 08, 2020 at 11:50:10PM -0400, Rich Felker wrote:
> > I just pushed a series of changes in preparation for upstreaming
> > mallocng. Before it's actually imported, it can be tested by
> > performing the following simple 4 steps:
> > 
> > 1. mkdir src/malloc/mallocng
> > 2. echo "MALLOC_DIR = mallocng" >> config.mak
> > 3. Dropping the attached files into src/malloc/mallocng
> > 4. Symlinking or copying meta.h, malloc.c, realloc.c, free.c,
> >    malloc_usable_size.c, and aligned_alloc.c from mallocng source dir
> >    to src/malloc/mallocng. (You can also include dump.c if desired.)
> > 
> > This produces a near-fully-integrated malloc, including support for
> > reclaim_gaps donation from ldso. The only functionality missing, which
> > I expect to flesh out before actual import, is handling of the case of
> > incomplete malloc replacement by interposition (__malloc_replaced!=0).
> > 
> > Please report any problems encountered.
> 
> For reference -- I should have mentioned in the original post -- the
> above is with musl commit 384c0131ccda2656dec23a0416ad3f14101151a7
> and mallocng-draft commit c0d6d87596f565e652e126f54aa1a2afaecc0e52.
> 
> I'll have an update to these posted soon.

Updated upsteam. Reduction in what's needed to integrate, only 2 files
now, smaller than before (attached).

musl: ca36573ecf
mallocng-draft: 55c1e76bb0

Files needed from mallocng: meta.h, malloc.c, realloc.c, free.c,
malloc_usable_size.c, and aligned_alloc.c

Rich

View attachment "glue.h" of type "text/plain" (1518 bytes)

View attachment "donate.c" of type "text/plain" (882 bytes)

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.