git: 3eaf271d3c0e - main - linux(4): Improve comment about SA_RESTORER
Edward Tomasz Napierala
trasz at FreeBSD.org
Tue Jul 13 10:13:25 UTC 2021
The branch main has been updated by trasz:
URL: https://cgit.FreeBSD.org/src/commit/?id=3eaf271d3c0e4fa18b74971a71c950fd43fa4189
commit 3eaf271d3c0e4fa18b74971a71c950fd43fa4189
Author: Edward Tomasz Napierala <trasz at FreeBSD.org>
AuthorDate: 2021-07-13 09:38:08 +0000
Commit: Edward Tomasz Napierala <trasz at FreeBSD.org>
CommitDate: 2021-07-13 10:13:17 +0000
linux(4): Improve comment about SA_RESTORER
No functional changes.
Sponsored By: EPSRC
---
sys/compat/linux/linux_signal.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/sys/compat/linux/linux_signal.c b/sys/compat/linux/linux_signal.c
index d0f1bb1c3b32..43213301239c 100644
--- a/sys/compat/linux/linux_signal.c
+++ b/sys/compat/linux/linux_signal.c
@@ -96,7 +96,12 @@ linux_to_bsd_sigaction(l_sigaction_t *lsa, struct sigaction *bsa)
}
if (lsa->lsa_flags & LINUX_SA_RESTORER) {
flags &= ~LINUX_SA_RESTORER;
- /* XXX: We might want to handle it; see Linux sigreturn(2). */
+ /*
+ * We ignore the lsa_restorer and always use our own signal
+ * trampoline instead. It looks like SA_RESTORER is obsolete
+ * in Linux too - it doesn't seem to be used at all on arm64.
+ * In any case: see Linux sigreturn(2).
+ */
}
if (lsa->lsa_flags & LINUX_SA_ONSTACK) {
flags &= ~LINUX_SA_ONSTACK;
More information about the dev-commits-src-all
mailing list