OK, the patch was broken because it changed regs->regs[31] before the setup_sigcontext. I think this one actually fixes a problem instead of introducing one. :-) Somebody sent the 32-bit part of the patch around a long time ago, but it doesn't seem to have gotten into CVS yet. Kip Kip Walker wrote: > > It looks like the RA setup by setup_frame and setup_rt_frame in > arch/mips64/kernel/signal.c and signal32.c can be wrong. Same for > arch/mips/kernel/signal.c > > signal32.c, 32-bit signal.c: sa_restorer is overriden > signal.c: regs->regs[31] is pointed at the sigframe's code, even though > there isn't code in the frame, and a comment says that sa_restorer is > always used. > > Patch for 2.4 attached. >