[PATCH] fix a race between set_page_dirty and truncate
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.
Showing
Please register or sign in to comment