Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 212059
b: refs/heads/master
c: 660a293
h: refs/heads/master
i:
  212057: 8d6ffaa
  212055: 7322e17
v: v3
  • Loading branch information
Shaohua Li authored and H. Peter Anvin committed Aug 26, 2010
1 parent f4ba792 commit 2a7d90d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9b861528a8012e7bc4d1f7bae07395b225331477
refs/heads/master: 660a293ea9be709b893d371fbc0328fcca33c33a
8 changes: 7 additions & 1 deletion trunk/arch/x86/mm/fault.c
Original file line number Diff line number Diff line change
Expand Up @@ -872,8 +872,14 @@ spurious_fault(unsigned long error_code, unsigned long address)
if (pmd_large(*pmd))
return spurious_fault_check(error_code, (pte_t *) pmd);

/*
* Note: don't use pte_present() here, since it returns true
* if the _PAGE_PROTNONE bit is set. However, this aliases the
* _PAGE_GLOBAL bit, which for kernel pages give false positives
* when CONFIG_DEBUG_PAGEALLOC is used.
*/
pte = pte_offset_kernel(pmd, address);
if (!pte_present(*pte))
if (!(pte_flags(*pte) & _PAGE_PRESENT))
return 0;

ret = spurious_fault_check(error_code, pte);
Expand Down

0 comments on commit 2a7d90d

Please sign in to comment.