Re: [PATCH 4/5] signal(ia64): add a signal stack overflow check

2008-02-18 Thread Shi Weihua
The similar check has been added to x86_32(i386) in commit id 83bd01024b1fdfc41d9b758e5669e80fca72df66. So we add this check to ia64 and improve it a liitle bit in that we need to check for stack overflow only when the signal is on stack. Signed-off-by: Shi Weihua <[EMAIL PROTECTED]> --- The pr

Re: [PATCH 4/5] signal(ia64): add a signal stack overflow check

2008-02-18 Thread Shi Weihua
Matthew Wilcox wrote:: > On Mon, Feb 18, 2008 at 06:26:23PM +0800, Shi Weihua wrote: >> +if (!rbs_on_sig_stack(scr->pt.ar_bspstore)) >> +new_rbs = (current->sas_ss_sp + >> + sizeof(long) - 1) & ~(sizeof(long) -

Re: [PATCH 4/5] signal(ia64): add a signal stack overflow check

2008-02-18 Thread Matthew Wilcox
On Mon, Feb 18, 2008 at 06:26:23PM +0800, Shi Weihua wrote: > + if (!rbs_on_sig_stack(scr->pt.ar_bspstore)) > + new_rbs = (current->sas_ss_sp + > + sizeof(long) - 1) & ~(sizeof(long) - > 1); I know you're only m