diff options
author | Kirill A. Shutemov <kirill.shutemov@linux.intel.com> | 2012-12-12 22:50:57 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-12-13 02:38:31 +0100 |
commit | cad7f613c4d010e1d0f05c9a4fb33c7ae40ba115 (patch) | |
tree | 9d3f13bfbec1215e2427bb1ef74d8471d4e0b995 /mm/mprotect.c | |
parent | thp: do_huge_pmd_wp_page(): handle huge zero page (diff) | |
download | linux-cad7f613c4d010e1d0f05c9a4fb33c7ae40ba115.tar.xz linux-cad7f613c4d010e1d0f05c9a4fb33c7ae40ba115.zip |
thp: change_huge_pmd(): make sure we don't try to make a page writable
mprotect core never tries to make page writable using change_huge_pmd().
Let's add an assert that the assumption is true. It's important to be
sure we will not make huge zero page writable.
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: "H. Peter Anvin" <hpa@linux.intel.com>
Cc: Mel Gorman <mel@csn.ul.ie>
Cc: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/mprotect.c')
0 files changed, 0 insertions, 0 deletions