- Intercepting mprotect calls.
- Fixing forgotten flag check.
Patch by David CARLIER
Differential D44777
Mmap interceptor providing mprotect support devnexen on Mar 22 2018, 5:00 AM. Authored by
Details
Patch by David CARLIER
Diff Detail
Event TimelineComment Actions After that, next step would be trying to fix Android support. sorry for all the work I give you @vitalybuka
Comment Actions Hi, this probably broke on Darwin, https://smooshbase.apple.com/ci/view/BuildCzar/job/apple-clang-master-RA-stage1-cmake-incremental/44333/console: duplicate symbol _wrap_mprotect in: projects/compiler-rt/lib/asan/CMakeFiles/RTAsan_dynamic.watchossim.dir/asan_interceptors.cc.o projects/compiler-rt/lib/asan/CMakeFiles/RTAsan_dynamic.watchossim.dir/asan_malloc_mac.cc.o ld: 1 duplicate symbol for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation) Can you take a look? Comment Actions Would need to protect the common interception and still catching the flags in the mac part maybe. Comment Actions Thanks. If you don't have a macOS machine, you can email me a patch and I can test it out for you. Comment Actions Fix Apple build, as mprotect is already intercepted. We check the flags in apple case too. Comment Actions I tested with an weak apple machine I reproduced your linkage issues and do not get them after the changes.
|