Skip to content

[CHERRY-PICK] SecurityPkg: AuthVariableLib: Handle empty signature lists#1785

Open
kuqin12 wants to merge 1 commit intomicrosoft:release/202511from
kuqin12:cp_var_list
Open

[CHERRY-PICK] SecurityPkg: AuthVariableLib: Handle empty signature lists#1785
kuqin12 wants to merge 1 commit intomicrosoft:release/202511from
kuqin12:cp_var_list

Conversation

@kuqin12
Copy link
Copy Markdown
Contributor

@kuqin12 kuqin12 commented May 4, 2026

Description

The current implementation fails to set authenticated variables when the signature list is empty. This can legitimately occur for dbx when no signatures are revoked after a certificate rotation.

Update the logic to explicitly handle empty signature lists, avoiding an implicit dependency on the variable being absent from variable storage.

(cherry picked from commit b980aa07196a5534581b16563cd78cfc67a74074)

For details on how to complete these options and their meaning refer to CONTRIBUTING.md.

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

How This Was Tested

This was tested on physical ARM64 platforms and booted to OS desktop and can set empty siglist variable from powershell.

Integration Instructions

N/A

The current implementation fails to set authenticated variables when the
signature list is empty. This can legitimately occur for dbx when no
signatures are revoked after a certificate rotation.

Update the logic to explicitly handle empty signature lists, avoiding an
implicit dependency on the variable being absent from variable storage.

Signed-off-by: Kun Qin <kun.qin@microsoft.com>
(cherry picked from commit b980aa07196a5534581b16563cd78cfc67a74074)
@mu-automation
Copy link
Copy Markdown
Contributor

mu-automation Bot commented May 4, 2026

✅ QEMU Validation Passed

Source Dependencies

Repository Commit
mu_basecore b90c3fc
mu_tiano_platforms a448318

Results

Platform Target Build Boot Overall Boot Time Build Logs Boot Logs
Q35 DEBUG ✅ success ✅ success 0m 19s Build Logs Boot Logs
SBSA DEBUG ✅ success ✅ success 0m 29s Build Logs Boot Logs

Workflow run: https://github.com/microsoft/mu_basecore/actions/runs/25340065273

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

@kuqin12 kuqin12 requested review from Flickdm and apop5 May 4, 2026 19:43
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 4, 2026

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (release/202511@6969470). Learn more about missing BASE report.

Files with missing lines Patch % Lines
SecurityPkg/Library/AuthVariableLib/AuthService.c 0.00% 1 Missing ⚠️
Additional details and impacted files
@@               Coverage Diff                @@
##             release/202511   #1785   +/-   ##
================================================
  Coverage                  ?   1.59%           
================================================
  Files                     ?     160           
  Lines                     ?   37728           
  Branches                  ?     172           
================================================
  Hits                      ?     601           
  Misses                    ?   37127           
  Partials                  ?       0           
Flag Coverage Δ
SecurityPkg 1.59% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@kuqin12 kuqin12 enabled auto-merge (rebase) May 4, 2026 22:31
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.

2 participants