Re: [PATCH 9/10] signal: do not use save_static_function() anymore

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

 



On 2/8/07, Atsushi Nemoto <anemo@xxxxxxxxxxxxx> wrote:
On Thu, 8 Feb 2007 16:39:42 +0100, "Franck Bui-Huu" <vagabon.xyz@xxxxxxxxx> wrote:
> But the points are:
>
>       - get rid of saving static registers in setup_sigcontext()
>       - get rid of restoring static registers in restore_sigcontext()
>       - free space in the signal frame

I'm afraid of ABI compatibility.  Someone might try to handle SIGSEGV
and dump all registers to debug the program without debugger...


Yes that's the main issue with this change. We could make it
configurable with an option which would depend on CONFIG_EMBEDDED or
something. Therefore someone can turn on the optimization if he really
wants it on his platform. But we would still lose the extra space gain
in the signal frame.

Note: I think that such programs can have trouble with current code
anyway... What would happen if the sig handler is run when returning
from a syscall ? In this case wouldn't sig context contain almost
garbage ?

--
              Franck


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux