• Ingo Molnar's avatar
    [PATCH] Fix /proc access to dead thread group list oops · 2452eef0
    Ingo Molnar authored
    The pid_alive() check within the loop is incorrect.  If we are within
    the tasklist lock and the thread group leader is valid then the thread
    chain will be fully intact.
    
    Instead, the check should be _outside_ the loop, since if the group
    leader no longer exists, the whole list is gone and we must not try
    to access it.
    
    Move the check around, and add comment.
    
    Bug-hunting and fix by Srivatsa Vaddagiri
    2452eef0
base.c 40.6 KB