This is an archive of the discontinued LLVM Phabricator instance.

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

Authored by mgorny on Dec 22 2018, 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.Dec 22 2018, 2:53 AM
Herald added subscribers: Restricted Project, llvm-commits, kubamracek. · View Herald TranscriptDec 22 2018, 2:53 AM
krytarowski accepted this revision.Dec 22 2018, 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.Dec 22 2018, 4:01 AM
This revision was automatically updated to reflect the committed changes.