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
@ -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 New Issue
Block a user