https://bugs.winehq.org/show_bug.cgi?id=45567
Bug ID: 45567 Summary: League of Legends 8.12+ fails to start a game (anticheat engine, validation of WoW64 syscall dispatcher) Product: Wine Version: 3.13 Hardware: x86 OS: Linux Status: NEW Severity: normal Priority: P2 Component: ntdll Assignee: wine-bugs@winehq.org Reporter: z.figura12@gmail.com Distribution: ---
Diagnosed by Andrew Wesie; partially split off from bug 45327.
The game inspects the %cs register to determine if it is running under WoW64. Since Linux 32-bit code segment is the same as the WoW64 32-bit code segment, 0x23, the anti-cheat will expect to be in a WoW64 environment regardless of whether the prefix is 32- or 64-bit.
Consequently the game will try to use the Wow64Transition export if it is available, or otherwise request the module name of the address contained at the WOW32Reserved TEB field (i.e. %fs:0xc0), and verifies that the latter matches wow64cpu.dll.
This can be solved either by moving the syscall dispatcher to wow64cpu.dll, or by implementing Wow64Transition.
https://bugs.winehq.org/show_bug.cgi?id=45567
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, obfuscation
https://bugs.winehq.org/show_bug.cgi?id=45567
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4@web.de
https://bugs.winehq.org/show_bug.cgi?id=45567
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Staged patchset| |https://github.com/wine-sta | |ging/wine-staging/tree/mast | |er/patches/wow64cpu-Wow64Tr | |ansition Status|NEW |STAGED Keywords| |patch
--- Comment #1 from Zebediah Figura z.figura12@gmail.com --- Marking STAGED. The approach to implement Wow64Transition turned out to be much simpler, due to the way the syscall dispatcher is generated.
https://bugs.winehq.org/show_bug.cgi?id=45567
Roman Pišl rpisl@seznam.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |rpisl@seznam.cz
--- Comment #2 from Roman Pišl rpisl@seznam.cz --- This patchset also fixes MSBuild from Visual Studio build tools. I wonder if it could be upstreamed. I can help with testing.
https://bugs.winehq.org/show_bug.cgi?id=45567
--- Comment #3 from Sven Baars sven.wine@gmail.com --- Looks like this was fixed by b4fddcabdb0328cd21aa87af45bc6504b9687ecb
https://bugs.winehq.org/show_bug.cgi?id=45567
--- Comment #4 from Sven Baars sven.wine@gmail.com --- Sorry, I meant 0421ea397571650c5c6217b95e39cbd098b6c5b0
https://bugs.winehq.org/show_bug.cgi?id=45567
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Fixed by SHA1| |0421ea397571650c5c6217b95e3 | |9cbd098b6c5b0 Status|STAGED |RESOLVED
--- Comment #5 from Zebediah Figura z.figura12@gmail.com --- Marking fixed.
https://bugs.winehq.org/show_bug.cgi?id=45567
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 6.5.