[PATCH] D51419: Switch syscall(2)/__syscall(2) calls to libc calls on NetBSD
Kamil Rytarowski via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 29 06:10:09 PDT 2018
krytarowski created this revision.
krytarowski added reviewers: vitalybuka, kcc, joerg.
krytarowski added a project: Sanitizers.
Herald added subscribers: llvm-commits, kubamracek.
Add a new function to detect address of a libc
symbol of a function that could be intercepted.
With the address detector in GetRealLibcAddress(),
an optional interceptor of libc call will be bypassed.
Switch the following functions to libc calls:
- internal_mmap()
- internal_munmap()
- internal_mprotect()
- internal_close()
- internal_open()
- internal_read()
- internal_write()
- internal_ftruncate()
- internal_stat()
- internal_lstat()
- internal_fstat()
- internal_dup2()
- internal_readlink()
- internal_unlink()
- internal_rename()
- internal_sched_yield()
- internal__exit()
- internal_sleep()
- internal_execve()
- NanoTime()
- internal_clock_gettime()
- internal_waitpid()
- internal_getpid()
- internal_getppid()
- internal_getdents()
- internal_lseek()
- internal_sigaltstack()
- internal_fork()
- internal_sigprocmask()
This revision leaves room for refactoring in subsequent commits.
Repository:
rL LLVM
https://reviews.llvm.org/D51419
Files:
lib/sanitizer_common/sanitizer_linux.cc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51419.163063.patch
Type: text/x-patch
Size: 16256 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180829/1f04aeca/attachment.bin>
More information about the llvm-commits
mailing list