Skip to contentSkip to conversation

Struct sigaction cleanup

DISCUSSION Jon Burgess 2 participants 2 messages Mar 10, 2003 MIPS

lore
Share & tools
lore
#0 lore raw

Ralf Wrote:

Quoted 1 line

Further no known libc implementation making use of sa_restorer.

I don't know if this is relevant, but Linus recently tried changing the sa_restorer behaviour in the linux-2.5 kernel and later had to back out the change. The following lines are from recent changelogs:

http://www.uwsg.iu.edu/hypermail/linux/kernel/0301.1/0344.html
Linux-2.5.55:
Move x86 signal handler return stub to the vsyscall page, and stop
honoring the SA_RESTORER information.

http://www.uwsg.iu.edu/hypermail/linux/kernel/0301.1/1884.html
Linux-2.5.57:
Re-instate the SA_RESTORER functionality, since it seems that some
programs still depend on it and in fact do install a different signal restorer than the standard kernel version.

Jon

#1 lore raw
Quoted 12 lines · Jon Burgess
Quoted 1 line

Further no known libc implementation making use of sa_restorer.

I don't know if this is relevant, but Linus recently tried changing the sa_restorer behaviour in the linux-2.5 kernel and later had to back out the change. The following lines are from recent changelogs:

http://www.uwsg.iu.edu/hypermail/linux/kernel/0301.1/0344.html
Linux-2.5.55:
Move x86 signal handler return stub to the vsyscall page, and stop
honoring the SA_RESTORER information.

Quoted 5 lines

http://www.uwsg.iu.edu/hypermail/linux/kernel/0301.1/1884.html
Linux-2.5.57:
Re-instate the SA_RESTORER functionality, since it seems that some
programs still depend on it and in fact do install a different signal restorer than the standard kernel version.

Doesn't look relevant to us because installing requires custom assembler code for each architecture or other non-portable constructs. It seems nothing on MIPS was ever actually using sa_restorer or SA_RESTORER.

Ralf