]> git.baikalelectronics.ru Git - kernel.git/commit
fix mprotect vma_wants_writenotify prot
authorHugh Dickins <hugh@veritas.com>
Tue, 23 Oct 2007 03:45:12 +0000 (20:45 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 23 Oct 2007 15:32:06 +0000 (08:32 -0700)
commite8e212f2d3f4c98a7b64bc5f8f3f4f6f25bb21cf
tree1f6e0ef40c2b9cf5819d9193d7d06c6a0a33ff6c
parenta6900857e9accc76f147c3a0efeac74e657641bb
fix mprotect vma_wants_writenotify prot

Fix mprotect bug in recent commit 26f449b7e0253b9bb1663e5d234dc532884d2e32
(setup vma->vm_page_prot by vm_get_page_prot()): the vma_wants_writenotify
case was setting the same prot as when not.

Nothing wrong with the use of protection_map[] in mmap_region(),
but use vm_get_page_prot() there too in the same ~VM_SHARED way.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Cc: Coly Li <coyli@suse.de>
Cc: Tony Luck <tony.luck@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/mmap.c
mm/mprotect.c