• Linus Torvalds's avatar
    Avoid racy optimization in signal sending. · 05103a07
    Linus Torvalds authored
    The bug is probably impossible to trigger on x86, due to its
    fairly strong coherency model (the SMP-safe bitops end up being
    memory barriers etc), but other architectures - notably ppc64 -
    can apparently trigger a race whereby the signal sender doesn't
    wake up the target because it doesn't notice that it has gone to
    sleep.
    
    The optimization also optimizes only what appears to be the
    uncommon case, where the signal happens for an already-running
    process.
    05103a07
signal.c 64.2 KB