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@xxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-parisc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html