Page MenuHomePhabricator

[compiler-rt] [xray] Detect MPROTECT and error out when it's enabled (on NetBSD)
ClosedPublic

Authored by mgorny on Sat, Dec 22, 2:53 AM.

Details

Summary

Add a CheckMPROTECT() routine to detect when pax MPROTECT is enabled
on NetBSD, and error xray out when it is. The solution is adapted
from existing CheckASLR().

Diff Detail

Repository
rL LLVM

Event Timeline

mgorny created this revision.Sat, Dec 22, 2:53 AM
Herald added subscribers: Restricted Project, llvm-commits, kubamracek. · View Herald TranscriptSat, Dec 22, 2:53 AM
krytarowski accepted this revision.Sat, Dec 22, 4:01 AM
krytarowski added inline comments.
lib/xray/xray_init.cc
70 ↗(On Diff #179419)

PaX

This revision is now accepted and ready to land.Sat, Dec 22, 4:01 AM
This revision was automatically updated to reflect the committed changes.