• Andrew Morton's avatar
    [PATCH] Fix copy_page_range()'s handling of invalid pages · e7a88057
    Andrew Morton authored
    Patch from Xavier Bru  <Xavier.Bru@bull.net>
    
    If copy_page_range encounters a pte which maps an invalid pageframe it will
    proceed to try to add an rmap entry against that page.  This causes oopses
    when an application which has mapped an IO device via /dev/mem forks.
    
    Fix that up by correctly skipping the page_add_rmap() for these pte's.
    e7a88057
memory.c 39 KB