[all-commits] [llvm/llvm-project] 21d2b2: [PAuth] Use different discriminators for __int128_...
Anton Korobeynikov via All-commits
all-commits at lists.llvm.org
Sun Jun 1 23:56:16 PDT 2025
Branch: refs/heads/users/asl/pauth-ftype-discrimination-128
Home: https://github.com/llvm/llvm-project
Commit: 21d2b2da72d9e8f3994cb913a86c093212bb8711
https://github.com/llvm/llvm-project/commit/21d2b2da72d9e8f3994cb913a86c093212bb8711
Author: Anton Korobeynikov <anton at korobeynikov.info>
Date: 2025-06-01 (Sun, 01 Jun 2025)
Changed paths:
M clang/lib/AST/ASTContext.cpp
M clang/test/CodeGen/ptrauth-function-type-discriminator.c
Log Message:
-----------
[PAuth] Use different discriminators for __int128_t / __uint128_t / _BitInt(n)
compared to other integer types when computing function pointer type discriminator.
These parameter types have different parameter passing ABI as compared to
ordinary integer types (e.g. require 2 registers instead of 1) and therefore
this parameter passing difference could potentially be exploited should function
pointer is substituted.
Commit: f89e872d240bd7f926d88b29741826643ed6c611
https://github.com/llvm/llvm-project/commit/f89e872d240bd7f926d88b29741826643ed6c611
Author: Anton Korobeynikov <anton at korobeynikov.info>
Date: 2025-06-01 (Sun, 01 Jun 2025)
Changed paths:
M clang/include/clang/Basic/Features.def
M clang/include/clang/Basic/LangOptions.def
M clang/include/clang/Driver/Options.td
M clang/lib/AST/ASTContext.cpp
M clang/lib/Driver/ToolChains/Clang.cpp
M clang/lib/Frontend/CompilerInvocation.cpp
M clang/test/CodeGen/ptrauth-function-type-discriminator.c
Log Message:
-----------
Make type discrimination of 128-bit types optional
Compare: https://github.com/llvm/llvm-project/compare/26e6ea21540d...f89e872d240b
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