[PATCH] mbind: fix verify_pages pte_page
authorHugh Dickins <hugh@veritas.com>
Wed, 22 Jun 2005 00:15:06 +0000 (17:15 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 22 Jun 2005 01:46:19 +0000 (18:46 -0700)
commit941150a326be88af245034ef4b3e9fa00229aa2d
tree03a058776dccd007150a3f57b1f36bf63b8f6a5d
parent400e65146c428d2ef677a927786fda2cec545a76
[PATCH] mbind: fix verify_pages pte_page

Strict mbind's check that pages already mapped are on right node has been
using pte_page without checking if pfn_valid, and without page_table_lock
to prevent spurious failures when try_to_unmap_one intervenes between the
pte_present and the pte_page.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Cc: Andi Kleen <ak@muc.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/mempolicy.c