[all-commits] [llvm/llvm-project] fdf4c0: [sanitizer] Support Intel CET

hjl-tools via All-commits all-commits at lists.llvm.org
Wed Oct 6 10:14:46 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fdf4c035225de52f596899931b1f6100e5e3e928
      https://github.com/llvm/llvm-project/commit/fdf4c035225de52f596899931b1f6100e5e3e928
  Author: H.J. Lu <hjl.tools at gmail.com>
  Date:   2021-10-06 (Wed, 06 Oct 2021)

  Changed paths:
    M compiler-rt/lib/hwasan/hwasan_setjmp_x86_64.S
    M compiler-rt/lib/sanitizer_common/sanitizer_asm.h
    M compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors_vfork_i386.inc.S
    M compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors_vfork_x86_64.inc.S
    M compiler-rt/lib/tsan/rtl/tsan_rtl_amd64.S

  Log Message:
  -----------
  [sanitizer] Support Intel CET

1. Include <cet.h> in sanitizer_common/sanitizer_asm.h to mark Intel CET
support when Intel CET is enabled.
2. Add _CET_ENDBR to function entries in assembly codes so that ENDBR
instruction will be generated when Intel CET is enabled.

Reviewed By: dvyukov

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




More information about the All-commits mailing list