[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>
Sun, 27 Oct 2019 00:19:51 +0000 (02:19 +0200)
commit09d3029dd8bf1f38cc7757c8617eadabd497698d
tree313dd4c2a30207d0235dca364fa34115b1e52b7b
parentc13224e68cb9b11418fc86b24c44b311e32d449e
[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

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