reactos/sdk/lib
maharmstone e6a9aafe58 [CMLIB] Clean volatile registry entries in the same manner as Windows (#1883)
This fixes the crashes in HvpGetCellMapped on Windows Server 2003 when booting from Freeloader, as mentioned in maharmstone/btrfs#16.

When the bootloader loads the system hive, it cleans the data pertaining to any volatile keys. The Windows bootloader does this by setting SubKeyCounts[Volatile] to 0. After boot, the kernel marks any cell where this is 0 but SubKeyLists[Volatile] isn't HCELL_NIL as dirty, meaning that the sanitized version will then get flushed to the disk.

Because Freeloader sets SubKeyLists[Volatile] to HCELL_NIL straightaway, Windows thinks the cell is clean, and can unload it without flushing. If it then reads it from the disk, it will crash in HvpGetCellMapped due to the stale volatile pointers.

If you break on nt!CmpInitializeSystemHive on Windows and "gu" to the let the function run, you'll see that DirtyVector of the HHIVE has only the first 8 bits set. If you run it using the official bootloader, it'll have a lot more than that.
2019-08-27 02:39:27 +02:00
..
3rdparty [FREETYPE] Improve font rendering with font hinting workaround (#1771) 2019-07-31 21:57:42 +09:00
atl [ATL] Add a minimal CAtlArray implementation 2019-08-11 21:46:07 +02:00
cmlib [CMLIB] Clean volatile registry entries in the same manner as Windows (#1883) 2019-08-27 02:39:27 +02:00
comsupp
conutils
cportlib
cpprt
crt [CRT] Use sprintf_s instead of sprintf 2019-07-20 13:56:18 +02:00
cryptlib
debugsup
delayimp
dmilib
dnslib
drivers [SDK] As sole author of the file, relicense it as LPGL 2019-08-16 19:54:44 +02:00
dxguid
epsapi
evtlib
fast486
fslib [VFATLIB] Use RtlStringCbPrintfA instead of sprintf 2019-07-20 13:56:18 +02:00
gcc_ssp
inflib [INFLIB] Fix INFCONTEXT structure to be compatible with the official definition (#1603) 2019-06-23 22:35:19 +02:00
ioevent
lsalib
nt
ppcmmu
pseh
rossym
rossym_new
rtl [NTDLL] Use the embedded manifest from the process to check compatibility. 2019-08-21 18:57:52 +02:00
runtmchk [RUNTMCHK] Provide fallback memset for arm builds 2019-08-20 22:28:11 +02:00
scrnsave
skiplist
smlib
strmiids
tdilib
udmihelp
uuid [UUID] Add some missing NetCfg IIDs. 2019-06-17 13:48:34 +02:00
wdmguid
CMakeLists.txt