Page MenuHomeFreeBSD

rtld: require MAP_GUARD support
ClosedPublic

Authored by brooks on Jun 6 2025, 7:33 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Oct 11, 8:48 PM
Unknown Object (File)
Mon, Oct 6, 3:05 AM
Unknown Object (File)
Mon, Sep 22, 6:10 AM
Unknown Object (File)
Sun, Sep 21, 4:22 AM
Unknown Object (File)
Sat, Sep 20, 1:22 PM
Unknown Object (File)
Wed, Sep 17, 8:18 AM
Unknown Object (File)
Wed, Sep 17, 7:16 AM
Unknown Object (File)
Wed, Sep 17, 4:24 AM
Subscribers

Details

Summary

MAP_GUARD was added prior to 12.0. We don't support such old kernels in
userspace so drop the support.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

brooks requested review of this revision.Jun 6 2025, 7:33 PM
libexec/rtld-elf/map_object.c
204

I suspect you intended
base_flags = MAP_GUARD;

  • Fix base flags
  • Retain P_OSREL_MAP_GUARD definition
kib added inline comments.
libexec/rtld-elf/map_object.c
28

Do we need sys/param.h at all?

This revision is now accepted and ready to land.Aug 11 2025, 10:50 AM
This revision was automatically updated to reflect the committed changes.