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)
Fri, Oct 17, 8:02 PM
Unknown Object (File)
Fri, Oct 17, 8:55 AM
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)
Sep 21 2025, 4:22 AM
Unknown Object (File)
Sep 20 2025, 1:22 PM
Unknown Object (File)
Sep 17 2025, 8:18 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 Passed
Unit
No Test Coverage
Build Status
Buildable 66159
Build 63042: arc lint + arc unit

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.