public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [patch 2.6.13-rc1] restore_sigcontext is not preempt safe
@ 2005-07-01  5:52 Keith Owens
  0 siblings, 0 replies; only message in thread
From: Keith Owens @ 2005-07-01  5:52 UTC (permalink / raw)
  To: linux-ia64

restore_sigcontext calls ia64_set_local_fpu_owner() which requires that
preempt be disabled.

Signed-off-by: Keith Owens <kaos@sgi.com>

Index: linux/arch/ia64/kernel/signal.c
=================================--- linux.orig/arch/ia64/kernel/signal.c	2005-07-01 12:27:44.891940980 +1000
+++ linux/arch/ia64/kernel/signal.c	2005-07-01 15:57:08.479428221 +1000
@@ -143,6 +143,7 @@ restore_sigcontext (struct sigcontext __
 
 		__copy_from_user(current->thread.fph, &sc->sc_fr[32], 96*16);
 		psr->mfh = 0;	/* drop signal handler's fph contents... */
+		preempt_disable();
 		if (psr->dfh)
 			ia64_drop_fpu(current);
 		else {
@@ -150,6 +151,7 @@ restore_sigcontext (struct sigcontext __
 			__ia64_load_fpu(current->thread.fph);
 			ia64_set_local_fpu_owner(current);
 		}
+		preempt_enable();
 	}
 	return err;
 }


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-07-01  5:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-01  5:52 [patch 2.6.13-rc1] restore_sigcontext is not preempt safe Keith Owens

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox