Page MenuHomeFreeBSD

Rework the arm64 sigtramp code to be a trampoline
ClosedPublic

Authored by andrew on Dec 29 2021, 6:03 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Mar 24, 1:48 AM
Unknown Object (File)
Wed, Mar 18, 7:44 AM
Unknown Object (File)
Sat, Mar 14, 5:21 PM
Unknown Object (File)
Sat, Mar 14, 10:11 AM
Unknown Object (File)
Sat, Mar 14, 2:52 AM
Unknown Object (File)
Wed, Mar 4, 3:43 PM
Unknown Object (File)
Feb 8 2026, 12:21 AM
Unknown Object (File)
Jan 31 2026, 2:15 PM
Subscribers

Details

Summary

To help with switching to a vdso sigtramp switch to passing through the
sigcode function when entering a signal. This ensures the return address
is within the function.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

sys/arm64/arm64/exec_machdep.c
633

When does this case needed at all?

sys/arm64/arm64/exec_machdep.c
633

It's used in Linux emulation.

sys/arm64/arm64/exec_machdep.c
633

Don't Linux emulation need its own sendsig() implementation?

I doubt that our sigframe format is identical to the Linux one. Even, if unlikely it is, there is high probability that we diverge in future.

Rebase past removing the sv_sigcode_base check

This revision was not accepted when it landed; it landed in state Needs Review.Mar 7 2022, 11:20 AM
This revision was automatically updated to reflect the committed changes.