Page MenuHomePhabricator

Always use prctl(PR_SET_PTRACER)
ClosedPublic

Authored by glandium on Nov 7 2017, 1:00 AM.

Details

Summary

Sufficiently old Linux kernel headers don't provide the PR_SET_PTRACER, but we can still call prctl with it if the runtime kernel is newer. Even if it's not, prctl will only return EINVAL.

Patch by Mike Hommey <mh-llvm@glandium.org>

Diff Detail

Event Timeline

glandium created this revision.Nov 7 2017, 1:00 AM
glandium updated this revision to Diff 121983.Nov 7 2017, 2:10 PM

Updated wording.

eugenis accepted this revision.Nov 7 2017, 2:26 PM
This revision is now accepted and ready to land.Nov 7 2017, 2:26 PM
sylvestre.ledru edited the summary of this revision. (Show Details)Nov 7 2017, 11:25 PM