[PATCH] sigaltstack bad behavior on powerpc64

Andreas Schwab schwab at suse.de
Tue Mar 28 00:48:10 EST 2006


Laurent MEYER <meyerlau at fr.ibm.com> writes:

> Index: linux-2.6.16-mcr/arch/powerpc/kernel/signal_64.c
> ===================================================================
> --- linux-2.6.16-mcr.orig/arch/powerpc/kernel/signal_64.c	2006-03-27 11:09:02.000000000 +0200
> +++ linux-2.6.16-mcr/arch/powerpc/kernel/signal_64.c	2006-03-27 11:14:16.986879573 +0200
> @@ -213,7 +213,7 @@
>          /* Default to using normal stack */
>          newsp = regs->gpr[1];
>  
> -	if (ka->sa.sa_flags & SA_ONSTACK) {
> +	if ((ka->sa.sa_flags & SA_ONSTACK) && current->sas_ss_size) {
>  		if (! on_sig_stack(regs->gpr[1]))

This should use sas_ss_flags.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab at suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



More information about the Linuxppc-dev mailing list