Skip to content

UefiTestingPkg: Allow DxePagingAuditTestApp to be renamed - #927

Merged
makubacki merged 1 commit into
microsoft:release/202511from
makubacki:926_name_loc_fix
Jul 27, 2026
Merged

UefiTestingPkg: Allow DxePagingAuditTestApp to be renamed#927
makubacki merged 1 commit into
microsoft:release/202511from
makubacki:926_name_loc_fix

Conversation

@makubacki

@makubacki makubacki commented Jul 24, 2026

Copy link
Copy Markdown
Member

Description

Fixes: #926

Currently, if the application file name is changed or it is placed in a non-root directory, an assert occurs with no console-visible output.

This change locates the SFS protocol on the device handle instead of iterating across all SFS protocols to locate an instance with a file present that matches the hardcoded application file name.

It also closes the SFS handle after dumping the paging info, which was previously left open.

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

How This Was Tested

  • Run DxePagingAuditTestApp.efi -r

  • Run DxePagingAuditTestApp.efi -d from the volume root (FS0:)

  • Run DxePagingAuditTestApp.efi -d from a subdirecotry (e.g. /somedir)

  • Verify files are written in the same directory as the application and it does not assert.

image

Integration Instructions

  • N/A

There are some style and miscellaneous changes unrelated to this functional change I might make in a future PR, but I didn't do so here to avoid scope creep.

  • Note: DxePagingAuditDriver still uses OpenVolumeSFS() which does a more generic search.

@makubacki
makubacki requested review from apop5, kuqin12 and os-d July 24, 2026 19:04
@makubacki makubacki self-assigned this Jul 24, 2026
@makubacki makubacki added the type:bug Something isn't working label Jul 24, 2026
@mu-automation

mu-automation Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

⏩ QEMU Validation Skipped

The PR was merged before validation completed.

This comment was automatically generated by the Mu QEMU PR Validation workflow.

Currently, if the application file name is changed or it is placed in
a non-root directory, an assert occurs with no console-visible output.

This change locates the SFS protocol on the device handle instead of
iterating across all SFS protocols to locate an instance with a file
present that matches the hardcoded application file name.

It also closes the SFS handle after dumping the paging info, which
was previously left open.

Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
@makubacki
makubacki enabled auto-merge (squash) July 27, 2026 21:08
@makubacki
makubacki merged commit c6dc124 into microsoft:release/202511 Jul 27, 2026
36 of 42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: DxePagingAuditTestApp asserts if renamed or not the in FS root

3 participants