• Laurent MEYER's avatar
    [PATCH] powerpc: fix incorrect SA_ONSTACK behaviour for 64-bit processes · 11089f08
    Laurent MEYER authored
    *) When setting a sighandler using sigaction() call, if the flag
    SA_ONSTACK is set and no alternate stack is provided via sigaltstack(),
    the kernel still try to install the alternate stack. This behavior is
    the opposite of the one which is documented in Single Unix
    Specifications V3.
    
    *) Also when setting an alternate stack using sigaltstack() with the
    flag SS_DISABLE, the kernel try to install the alternate stack on
    signal delivery.
    
    These two use cases makes the process crash at signal delivery.
    
    This fixes it.
    Signed-off-by: default avatarLaurent Meyer <meyerlau@fr.ibm.com>
    Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
    11089f08
signal_64.c 16.1 KB