summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/user_64.h
diff options
context:
space:
mode:
authorAndrey Vagin <avagin@openvz.org>2014-01-30 23:46:10 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-02-13 21:50:12 (GMT)
commit5fc120a504ecd25b7fd33edff8074fac3baffe74 (patch)
tree0d5b6bf9b384cf58acd7584f9e17e33a7db2964d /arch/x86/include/asm/user_64.h
parentb64ba2f3246c0a9d345f8a2cb5c8c2a58e4595f6 (diff)
downloadlinux-fsl-qoriq-5fc120a504ecd25b7fd33edff8074fac3baffe74.tar.xz
mm: don't lose the SOFT_DIRTY flag on mprotect
commit 24f91eba18bbfdb27e71a1aae5b3a61b67fcd091 upstream. The SOFT_DIRTY bit shows that the content of memory was changed after a defined point in the past. mprotect() doesn't change the content of memory, so it must not change the SOFT_DIRTY bit. This bug causes a malfunction: on the first iteration all pages are dumped. On other iterations only pages with the SOFT_DIRTY bit are dumped. So if the SOFT_DIRTY bit is cleared from a page by mistake, the page is not dumped and its content will be restored incorrectly. This patch does nothing with _PAGE_SWP_SOFT_DIRTY, becase pte_modify() is called only for present pages. Fixes commit 0f8975ec4db2 ("mm: soft-dirty bits for user memory changes tracking"). Signed-off-by: Andrey Vagin <avagin@openvz.org> Acked-by: Cyrill Gorcunov <gorcunov@openvz.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Ingo Molnar <mingo@redhat.com> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: Pavel Emelyanov <xemul@parallels.com> Cc: Borislav Petkov <bp@suse.de> Cc: Wen Congyang <wency@cn.fujitsu.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/x86/include/asm/user_64.h')
0 files changed, 0 insertions, 0 deletions