HomeFreeBSD

sigfastblock: do not skip cursig/postsig loop in ast()

Description

sigfastblock: do not skip cursig/postsig loop in ast()

Even if sigfastblock block is non-zero, non-blockable signals must be
checked on ast and delivered now. This also affects debugger ability
to attach, because issignal() also calls ptracestop() if there is
a pending stop for debugee.

Instead of checking for sigfastblock, and either setting PENDING flag
for usermode or doing signal delivery loop, always do the loop after
checking, and then handle PENDING bit. issignal() already does the right
thing for fast-blocked case, allowing only STOPs and SIGKILL delivery to
happen.

Reported by: Vasily Postnicov <shamaz.mazum@gmail.com>, markj
Reviewed by: markj
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D28089

Details

Provenance
kibAuthored on Jan 11 2021, 1:22 AM
Reviewer
markj
Differential Revision
D28089: sigfastblock: do not skip cursig/postsig loop in ast()
Parents
rG513320c0f112: sigfastblock_setpend(): do not set PEND user flag unless TDP_SIGFASTPENDING is…
Branches
Unknown
Tags
Unknown