Skip to content

Fix: Validate device handles and release stale crash charges - #105

Open
EnzoDLofi wants to merge 7 commits into
ASEbrahim:mainfrom
EnzoDLofi:fix/null-device-queue-validation
Open

EnzoDLofi wants to merge 7 commits into
ASEbrahim:mainfrom
EnzoDLofi:fix/null-device-queue-validation

Conversation

@EnzoDLofi

@EnzoDLofi EnzoDLofi commented Dec 4, 2026 •

Copy link
Copy Markdown
  • Validate vkCreateDevice results to prevent registering a null device after a successful driver response.

Reject invalid device handles when retrieving queues through vkGetDeviceQueue and vkGetDeviceQueue2.

  • Release stale crash-budget charges when a stopped device is retained during client process cleanup.

Related issue

Related to DroidDeck issue #3625 and DroiDeck issue #2563.

This fix was found when investigating possible fixes for 3625. Could potentially fix issue 2563.

Kinda Related to Pr 2866

Testing

  • Build MaliBridge.
  • Verify valid and invalid device/queue handle paths.
  • Verify crash-budget accounting when a process exits after its device is stopped.

@EnzoDLofi EnzoDLofi changed the title fix: validate device handles and release stale crash charges Fix: Validate device handles and release stale crash charges Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant