aboutsummaryrefslogtreecommitdiffstats
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorAaron Lu <[email protected]>2016-11-29 05:27:31 +0000
committerLinus Torvalds <[email protected]>2016-11-29 16:20:24 +0000
commita2ce2666aa3509ac31fac0f540a3502372b7b630 (patch)
tree10b193706622c09b1b23c540359de7d75557a5a7 /lib/debugobjects.c
parentMerge branch 'for-4.9-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git... (diff)
downloadkernel-a2ce2666aa3509ac31fac0f540a3502372b7b630.tar.gz
kernel-a2ce2666aa3509ac31fac0f540a3502372b7b630.zip
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 <[email protected]> Signed-off-by: Aaron Lu <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions