• Andrew Morton's avatar
    [PATCH] fix a race between set_page_dirty and truncate · 67886cc6
    Andrew Morton authored
    Fix a race between set_page_dirty() and truncate.
    
    The page could have been removed from the mapping while this CPU is
    spinning on the lock.  __free_pages_ok() will go BUG.
    
    This has not been observed in practice - most callers of
    set_page_dirty() hold the page lock which gives exclusion from
    truncate.  But zap_pte_range() does not.
    
    A fix for this has been sent to Marcelo also.
    67886cc6
page-writeback.c 14 KB