[all-commits] [llvm/llvm-project] a9b57d: [PAC][libunwind] Protect dso_base argument of getI...
Anatoly Trosinenko via All-commits
all-commits at lists.llvm.org
Tue Mar 31 13:19:56 PDT 2026
Branch: refs/heads/users/atrosinenko/libunwind-sign-dso-base-argument
Home: https://github.com/llvm/llvm-project
Commit: a9b57d9263353690fc5a0cc9ce7a442a35922e29
https://github.com/llvm/llvm-project/commit/a9b57d9263353690fc5a0cc9ce7a442a35922e29
Author: Anatoly Trosinenko <atrosinenko at accesssoftek.com>
Date: 2026-03-31 (Tue, 31 Mar 2026)
Changed paths:
M libunwind/src/UnwindCursor.hpp
Log Message:
-----------
[PAC][libunwind] Protect dso_base argument of getInfoFromFdeCie
Pass the `dso_base` argument of `UnwindCursor::getInfoFromFdeCie`
as a constant reference to a `__ptrauth`-qualified type. This resolves
the signing oracle in getInfoFromFdeCie when assigning dso_base to the
`__ptrauth`-qualified `_info.extra` field. This commit applies the
changes similar to those done in #173765 to one more function argument.
In the current libunwind source, getInfoFromFdeCie is called three
times, with only one invocation not passing literal 0 as the dso_base
argument. In that only non-trivial case, the value to be passed as
dso_base is read from the `dso_base` field of `UnwindInfoSections`,
which is itself `__ptrauth`-qualified.
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