Skip to content
  • Oleg Nesterov's avatar
    copy_process: fix CLONE_PARENT && parent_exec_id interaction · 2d5516cb
    Oleg Nesterov authored
    
    
    CLONE_PARENT can fool the ->self_exec_id/parent_exec_id logic. If we
    re-use the old parent, we must also re-use ->parent_exec_id to make
    sure exit_notify() sees the right ->xxx_exec_id's when the CLONE_PARENT'ed
    task exits.
    
    Also, move down the "p->parent_exec_id = p->self_exec_id" thing, to place
    two different cases together.
    
    Signed-off-by: default avatarOleg Nesterov <oleg@redhat.com>
    Cc: Roland McGrath <roland@redhat.com>
    Cc: Andrew Morton <akpm@linux-foundation.org>
    Cc: David Howells <dhowells@redhat.com>
    Cc: Serge E. Hallyn <serge@hallyn.com>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    2d5516cb