I am calling ZwQueryVirtualMemory from PLOAD_IMAGE_NOTIFY_ROUTINE callback. For some image load callback, this call leads to system hang.
Does anyone help me?
Call stack of blocked call:
nt!KiSwapContext+0x7a
nt!KiCommitThreadWait+0x1d2
nt!KeWaitForSingleObject+0x1a3
nt!ExfAcquirePushLockShared+0x138
nt!NtQueryVirtualMemory+0x67a
nt!KiSystemServiceCopyEnd+0x13
nt!KiServiceLinkage
sensor!CheckMemory+0x184
sensor!ImageLoadCallback+0xb5
nt!PsCallImageNotifyRoutines+0xdc
nt!MiMapViewOfImageSection+0x9b2
nt!MiMapViewOfSection+0x367
nt!NtMapViewOfSection+0x2bd
nt!KiSystemServiceCopyEnd+0x13
nt!KiServiceLinkage
klif+0x8279f
klif+0x6a3cd
klif+0xed1ba
klflt!PstUnregisterFilter+0x207
klflt!PstUnregisterFilter+0x295
klflt!PstUnregisterProcess+0x116d
nt! ?? ::NNGAKEGL::`string’+0x24ddd
nt!NtCreateUserProcess+0x94f
nt!KiSystemServiceCopyEnd+0x13
0x76e2a35a