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
54fe531ed1
commit
20715dd02c
@ -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