https://bugs.winehq.org/show_bug.cgi?id=44911
Bug ID: 44911 Summary: BattlEye 'BEDaisy' kernel service crashes on unimplemented function ntoskrnl.exe.PsGetProcessId Product: Wine Version: 3.5 Hardware: x86-64 OS: Linux Status: NEW Severity: normal Priority: P2 Component: ntoskrnl Assignee: wine-bugs@winehq.org Reporter: focht@gmx.net Distribution: ---
Hello folks,
continuation of bug 44910
--- snip --- $ WINEDEBUG=+seh,+relay,+ntoskrnl wine net start BEDaisy >>log.txt 2>&1 ... 0034:Call driver init 0x78d000 (obj=0x11cc28,str=L"\Registry\Machine\System\CurrentControlSet\Services\BEDaisy") ... 0034:Ret ntdll.NtQuerySystemInformation() retval=00000000 ret=7bc803ab 0034:Ret ntoskrnl.exe.ZwQuerySystemInformation() retval=00000000 ret=0082d9b5 ... 0034:Call KERNEL32.RaiseException(80000100,00000001,00000002,0065eb78) ret=7ec1ace2 ... 0034:trace:seh:raise_exception code=80000100 flags=1 addr=0x7b446c33 ip=7b446c33 tid=0034 0034:trace:seh:raise_exception info[0]=7ec1ad00 0034:trace:seh:raise_exception info[1]=7ec1e697 wine: Call from 0x7b446c33 to unimplemented function ntoskrnl.exe.PsGetProcessId, aborting wine: Unimplemented function ntoskrnl.exe.PsGetProcessId called at address 0xf7c30023:0x7b446c33 (thread 0034), starting debugger... --- snip ---
$ sha1sum Tibia_Setup.exe 50951008ccc402cc32407bfc56a88da873e3e9bd Tibia_Setup.exe
$ du -sh Tibia_Setup.exe 5.2M Tibia_Setup.exe
$ wine --version wine-3.5-107-gf4573adb0f
Regards
https://bugs.winehq.org/show_bug.cgi?id=44911
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, obfuscation URL| |http://static.tibia.com/dow | |nload/Tibia_Setup.exe Staged patchset| |https://github.com/wine-sta | |ging/wine-staging/blob/mast | |er/patches/ntoskrnl-Stubs/0 | |017-ntoskrnl-Add-PsGetProce | |ssId-stub.patch Status|NEW |STAGED
https://bugs.winehq.org/show_bug.cgi?id=44911
--- Comment #1 from Anastasius Focht focht@gmx.net --- Hello folks,
with this and all the previous patches in place, the driver successfully returns from entry point:
--- snip --- $ WINEDEBUG=+seh,+relay,+ntoskrnl,+service wine net start BEDaisy >>log.txt 2>&1 ... 0036:Call driver init 0x78d000 (obj=0x11cc20,str=L"\Registry\Machine\System\CurrentControlSet\Services\BEDaisy") ... 0036:Call ntoskrnl.exe.PsGetProcessId(7ec0b070) ret=007d19d2 0036:fixme:ntoskrnl:PsGetProcessId stub: 0x7ec0b070 0036:Ret ntoskrnl.exe.PsGetProcessId() retval=00000000 ret=007d19d2 ... 0036:Ret driver init 0x78d000 (obj=0x11cbf8,str=L"\Registry\Machine\System\CurrentControlSet\Services\BEDaisy") retval=00000000 0036:Ret ntoskrnl.exe.IoCreateDriver() retval=00000000 ret=7effb832 0036:Call ntoskrnl.exe.ObReferenceObjectByName(0065fdc0,00000040,00000000,00000000,00000000,00000000,00000000,0065fdc8) ret=7effb8bc 0036:trace:ntoskrnl:ObReferenceObjectByName mostly-stub:L"\Driver\BEDaisy" 64 (nil) 0 (nil) 0 (nil) 0x65fdc8 ... 0036:Ret ntoskrnl.exe.ObReferenceObjectByName() retval=00000000 ret=7effb8bc ... 0036:Call advapi32.SetServiceStatus(0011b820,0065fd84) ret=7effb485 ... 0036:trace:service:SetServiceStatus 0x11b820 30 4 5 0 0 0 0 --- snip ---
It will run later into problems because it relies on actual data (watcher thread created by 'PsCreateSystemThread' crashes).
Regards
https://bugs.winehq.org/show_bug.cgi?id=44911
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED CC| |leslie_alistair@hotmail.com Regression SHA1| |d4c2759a1db39445572b4209227 | |7776080458358 Status|STAGED |RESOLVED
--- Comment #2 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- Fixed by https://source.winehq.org/git/wine.git/?a=commit;h=d4c2759a1db39445572b42092...
https://bugs.winehq.org/show_bug.cgi?id=44911
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 3.6.
https://bugs.winehq.org/show_bug.cgi?id=44911
Gijs Vermeulen gijsvrm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Regression SHA1|d4c2759a1db39445572b4209227 | |7776080458358 | Fixed by SHA1| |d4c2759a1db39445572b4209227 | |7776080458358
https://bugs.winehq.org/show_bug.cgi?id=44911
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|http://static.tibia.com/dow |https://web.archive.org/web |nload/Tibia_Setup.exe |/20210117182120/https://sta | |tic.tibia.com/download/Tibi | |a_Setup.exe