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
false positive on NtPowerInformation parameter #1 #1247
Comments
From bruen...@google.com on May 22, 2013 12:39:42 that was PowerCreateRequest we also have: **** TODO PowerSetRequest and PowerClearRequest app xsp=0x009fdf2c 0 KERNEL32.dll!PowerSetRequest+0x59 (0x75101596 <KERNEL32.dll+0x21596>) modid:01 fp=0x009fdf58 parent=0x009ffb24 WinMain +0x1119 (0x01002123 <calc.exe+0x2123>) modid:0Error BOOL PowerSetRequest( 0:000> dds esp it passes a 0x10-byte struct to NtPowerInformation. KERNEL32!PowerSetRequest+0x39: PowerClearRequest is similar: x64: |
From bruen...@google.com on May 22, 2013 14:10:12 **** TODO actually PowerRequestCreate does not take a REASON_CONTEXT! passed to PowerCreateRequest: passed to NtPowerInformation: but what about if it's POWER_REQUEST_CONTEXT_VERSION? I tried: size is still 0x1c.
=> I don't see the array of strings passed to the kernel at all: 0:000> dds @@(pt->mc.xsp) =>
|
From derek.br...@gmail.com on May 22, 2013 21:03:23 This issue was closed by revision r1392 . Status: Fixed |
From bruen...@google.com on May 22, 2013 13:50:20
xref similar issue in issue #1185 c#2
running win8 calc I see:
Error
#8
: UNINITIALIZED READ: reading 0x02e0db58-0x02e0db6c 20 byte(s) within 0x02e0db50-0x02e0db6c#0 system call NtPowerInformation parameter
#1
#1 KERNEL32.dll!PowerCreateRequest
#2 WinMain
Note: @0:00:19.282 in thread 2808
Error
#9
: UNINITIALIZED READ: reading 0x00bedcf1-0x00bedcf4 3 byte(s) within 0x00bedce8-0x00bedcf8#0 system call NtPowerInformation parameter
#1
#1 KERNEL32.dll!PowerSetRequest
#2 WinMain
Note: @0:00:19.297 in thread 2808
Error
#10
: UNINITIALIZED READ: reading 0x00bedcf1-0x00bedcf4 3 byte(s) within 0x00bedce8-0x00bedcf8#0 system call NtPowerInformation parameter
#1
#1 KERNEL32.dll!PowerClearRequest
#2 WinMain
NTSYSAPI
NTSTATUS
NTAPI
ZwPowerInformation(
IN POWER_INFORMATION_LEVEL PowerInformationLevel,
IN PVOID InputBuffer OPTIONAL,
IN ULONG InputBufferLength,
OUT PVOID OutputBuffer OPTIONAL,
IN ULONG OutputBufferLength
);
app xsp=0x004de274
arg 0 = 0x2b
arg 1 = 0x2ccdb50
arg 2 = 0x1c
arg 3 = 0x4de28c
arg 4 = 0x4
system call
#93
==93.0 NtPowerInformation#0 KERNEL32.dll!PowerCreateRequest+0x32 (0x7510149c <KERNEL32.dll+0x2149c>) modid:0
#1 fp=0x004de294 parent=0x004dfe58 WinMain +0x1102 (0x0100210c <calc.exe+0x210c>) modid:0
Error
#6
: UNINITIALIZED READ: reading 0x02ccdb58-0x02ccdb6c 20 byte(s) within 0x02ccdb50-0x02ccdb6cso some part of InputBuffer is not initialized, for some codes at least
CallNtPowerInformation in DDK http://msdn.microsoft.com/en-us/library/windows/desktop/aa372675(v=vs.85).aspx /extsw/win32/visual_studio/headers-SDK8.0/Include/um/winnt.h:} POWER_INFORMATION_LEVEL;
/extsw/win32/visual_studio/headers-SDK8.0/Include/um/powerbase.h: In POWER_INFORMATION_LEVEL In
0x2b == PowerRequestCreate (matches kernel32 name)
the input buffer may well be REASON_CONTEXT: looking into it
Original issue: http://code.google.com/p/drmemory/issues/detail?id=1247
The text was updated successfully, but these errors were encountered: