mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Trapsignal() calls kern_sigprocmask() when delivering catched signal
with proc lock held. Reported and tested by: Mykola Dzham freebsd at levsha org ua MFC after: 1 month
This commit is contained in:
parent
d8cd25d022
commit
8084540253
1 changed files with 2 additions and 1 deletions
|
|
@ -1863,7 +1863,8 @@ trapsignal(struct thread *td, ksiginfo_t *ksi)
|
|||
if (!SIGISMEMBER(ps->ps_signodefer, sig)) {
|
||||
SIGEMPTYSET(mask);
|
||||
SIGADDSET(mask, sig);
|
||||
kern_sigprocmask(td, SIG_BLOCK, &mask, NULL, 0);
|
||||
kern_sigprocmask(td, SIG_BLOCK, &mask, NULL,
|
||||
SIGPROCMASK_PROC_LOCKED);
|
||||
}
|
||||
if (SIGISMEMBER(ps->ps_sigreset, sig)) {
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue