lkml.org 
[lkml]   [2009]   [Mar]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: Q: SEGSEGV && uc_mcontext->ip (Was: Signal delivery order)
    Sorry for noise, forgot to mention,

    On 03/17, Oleg Nesterov wrote:
    >
    > --- arch/x86/mm/fault.c
    > +++ arch/x86/mm/fault.c
    > @@ -177,6 +177,13 @@ static void force_sig_info_fault(int si_
    > {
    > siginfo_t info;
    >
    > + current->saved_sigmask = current->blocked;
    > + spin_lock_irq(&current->sighand->siglock);
    > + siginitsetinv(&current->blocked, sigmask(si_signo) |
    > + sigmask(SIGKILL) | sigmask(SIGSTOP));
    > + spin_unlock_irq(&current->sighand->siglock);
    > + set_restore_sigmask();
    > +

    Of course, this change is wrong, it is just for illustration.
    We shouldn't unblock si_signo if it was blocked, force_sig_info()
    sets SIG_DFL in this case.

    Oleg.



    \
     
     \ /
      Last update: 2009-03-17 05:33    [W:0.021 / U:89.352 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site