Le 12/12/2015 10:55, Michael Karcher a écrit : > On 09.12.2015 23:03, Laurent Vivier wrote: >> >> Le 09/12/2015 21:54, Michael Karcher a écrit : >>> do_rt_sigreturn forgets to initialize the signal mask variable before >>> trying to use it to restore the mask, so the signal mask is undefined >>> after do_rt_sigreturn. This bug has been in all the time since >>> 7181155d when do_rt_sigreturn was implemented for m68k. >>> [...] > BTW: documentation of the stack frame / signature for non-SA_SIGINFO > signal handlers seems to be quite lacking. There is a remark in the > sigaction manpage, but that one obviously only applies to i386...
The best documentation is the kernel source: if you have a look at it you will see that these functions (setup_frame(), do_sigreturn(), ...) are just QEMU "translated" copy&paste. Laurent