[PATCH] D31092: Bypass potential libc's sysconf wrappers for sysconf(_SC_PAGESIZE) call

Kuba (Brecka) Mracek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 17 13:26:13 PDT 2017


kubamracek added a comment.

If that something that sanitizers need to protect against, then it sounds like we should do a direct syscall instead.  Dlsym is also a complicated thing and it can call other possibly-intercepted functions, e.g. malloc or pthread_mutex_lock, IIRC.

Anyway, I'm not opposing this change, I was just curious why we need it.


https://reviews.llvm.org/D31092





More information about the llvm-commits mailing list