public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* sigtramp bug-fix (applies to 2.4 and 2.6)
@ 2003-11-26 23:21 David Mosberger
  0 siblings, 0 replies; only message in thread
From: David Mosberger @ 2003-11-26 23:21 UTC (permalink / raw)
  To: linux-ia64

Laurent Morichetti found a bug in the signal trampoline for which I
just checked in a fix.  The problem was that the trampoline was using
a scratch predicate-register in an unwind-directive.  This was wrong,
because the routine isn't a leaf and that scratch register may get
clobbered by the signal handler.  To work around the problem, simply
switch from using p8 to p1 (that's fine because "pr" is already
saved/restored by the kernel).

For details, see this URL:

  http://lia64.bkbits.net:8080/to-linus-2.5/cset@1.1497

Bjorn, could you apply this patch for 2.4 as well?  If it doesn't
apply, let me know (it should be very close though, apart from a large
fuzz).

BTW: If someone were working on an unwind-info validation tool, that
sure would be useful!

	--david

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

only message in thread, other threads:[~2003-11-26 23:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-26 23:21 sigtramp bug-fix (applies to 2.4 and 2.6) David Mosberger

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