• Zebediah Figura's avatar
    ntoskrnl.exe: Protect relocated pages one at a time. · 22dfb0df
    Zebediah Figura authored
    Blindwrite 7's ezplay.sys has sections which are consecutive in memory but not
    page aligned.  Thus changing the protection to PROT_READWRITE one section at a
    time has the effect that old_prot for all sections but the first is set to
    PROT_READWRITE (actually, PROT_WRITECOPY), causing us to restore the wrong
    protection and the driver to crash in its entry point.
    
    To fix this, protect and unprotect one page at a time while processing it, i.e.
    essentially revert 6c0a8c35.  To avoid reintroducing bug 28254, protect two
    pages at a time instead of just one.
    Signed-off-by: 's avatarZebediah Figura <z.figura12@gmail.com>
    Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
    22dfb0df
Name
Last commit
Last update
dlls Loading commit data...
documentation Loading commit data...
fonts Loading commit data...
include Loading commit data...
libs Loading commit data...
loader Loading commit data...
nls Loading commit data...
po Loading commit data...
programs Loading commit data...
server Loading commit data...
tools Loading commit data...
.editorconfig Loading commit data...
.mailmap Loading commit data...
ANNOUNCE Loading commit data...
AUTHORS Loading commit data...
COPYING.LIB Loading commit data...
LICENSE Loading commit data...
LICENSE.OLD Loading commit data...
MAINTAINERS Loading commit data...
Makefile.in Loading commit data...
README Loading commit data...
VERSION Loading commit data...
aclocal.m4 Loading commit data...
configure Loading commit data...
configure.ac Loading commit data...