[Bug 28254] Multiple kernel drivers crash during load/relocation ( relocation entry crosses page boundary)(PMP Exam Version 7 CrypKey, Age of Wushu SDProtect DRM, StarForce v3)

wine-bugs at winehq.org wine-bugs at winehq.org
Wed Jan 2 19:22:18 CST 2019


https://bugs.winehq.org/show_bug.cgi?id=28254

--- Comment #16 from Rafał Harabień <rafalh92 at outlook.com> ---
André H. If your comment relates to number of pages to be protected 4 or more
does not make sense. One IMAGE_BASE_RELOCATION structure is used together with
offsets from range 0 to 0xFFF (4095) and each relocation updates up to 8 bytes
using those offsets. So unless page size is smaller than 4096 (I never heard
about smaller page size) it can touch up to 3 pages. For example when
VirtualAddress is 0x1FFFF and offsets are in range 0 to 0xFFF it needs to
access pages 0x1F000, 0x20000, and 0x21000 (0x1FFFF+0xFFF = 0x20FFE so a dword
write updates bytes 0x20FFE up to 0x21001).

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


More information about the wine-bugs mailing list