HomeFreeBSD

linux: fix sigaltstack on amd64

Description

linux: fix sigaltstack on amd64

To determine whether to use alternate signal stack or not,
we need to use the native signal number, not the one translated
with bsd_to_linux_signal().

In practical terms, this fixes golang.

Reviewed By: dchagin
Fixes: 135dd0cab51
Sponsored By: EPSRC
Differential Revision: https://reviews.freebsd.org/D31298

(cherry picked from commit b54838003cd43845576764dbad8f587d8f8b291d)

Details

Provenance
traszAuthored on Jul 26 2021, 10:57 AM
dchaginCommitted on Jun 17 2022, 7:30 PM
Reviewer
rG135dd0cab51e: linux: reduce differences between rt_sendsig() and sendsig()
Differential Revision
D31298: linux: fix sigaltstack on amd64
Parents
rGe056a2379340: linux: reduce differences between rt_sendsig() and sendsig()
Branches
Unknown
Tags
Unknown