[0.4.8][NTOS/MM] Properly handle page faults in regions marked with PAGE_NOACCESS...
authorJoachim Henze <Joachim.Henze@reactos.org>
Mon, 15 Nov 2021 00:16:21 +0000 (01:16 +0100)
committerJoachim Henze <Joachim.Henze@reactos.org>
Mon, 15 Nov 2021 00:16:21 +0000 (01:16 +0100)
commita5c8087fc4b1034efd503743fa075899e2a7c7da
tree4d418af3fae819f4bcd8e597ffb3aa7d7e5d49e4
parent60c57bfad93ed108ba2c0e37c008f5f674421813
[0.4.8][NTOS/MM] Properly handle page faults in regions marked with PAGE_NOACCESS or PAGE_GUARD CORE-14694

This was part of the commits for ROSTESTS-110, but much more important:
It fixes CORE-14694 "reproducible BSOD 0x1A MEMORY_MANAGEMENT in OllyDbg v2.01"

Fix picked from 0.4.11-dev-650-g 47ac7a2b28df852a30e047426408bc368d37e5db

which also requires me to "Move up MmAlterViewAttributes() for later use in MmNotPresentFaultSectionView()"
like it was done in: 0.4.11-dev-649-g 47ac7a2b28df852a30e047426408bc368d37e5db
Ofc I moved the function up individually in each branch I do port this back to, without modifying the func.
ntoskrnl/mm/section.c