[PATCH] D13670: [sanitizer] Fix ptrace interceptor for aarch64

Adhemerval Zanella via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 14 11:14:34 PDT 2015


zatrazz updated this revision to Diff 37368.
zatrazz added a comment.

I updated the patch with additional checks for the iovec pointer itself and add
more tests for the test/asan/TestCases/Linux/ptrace.cc taking in consideration
all the current supported platforms. I tested on aarch64, arm*, powerpc64**, 
x86_64, and i386. I do not  have access to a mips64 machine, but I based the
changes on current code from ./test/sanitizer_common/TestCases/Linux/ptrace.cc.

For arm the test now fails due missing ptrace instrumentation for the architecture,
however I have a patch ready to fix it (so we might XFAIL arm-linux-gnueabi{hf}
for now). For powercp64 I had to use PTRACE_GETREGSET because
PTRACE_GETREGS was not supported on LE system I have access (although
the ptrace itself does not fail).


http://reviews.llvm.org/D13670

Files:
  lib/sanitizer_common/sanitizer_common_interceptors.inc
  test/asan/TestCases/Linux/ptrace.cc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13670.37368.patch
Type: text/x-patch
Size: 6317 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151014/d571d14c/attachment.bin>


More information about the llvm-commits mailing list