CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected] 2026/12/02 04:44:04

Modified files:
        sys/kern       : kern_sig.c 

Log message:
Fix a race when two stop signals are delivered concurrently

For multithreaded processes it is possible that two stop signals are
delivered concurrently (or close enough so that both threads enter
cursig's stop handling). There is a window between the check in userret
and the cursig handler where two threads can race.
Recheck the stop condition using proc_suspend_check_locked at the start
of the cursig stop transaction to close the race. This is similar to
what is done in proc_trap.

Reported by Acts1631

Reply via email to