Linux PARISC architecture development
 help / color / mirror / Atom feed
* sigaltstack doesn't round ss.ss_sp as required
@ 2012-11-24 15:05 John David Anglin
  2012-11-25 21:39 ` [PATCH] parisc: " John David Anglin
  0 siblings, 1 reply; 4+ messages in thread
From: John David Anglin @ 2012-11-24 15:05 UTC (permalink / raw)
  To: Parisc List

In trying to build the debian libsigsegv2 package, I found that  
sigaltstack
doesn't round ss.ss_sp.  The tests intentionally pass an unaligned  
pointer.
This results in the two stack overflow tests failing.

According to the Linux manual page:

"When a signal handler is invoked on the alternate stack, the kernel
automatically aligns the address given in ss.ss_sp to a suitable address
boundary for the underlying hardware architecture."

The stack address for the signal handler needs to be adjusted to provide
for frame marker and stack argument slots.

Dave
--
John David Anglin	dave.anglin@bell.net




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-11-25 22:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-24 15:05 sigaltstack doesn't round ss.ss_sp as required John David Anglin
2012-11-25 21:39 ` [PATCH] parisc: " John David Anglin
2012-11-25 22:07   ` Rolf Eike Beer
2012-11-25 22:32     ` John David Anglin

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