[0.4.8][NTOS] Fix a regression in the PE loader CORE-11717
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Sun, 20 Oct 2019 22:36:14 +0000 (00:36 +0200)
committerJoachim Henze <Joachim.Henze@reactos.org>
Thu, 22 Oct 2020 13:52:25 +0000 (15:52 +0200)
commit06e9cb71446bd01e160d0e7e4c13b21f1c4c7e7d
treed386725d2dc3be1fa0e50eaa9d390a00ed202569
parent37be521b23e9efc067f143c2d559ffb603527273
[0.4.8][NTOS] Fix a regression in the PE loader CORE-11717

which caused images to be loaded up to MmHighestUserAddress,
thus overwriting the shared user page.

This is now fixed by using MM_HIGHEST_VAD_ADDRESS as the margin instead.
This commit allows again to load WIN32K.sys of Win2K3SP2
which regressed by SVN 67793 == git
3565260212c7b6f12a0fc74dc86aa84ab5590002

fix cherry picked from commit 0.4.14-dev-143-g
56da95671ce87fc3c9fffbf33f411759ce330e49
ntoskrnl/mm/section.c