mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-29 03:31:04 -04:00
x86: cpa selftest, skip non present entries
pud and pmd entries in the RAM area might be marked as non present. Do not try to modify them in the selftest. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
committed by
Ingo Molnar
parent
07cf89c05f
commit
64f351d197
@@ -137,7 +137,8 @@ static __init int exercise_pageattr(void)
|
||||
|
||||
for (k = 0; k < len[i]; k++) {
|
||||
pte = lookup_address(addr[i] + k*PAGE_SIZE, &level);
|
||||
if (!pte || pgprot_val(pte_pgprot(*pte)) == 0) {
|
||||
if (!pte || pgprot_val(pte_pgprot(*pte)) == 0 ||
|
||||
!(pte_val(*pte) & _PAGE_PRESENT)) {
|
||||
addr[i] = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user