From: Shaohua Li Date: Tue, 27 Jul 2010 08:06:28 +0000 (+0800) Subject: x86, mm: Make spurious_fault check explicitly check the PRESENT bit X-Git-Tag: v2.6.37-rc1~203^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=660a293ea9be709b893d371fbc0328fcca33c33a;p=pandora-kernel.git x86, mm: Make spurious_fault check explicitly check the PRESENT bit pte_present() returns true even present bit isn't set but _PAGE_PROTNONE (global bit) bit is set. While with CONFIG_DEBUG_PAGEALLOC, free pages have global bit set but present bit clear. This patch makes we could catch free pages access with CONFIG_DEBUG_PAGEALLOC enabled. [ hpa: added a comment in the code as a warning to janitors ] Signed-off-by: Shaohua Li LKML-Reference: <1280217988.32400.75.camel@sli10-desk.sh.intel.com> Signed-off-by: H. Peter Anvin --- Reading git-diff-tree failed