Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20260315203509.GP1827@brightrain.aerifal.cx>
Date: Sun, 15 Mar 2026 16:35:09 -0400
From: Rich Felker <dalias@...c.org>
To: Hisam Mehboob <hisamshar@...il.com>
Cc: musl@...ts.openwall.com
Subject: Re: Re: [PATCH] sys/mman.h: add MADV_COLLAPSE from linux v6.1

On Sun, Mar 15, 2026 at 04:15:56PM -0400, Rich Felker wrote:
> On Mon, Mar 16, 2026 at 12:27:25AM +0500, Hisam Mehboob wrote:
> > > Add madvise flag which performs a best-effort synchronous
> > > collapse of the native pages mapped by the memory range
> > > into Transparent Huge Pages (THPs)
> > 
> > Following up on this patch from 2023. This is still an issue
> > with the latest musl 1.2.5 - MADV_COLLAPSE remains undefined,
> > causing build failures when compiling Linux kernel selftests
> > (tools/testing/selftests/kvm/) with musl-gcc:
> > 
> >   guest_memfd_test.c:219:47: error: 'MADV_COLLAPSE' undeclared
> > 
> > Is there any reason this patch was not merged? Is there
> > anything needed to move it forward?
> 
> No reason I'm aware of. I think it should be fine to get it in the
> release. I'll take a quick look at the docs.

I found the previous 3 flags were also missing. Two were in an earlier
patch you sent that I'm applying now; the last I just looked up and
added.

Rich

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.