mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
fix the sigaltstack hack by lowering the stack size to the original value
if the request was for less than MINSIGSTKSZ (in which case we "round up"). discussed with: marcel
This commit is contained in:
parent
fbf0385368
commit
84aa58ab03
1 changed files with 2 additions and 0 deletions
|
|
@ -687,6 +687,8 @@ linux_sigaltstack(p, uap)
|
|||
lss.ss_flags = bsd_to_linux_sigaltstack(oss->ss_flags);
|
||||
error = copyout(&lss, uap->uoss, sizeof(linux_stack_t));
|
||||
}
|
||||
if (!error && (ss != NULL) && (lss.ss_size < ss->ss_size))
|
||||
p->p_sigstk.ss_size = lss.ss_size;
|
||||
|
||||
return (error);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue