[PATCH] D42048: Add NetBSD syscall hooks skeleton in sanitizers
Kamil Rytarowski via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 14 23:20:45 PST 2018
krytarowski created this revision.
krytarowski added reviewers: joerg, vitalybuka, kcc, dvyukov, eugenis.
krytarowski added a project: Sanitizers.
Herald added subscribers: mgorny, kubamracek.
Implement the skeleton of NetBSD syscall hooks for use with sanitizers.
Add a script that generates the rules to handle syscalls
on NetBSD: generate_netbsd_syscalls.awk. It has been written
in NetBSD awk(1) (patched nawk) and is compatible with gawk.
Generate lib/sanitizer_common/sanitizer_platform_limits_netbsd.h
that is a public header for applications, and included as:
<sanitizer_common/sanitizer_platform_limits_netbsd.h>.
Generate sanitizer_netbsd_syscalls.inc that defines all the
syscall rules for NetBSD. This file is modeled after the Linux
specific file: sanitizer_common_syscalls.inc.
Start recognizing NetBSD syscalls with existing sanitizers:
ASan, ESan, HWASan, TSan, MSan, TSan.
Sponsored by <The NetBSD Foundation>
Repository:
rL LLVM
https://reviews.llvm.org/D42048
Files:
include/CMakeLists.txt
include/sanitizer/netbsd_syscall_hooks.h
lib/asan/asan_interceptors.cc
lib/esan/esan_interceptors.cpp
lib/hwasan/hwasan_interceptors.cc
lib/msan/msan_interceptors.cc
lib/sanitizer_common/CMakeLists.txt
lib/sanitizer_common/sanitizer_netbsd_syscalls.inc
lib/tsan/rtl/tsan_interceptors.cc
utils/generate_netbsd_syscalls.awk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42048.129802.patch
Type: text/x-patch
Size: 21331 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180115/4660b39e/attachment.bin>
More information about the llvm-commits
mailing list