[all-commits] [llvm/llvm-project] 67474c: [compiler-rt] libhwasan interceptor ABI intercept ...

David Tellenbach via All-commits all-commits at lists.llvm.org
Wed Oct 30 07:09:07 PDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 67474c60d344a061d6c3affb70e7c8a13c15f830
      https://github.com/llvm/llvm-project/commit/67474c60d344a061d6c3affb70e7c8a13c15f830
  Author: David Tellenbach <david.tellenbach at arm.com>
  Date:   2019-10-30 (Wed, 30 Oct 2019)

  Changed paths:
    M compiler-rt/lib/hwasan/CMakeLists.txt
    M compiler-rt/lib/hwasan/hwasan.h
    M compiler-rt/lib/hwasan/hwasan_interceptors.cpp
    A compiler-rt/lib/hwasan/hwasan_setjmp.S
    A compiler-rt/lib/hwasan/hwasan_type_test.cpp
    A compiler-rt/test/hwasan/TestCases/longjmp-setjmp-interception.c

  Log Message:
  -----------
  [compiler-rt] libhwasan interceptor ABI intercept longjmp/setjmp

Summary:
The hwasan interceptor ABI doesn't have interceptors for longjmp and setjmp.
This patch introduces them.

We require the size of the jmp_buf on the platform to be at least as large as
the jmp_buf in our implementation. To enforce this we compile
hwasan_type_test.cpp that ensures a compile time failure if this is not true.

Tested on both GCC and clang using an AArch64 virtual machine.

Reviewers: eugenis, kcc, pcc, Sanatizers

Reviewed By: eugenis, Sanatizers

Tags: #sanatizers, #llvm

Differential Revision: https://reviews.llvm.org/D69045

Patch By: Matthew Malcomson <matthew.malcomson at arm.com>




More information about the All-commits mailing list