Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20260315201556.GO1827@brightrain.aerifal.cx>
Date: Sun, 15 Mar 2026 16:15:56 -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 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.

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.