diff options
| author | Nick Piggin <[email protected]> | 2008-08-20 21:09:20 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2008-08-20 22:40:32 +0000 |
| commit | 538f8ea6c85232d00bfa5edd9ba85f16c01057c9 (patch) | |
| tree | c1a4a49c0c7f16b4fe8ec560137084bf556efc50 /fs/proc/array.c | |
| parent | mm: dirty page tracking race fix (diff) | |
| download | kernel-538f8ea6c85232d00bfa5edd9ba85f16c01057c9.tar.gz kernel-538f8ea6c85232d00bfa5edd9ba85f16c01057c9.zip | |
mm: xip fix fault vs sparse page invalidate race
XIP has a race between sparse pages being inserted into page tables, and
sparse pages being zapped when its time to put a non-sparse page in.
What can happen is that a process can be left with a dangling sparse page
in a MAP_SHARED mapping, while the rest of the world sees the non-sparse
version. Ie. data corruption.
Guard these operations with a seqlock, making fault-in-sparse-pages the
slowpath, and try-to-unmap-sparse-pages the fastpath.
Signed-off-by: Nick Piggin <[email protected]>
Cc: Jared Hulbert <[email protected]>
Acked-by: Carsten Otte <[email protected]>
Cc: Hugh Dickins <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions
