projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4614139
)
x86: mask NX from pte_pfn
author
Jeremy Fitzhardinge
<jeremy@goop.org>
Wed, 30 Jan 2008 12:32:57 +0000
(13:32 +0100)
committer
Ingo Molnar
<mingo@elte.hu>
Wed, 30 Jan 2008 12:32:57 +0000
(13:32 +0100)
In 32-bit PAE, mask NX from pte_pfn, since it isn't part of the PFN.
This code is due for unification anyway, but this fixes a latent bug.
Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/asm-x86/pgtable-3level.h
patch
|
blob
|
blame
|
history
diff --git
a/include/asm-x86/pgtable-3level.h
b/include/asm-x86/pgtable-3level.h
index 948a334141184f09e486baa971ed321cb6727f6f..9816346f7df6eceb3c7657ba0846e9ac4fc399d1 100644
(file)
--- a/
include/asm-x86/pgtable-3level.h
+++ b/
include/asm-x86/pgtable-3level.h
@@
-155,7
+155,7
@@
static inline int pte_none(pte_t pte)
static inline unsigned long pte_pfn(pte_t pte)
{
- return
pte_val(pte
) >> PAGE_SHIFT;
+ return
(pte_val(pte) & ~_PAGE_NX
) >> PAGE_SHIFT;
}
extern unsigned long long __supported_pte_mask;