Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/signal/sigaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ int __libc_sigaction(int sig, const struct sigaction *restrict sa, struct sigact
}
}
ksa.handler = sa->sa_handler;
#if __has_feature(ptrauth_calls)
ksa.handler = __builtin_ptrauth_strip(ksa.handler, 0);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we want to authenticate the pointer value instead of merely striping here and in similar places? @kovdan01

#endif
ksa.flags = sa->sa_flags;
#ifdef SA_RESTORER
ksa.flags |= SA_RESTORER;
Expand Down