mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 12:02:02 +00:00
[NTOS:MM] Do not map two pages into hyperspace in MiCopyFromUserPage. CORE-14548
Doing this is not only wrong because it acquires the same spinlock twice, it also completely breaks the TLB flushing logic in MiMapPageInHyperSpace. If the PTE with Offset 1 is still valid when a wrap-around to 0 happens, the TLB flush on wrap-around will not clear the entry for this previous page. After another loop around all hyperspace pages, page 1 is re-used but its TLB entry has not been flushed, which may result into incorrect translation.
This commit is contained in:
parent
ee8d82f29d
commit
b54e5c689c
2 changed files with 7 additions and 9 deletions
|
@ -757,8 +757,8 @@ MmAccessFault(
|
|||
NTSTATUS
|
||||
NTAPI
|
||||
MiCopyFromUserPage(
|
||||
PFN_NUMBER NewPage,
|
||||
PFN_NUMBER OldPage
|
||||
PFN_NUMBER DestPage,
|
||||
const VOID *SrcAddress
|
||||
);
|
||||
|
||||
/* process.c *****************************************************************/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue