Details
-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
None
-
None
Description
(ongoing testing withZombiedeth)
1. ghSystem32Directory is not initialized so FVF_SYSTEMROOT flag does not affect loadable search directory (nvidia quadro and renditition verite driver affected). Fixing hypothesis:
|
|
if(!ghSystem32Directory){ |
UNICODE_STRING SYSTEM32PATH_U = RTL_CONSTANT_STRING(L"\\SystemRoot\\system32"); |
InitializeObjectAttributes(&ObjectAttributes,&SYSTEM32PATH_U, OBJ_CASE_INSENSITIVE, NULL, NULL);
|
Status = ZwCreateFile(&ghSystem32Directory, FILE_LIST_DIRECTORY | SYNCHRONIZE,&ObjectAttributes,&IoStatusBlock, NULL, FILE_ATTRIBUTE_NORMAL, FILE_SHARE_READ, FILE_OPEN, FILE_DIRECTORY_FILE | FILE_SYNCHRONOUS_IO_NONALERT, NULL,0);
|
}
|
2. The rendition verite display driver calls EngLoadModuleEx to load its firmware in user mode with %SystemRoot%\system32\v10002d.uc and FVF_SYSTEMROOT flag. Previous mode is not checked and EngLoadModuleEx initializes the file always with OBJ_KERNEL_HANDLE set (https://github.com/reactos/reactos/blob/303d27d62f801f1d27a056b9f296b9a5baead3a3/win32ss/gdi/eng/mapping.c#L370) - failing the following MmCreateSection with STATUS_INVALID_HANDLE
3. Since the unexpanded path is passed on pswz, it needs to be expanded and in relation to the FVF_SYSTEMROOT - so far it was set, so it might be sliced up after system32\
4. The file access is set as FILE_READ_DATA (https://github.com/reactos/reactos/blob/303d27d62f801f1d27a056b9f296b9a5baead3a3/win32ss/gdi/eng/mapping.c#L376) but also the FILE_EXECUTE_ACCESS due to the following PAGE_EXECUTE in MmCreateSection
Attachments
Issue Links
- is blocked by
-
CORE-20855 [VIDEOPRT] Supports 64 and 72 bytes sized HwInitializationData
-
- Resolved
-
- relates to
-
CORE-20665 Nvidia driver - hangs on startup on some driver versions
-
- Untriaged
-