[PATCH] Support a protection scheme which reset the GS selector
Alexandre Julliard
julliard at winehq.org
Wed Feb 6 06:31:09 CST 2013
Alessandro Pignotti <a.pignotti at sssup.it> writes:
> Hi everyone,
>
> I've found two different games:
>
> -) Of orcs and men
> -) The testament of sherlock holmes
>
> which are using a protection scheme which reset the GS segment selector,
> possibly to confuse virtual machines. Since on linux the GS selector is
> used internally by glibc the game would crash as soon as a native glibc
> method is called by wine. The proposed patch tries to workaround this
> problem by restoring the GS to a known working value in wine's SEGFAULS
> handler and try the instruction again.
This should be done similarly to the other checks in raise_segv_exception.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list