diff options
| author | Andrew Morton <[email protected]> | 2006-09-08 09:48:38 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2006-09-08 10:22:50 -0700 |
| commit | 016eb4a0ed06a3677d67a584da901f0e9a63c666 (patch) | |
| tree | 574ead6bd03d31ca7036ff2389cb0400f3fd63fc /scripts/patch-kernel | |
| parent | 3665d0e58fa44f50c744f85c7e8ad21d5b10e206 (diff) | |
[PATCH] invalidate_complete_page() race fix
If a CPU faults this page into pagetables after invalidate_mapping_pages()
checked page_mapped(), invalidate_complete_page() will still proceed to remove
the page from pagecache. This leaves the page-faulting process with a
detached page. If it was MAP_SHARED then file data loss will ensue.
Fix that up by checking the page's refcount after taking tree_lock.
Cc: Nick Piggin <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions