summaryrefslogtreecommitdiff
path: root/staging/cli_ip.c
diff options
context:
space:
mode:
Diffstat (limited to 'staging/cli_ip.c')
0 files changed, 0 insertions, 0 deletions
ass='oid'>88abd8249ee8bcebb98c90e890ea5e342db832af (diff)
mremap: move_ptes: check pte dirty after its removal
Linus found there still is a race in mremap after commit 5d1904204c99 ("mremap: fix race between mremap() and page cleanning"). As described by Linus: "the issue is that another thread might make the pte be dirty (in the hardware walker, so no locking of ours will make any difference) *after* we checked whether it was dirty, but *before* we removed it from the page tables" Fix it by moving the check after we removed it from the page table. Suggested-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Aaron Lu <aaron.lu@intel.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat