On Fri, Sep 5, 2025 at 12:26 PM Richard Henderson < [email protected]> wrote:
> On 9/5/25 18:00, Peter Foley wrote: > > We're using glibc 2.27. > > That's just too old. > Yeah, I'm picking up on that. So it looks like short of back-porting support for MAP_FIXED_NOREPLACE to our "grte" fork of glibc, we should just keep carrying a local patch. Sorry for the noise. > > commit c42e77a90d9244c8caf76fe0e54f84200430a4e1 > Author: Richard Henderson <[email protected]> > Date: Tue Aug 8 09:44:18 2023 -0700 > > qemu/osdep: Remove fallback for MAP_FIXED_NOREPLACE > > In order for our emulation of MAP_FIXED_NOREPLACE to succeed within > linux-user target_mmap, we require a non-zero value. This does not > require host kernel support, merely the bit being defined. > > MAP_FIXED_NOREPLACE was added with glibc 2.28. From repology.org: > > Fedora 36: 2.35 > CentOS 8 (RHEL-8): 2.28 > Debian 11: 2.31 > OpenSUSE Leap 15.4: 2.31 > Ubuntu LTS 20.04: 2.31 > > Reported-by: Akihiko Odaki <[email protected]> > Reviewed-by: Akihiko Odaki <[email protected]> > Reviewed-by: Alex Bennée <[email protected]> > Signed-off-by: Richard Henderson <[email protected]> > Message-Id: <[email protected]> > > > r~ > >
