Skip to content

Conversation

@os-d
Copy link
Contributor

@os-d os-d commented Nov 20, 2025

Description

Recent tests added a MockPageTable to the static GCD, but this is not cleaned up on GCD.reset(). As a result, there is a race condition where certain tests that expect there not to be a page table installed in the GCD can fail. This fixes that by removing the page table if installed in GCD.reset().

  • Impacts functionality?
  • Impacts security?
  • Breaking change?
  • Includes tests?
  • Includes documentation?

How This Was Tested

Had a 100% repro with cargo test after this no repro. Confirmed this was the issue under the debugger.

Integration Instructions

N/A.

Recent tests added a MockPageTable to the static GCD, but
this is not cleaned up on GCD.reset(). As a result, there is
a race condition where certain tests that expect there not
to be a page table installed in the GCD can fail. This fixes
that by removing the page table if installed in GCD.reset().
@os-d os-d added the type:bug Something isn't working label Nov 20, 2025
@github-actions github-actions bot added the impact:non-functional Does not have a functional impact label Nov 20, 2025
@os-d os-d enabled auto-merge (rebase) November 20, 2025 18:25
@codecov
Copy link

codecov bot commented Nov 20, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@os-d os-d merged commit 9e1b86a into OpenDevicePartnership:main Nov 20, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

impact:non-functional Does not have a functional impact type:bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants