https://git.reactos.org/?p=reactos.git;a=commitdiff;h=b54e5c689c97cab907c77…
commit b54e5c689c97cab907c77c47d26a8e93e38b1f9b
Author: Thomas Faber <thomas.faber(a)reactos.org>
AuthorDate: Sun Apr 15 19:42:18 2018 +0200
Commit: Thomas Faber <thomas.faber(a)reactos.org>
CommitDate: Sun Apr 15 20:07:21 2018 +0200
[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.
---
ntoskrnl/include/internal/mm.h | 4 ++--
ntoskrnl/mm/section.c | 12 +++++-------
2 files changed, 7 insertions(+), 9 deletions(-)
diff --git a/ntoskrnl/include/internal/mm.h b/ntoskrnl/include/internal/mm.h
index d5094e0915..8d0234b4aa 100644
--- a/ntoskrnl/include/internal/mm.h
+++ b/ntoskrnl/include/internal/mm.h
@@ -757,8 +757,8 @@ MmAccessFault(
NTSTATUS
NTAPI
MiCopyFromUserPage(
- PFN_NUMBER NewPage,
- PFN_NUMBER OldPage
+ PFN_NUMBER DestPage,
+ const VOID *SrcAddress
);
/* process.c *****************************************************************/
diff --git a/ntoskrnl/mm/section.c b/ntoskrnl/mm/section.c
index b588f1c617..e79ff5f07b 100644
--- a/ntoskrnl/mm/section.c
+++ b/ntoskrnl/mm/section.c
@@ -1040,23 +1040,21 @@ BOOLEAN MiIsPageFromCache(PMEMORY_AREA MemoryArea,
NTSTATUS
NTAPI
-MiCopyFromUserPage(PFN_NUMBER DestPage, PFN_NUMBER SrcPage)
+MiCopyFromUserPage(PFN_NUMBER DestPage, const VOID *SrcAddress)
{
PEPROCESS Process;
- KIRQL Irql, Irql2;
- PVOID DestAddress, SrcAddress;
+ KIRQL Irql;
+ PVOID DestAddress;
Process = PsGetCurrentProcess();
DestAddress = MiMapPageInHyperSpace(Process, DestPage, &Irql);
- SrcAddress = MiMapPageInHyperSpace(Process, SrcPage, &Irql2);
- if (DestAddress == NULL || SrcAddress == NULL)
+ if (DestAddress == NULL)
{
return(STATUS_NO_MEMORY);
}
ASSERT((ULONG_PTR)DestAddress % PAGE_SIZE == 0);
ASSERT((ULONG_PTR)SrcAddress % PAGE_SIZE == 0);
RtlCopyMemory(DestAddress, SrcAddress, PAGE_SIZE);
- MiUnmapPageInHyperSpace(Process, SrcAddress, Irql2);
MiUnmapPageInHyperSpace(Process, DestAddress, Irql);
return(STATUS_SUCCESS);
}
@@ -1781,7 +1779,7 @@ MmAccessFaultSectionView(PMMSUPPORT AddressSpace,
/*
* Copy the old page
*/
- MiCopyFromUserPage(NewPage, OldPage);
+ NT_VERIFY(NT_SUCCESS(MiCopyFromUserPage(NewPage, PAddress)));
/*
* Unshare the old page.
https://git.reactos.org/?p=reactos.git;a=commitdiff;h=b3ff4f5f95ade2d506cd5…
commit b3ff4f5f95ade2d506cd5404676565a159fdf04d
Author: Bișoc George <fraizeraust99(a)gmail.com>
AuthorDate: Sat Apr 14 17:29:55 2018 +0200
Commit: Hermès BÉLUSCA - MAÏTO <hermes.belusca-maito(a)reactos.org>
CommitDate: Sat Apr 14 21:11:48 2018 +0200
[WINLOGON] Romanian translation update
---
base/system/winlogon/lang/ro-RO.rc | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/base/system/winlogon/lang/ro-RO.rc b/base/system/winlogon/lang/ro-RO.rc
index ae51afc224..d8b13f0309 100644
--- a/base/system/winlogon/lang/ro-RO.rc
+++ b/base/system/winlogon/lang/ro-RO.rc
@@ -31,14 +31,14 @@ END
IDD_SYSSHUTDOWN DIALOGEX 50, 50, 180, 140
STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CENTER | WS_VISIBLE | WS_CAPTION | WS_POPUP
-CAPTION "System Shutdown"
+CAPTION "Sistem de oprire"
FONT 8, "MS Shell Dlg"
BEGIN
ICON IDI_WARNING, IDC_SYSSHUTDOWNICON, 6, 7, 18, 20
- LTEXT "A system shutdown has been initiated. Please save all your work and terminate your session. All unsaved work will be lost when the system shuts down.", -1, 38, 7, 135, 40
- LTEXT "The system shuts down in:", -1, 38, 50, 90, 8
+ LTEXT "Sistemul de oprire a fost inițializat. Salvați toate lucrările și închideți sesiunea. Toate lucrările nesalvate vor fi pierdute atunci când sistemul se va opri.", -1, 38, 7, 135, 40
+ LTEXT "Sistemul se va opri în:", -1, 38, 50, 90, 8
LTEXT "00:00:00", IDC_SYSSHUTDOWNTIMELEFT, 132, 50, 41, 8
- LTEXT "Message:", -1, 38, 65, 135, 8
+ LTEXT "Mesaj:", -1, 38, 65, 135, 8
LTEXT "", IDC_SYSSHUTDOWNMESSAGE, 38, 75, 135, 58
END