-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello, I'm having a problem with code mismatch when instrumenting cldflt.sys. #19
Comments
Hi,
|
cldflt.sys version: 10.0.19041.5369 cldflt.sys!599D It looks fine in ida, but when I run it, I get that problem. |
If it looks okay statically but has an issue when running, it's possibly related to a bad relocation entry. I suggest running the script with verbose output and searching for a relocation entry for the address after the PsProcessPeb, where there shouldn't be one. |
l didn't quite figure out what caused it. Code alignment, or some section not fixed?
this is ida,It's normal.
.text_:FFFFF801813673CC 90 nop
.text_:FFFFF801813673CD 90 nop
.text_:FFFFF801813673CE 90 nop
.text_:FFFFF801813673CF 90 nop
.text_:FFFFF801813673D0 90 nop
.text_:FFFFF801813673D1 90 nop
.text_:FFFFF801813673D2 90 nop
.text_:FFFFF801813673D3 48 FF 15 7E 10 call cs:PsGetProcessPeb
.text_:FFFFF801813673D3 FA FF
.text_:FFFFF801813673DA 0F 1F 44 00 00 nop dword ptr [rax+rax+00h]
.text_:FFFFF801813673DF 48 85 C0 test rax, rax
.text_:FFFFF801813673E2 0F 84 A4 00 00 jz loc_FFFFF8018136748C
.text_:FFFFF801813673E2 00
.text_:FFFFF801813673E8 90 nop
.text_:FFFFF801813673E9 90 nop
.text_:FFFFF801813673EA 90 nop
this is windbg,After PsGetProcessPeb, its code is completely messed up.
fffff801
813673cc 90 nop fffff801
813673cd 90 nopfffff801
813673ce 90 nop fffff801
813673cf 90 nopfffff801
813673d0 90 nop fffff801
813673d1 90 nopfffff801
813673d2 4c8b157f10faff mov r10, qword ptr [cldflt_instrumented!_imp_PsGetProcessPeb (fffff801
81308458)]fffff801
813673d9 e8e25dbef1 call nt!PsGetProcessPeb (fffff801
72f4d1c0)fffff801
813673de 004885 add byte ptr [rax-7Bh], cl ds:002b:00000051
72f5af85=??fffff801
813673e1 c00f84 ror byte ptr [rdi], 84h fffff801
813673e4 a4 movs byte ptr [rdi], byte ptr [rsi]fffff801
813673e5 0000 add byte ptr [rax], al fffff801
813673e7 009090909090 add byte ptr [rax-6F6F6F70h], dlfffff801`813673ed 90 nop
The text was updated successfully, but these errors were encountered: