[all-commits] [llvm/llvm-project] e0df85: Normalize ptrauth handling in sanitizer runtime:

Anton Korobeynikov via All-commits all-commits at lists.llvm.org
Thu Jul 25 15:46:13 PDT 2024


  Branch: refs/heads/users/asl/compiler-rt-pauth-includes2
  Home:   https://github.com/llvm/llvm-project
  Commit: e0df857da214737ab6383611ee6a57eb60190a7e
      https://github.com/llvm/llvm-project/commit/e0df857da214737ab6383611ee6a57eb60190a7e
  Author: Anton Korobeynikov <anton at korobeynikov.info>
  Date:   2024-07-24 (Wed, 24 Jul 2024)

  Changed paths:
    M compiler-rt/lib/sanitizer_common/sanitizer_ptrauth.h

  Log Message:
  -----------
  Normalize ptrauth handling in sanitizer runtime:
 1. Include ptrauth.h if ptrauth_intrinsics language feature is specified
    (per ptrauth spec, this is what enables ptrauh.h usage)
 2. For PAC-RET fallback implement two changes:
   - Switch to macro, so we can ignore key argument
   - Ensure the unsigned value is erased from LR, so the
     possibility of gadget reuse is reduced.

Fixes #100467


  Commit: 778a0e3c89eb1e2c60c44b9e6aa08beab7cc0801
      https://github.com/llvm/llvm-project/commit/778a0e3c89eb1e2c60c44b9e6aa08beab7cc0801
  Author: Anton Korobeynikov <anton at korobeynikov.info>
  Date:   2024-07-24 (Wed, 24 Jul 2024)

  Changed paths:
    M compiler-rt/lib/sanitizer_common/sanitizer_ptrauth.h

  Log Message:
  -----------
  Reformat while here


  Commit: 7fc59d6d969a9266febd2611e4558128e1a64fd6
      https://github.com/llvm/llvm-project/commit/7fc59d6d969a9266febd2611e4558128e1a64fd6
  Author: Anton Korobeynikov <anton at korobeynikov.info>
  Date:   2024-07-25 (Thu, 25 Jul 2024)

  Changed paths:
    M compiler-rt/lib/sanitizer_common/sanitizer_ptrauth.h

  Log Message:
  -----------
  Fix variable type, we expect to strip pointers


Compare: https://github.com/llvm/llvm-project/compare/e0df857da214%5E...7fc59d6d969a

To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list