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>
Paths
| Differential D39717
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
Revision Contents
Diff 121983 lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc
|