• Andrew Morton's avatar
    [PATCH] Bug fix in AIO initialization · b1648ead
    Andrew Morton authored
    From: "Chen, Kenneth W" <kenneth.w.chen@intel.com>
    
    We hit this bug when we have the following scenario:
    
    One process initializes an AIO context and then forks out many child
    processes.  When those child processes exit, many BUG checks
    (effectively kernel oops) were triggered from put_ioctx(ctx) in function
    exit_aio().
    
    The issue was that the AIO context was incorrectly copied upon forking
    and mislead all child processes to think they have an IO context and
    trying to free it where they really don't own.  The following patch fix
    the issue.
    b1648ead
fork.c 29 KB