sigaltstack doesn't round ss.ss_sp as required

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux SoC]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux