DynamoRIO / DynamoRIO/drmemory

NtSetInformationProcess ProcessTlsInformation struct is IN and OUT

Open
#1,228 0 comments 0 reactions 0 assignees View on GitHub
Bug-FalsePositive Component-FullMode Migrated OpSys-Windows Priority-Medium
Dominant language
C
Stars
2.7k
Forks
290
PR merge metrics
No merged PRs in 30d

Description

_From [bruen...@google.com](https://code.google.com/u/109494838902877177630/) on May 13, 2013 22:54:16_

shows up like this on win8:
[ RUN ] OleTest.CoCreateInstance

Error `#1`: UNINITIALIZED READ: reading 0x01b0e3e4-0x01b0e3e8 4 byte(s) within 0x01b0e3cc-0x01b0e3e8
#0 system call NtSetInformationProcess parameter `#2`
#1 ntdll.dll!LdrpHandleTlsData (0x77d723b6 ) modid:25
#2 ntdll.dll!LdrpSnapModule (0x77dba153 ) modid:25
#3 ntdll.dll!LdrpMapAndSnapModules (0x77db9794 ) modid:25
#4 ntdll.dll!LdrpPrepareModuleForExecution (0x77db9a9f ) modid:25
#5 ntdll.dll!LdrpLoadDll (0x77dba247 ) modid:25
#6 ntdll.dll!LdrLoadDll (0x77db7229 ) modid:25
#7 KERNELBASE.dll!LoadLibraryExW (0x77bfe7db ) modid:24
#8 combase.dll!LoadLibraryWithLogging [d:\win8_gdr\com\combase\common\loadfree.cxx:160](0x75e67cb3 dds esp
01b0e360 ffffffff
01b0e364 00000023
01b0e368 01c78650 +0x1c1864e
01b0e36c 00000028
0:000> dd 01c78650
01c78650 00000000 00000001 00000002 00000000
01c78660 00000000 01c76018 baadf00d 00000000
01c78670 01c76058 baadf00d abababab abababab

and post-syscall it seems to be written to, along with earlier fields:

0:000> dd 01c78650
01c78650 00000000 00000001 00000002 00000000
01c78660 00000002 00000000 00000a44 00000002
01c78670 00000000 000005d8 abababab abababab

0:000> ~
. 0 Id: 374.a44 Suspend: 1 Teb: 7e41f000 Unfrozen
1 Id: 374.5d8 Suspend: 1 Teb: 7e41c000 Unfrozen

_Original issue: http://code.google.com/p/drmemory/issues/detail?id=1228_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.