Conflict with DLLs already in system32

Open
#138 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
cpp

Research direction

Start by examining the Level Zero loader's Windows DLL search behavior around LOAD_LIBRARY_SEARCH_SYSTEM32 and the dependent DLLs used by zello_world.exe. Determine whether the current behavior should be documented for security reasons or changed, then verify the chosen outcome with zello_world.exe and the affected validation-layer DLL loading.

Written by the indexing model from the issue text.

Description

The Level Zero API uses LOAD_LIBRARY_SEARCH_SYSTEM32 and thus loads dependent DLLs from c:\windows\system32. This yields errors on systems shipped with Level Zero DLLs in system32. Building an app with ze_loader.dll from the repo (e.g. zello_world.exe) will load dependent DLLs (e.g. ze_validation_layer.dll) from system32 and not from the repo. If this behavior is due to security considerations it’s probably worth a note in the repo. Otherwise one of the less restrictive search options for DLLs might be appropriate.

Dominant language
C++
Stars
335
Forks
140
Avg merge
12h 32m
Merged PRs (30d)
5

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from oneapi-src/level-zero

All issues in oneapi-src/level-zero

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.