• Andrew Morton's avatar
    [PATCH] ext3: ext3_writepage race fix · dd71e33f
    Andrew Morton authored
    After ext3_writepage() has called block_write_full_page() it will walk the
    page's buffer ring dropping the buffer_head refcounts.
    
    It does this wrong - on the final loop it will dereference the buffer_head
    which it just dropped the refcount on.  Poisoned oopses have been seen
    against bh->b_this_page.
    
    Change it to take a local copy of b_this_page prior to dropping the bh's
    refcount.
    dd71e33f
inode.c 84.4 KB