[PATCH] D41636: Teach sanitizer about NetBSD specific ioctl(2) calls

Kamil Rytarowski via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 29 15:04:23 PST 2017


krytarowski created this revision.
krytarowski added reviewers: joerg, vitalybuka, eugenis, dvyukov.
krytarowski added a project: Sanitizers.
Herald added subscribers: fedor.sergeev, mgorny, kubamracek.

Introduce handling of 1200 NetBSD specific ioctl(2) calls.
Over 100 operations are disabled as unavailable or conflicting
with the existing ones (the same operation number).

Add a script that generates the rules to detect ioctls on NetBSD.
The generate_netbsd_ioctls.awk script has been written
in NetBSD awk(1) (patched nawk) and is compatible with gawk.

Generate lib/sanitizer_common/sanitizer_netbsd_interceptors_ioctl.inc
with the awk(1) script.

Update sanitizer_platform_limits_netbsd accordingly to add the needed
definitions.

Sponsored by <The NetBSD Foundation>


Repository:
  rL LLVM

https://reviews.llvm.org/D41636

Files:
  lib/sanitizer_common/CMakeLists.txt
  lib/sanitizer_common/sanitizer_common_interceptors.inc
  lib/sanitizer_common/sanitizer_common_interceptors_ioctl.inc
  lib/sanitizer_common/sanitizer_netbsd_interceptors_ioctl.inc
  lib/sanitizer_common/sanitizer_platform_limits_netbsd.cc
  lib/sanitizer_common/sanitizer_platform_limits_netbsd.h
  utils/generate_netbsd_ioctls.awk

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41636.128348.patch
Type: text/x-patch
Size: 273025 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171229/3def1388/attachment-0001.bin>


More information about the llvm-commits mailing list