Kernel: Canonicalize vaddr before using it

This commit is contained in:
Bananymous 2023-10-30 19:20:17 +02:00
parent 5e396851f4
commit 4f25c20c97
1 changed files with 2 additions and 1 deletions

View File

@ -580,8 +580,9 @@ namespace Kernel
vaddr |= (uint64_t)pdpte << 30;
vaddr |= (uint64_t)pde << 21;
vaddr |= (uint64_t)pte << 12;
vaddr = canonicalize(vaddr);
ASSERT(reserve_page(vaddr));
return canonicalize(vaddr);
return vaddr;
}
}
}