Repository navigation
Conversation
Previously, `FromHob::parse` panicked on malformed guided HOB payloads. Since HOBs are input data outside the DXE Core's (and component's) control, HOB parsing is naturally a fallible operation and treating it as such allows more robust HOB parsing and reduces the inclination to treat malformed HOBs as fatal errors. Therefore, `FromHob::parse` now returns `Result<Self, HobParseError>`. A HOB that fails to parse is logged and not registered, so components that depend on it are not dispatched. Code that implemented FromHob is updated accordingly. Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Contributor
ℹ️ QEMU Validation Skipped - Unsupported Target BranchThe Patina QEMU PR validation workflow did not run because the PR targets an unsupported branch. Workflow run: https://github.com/OpenDevicePartnership/patina/actions/runs/37388766757
This comment was automatically generated by the Patina QEMU PR Validation Post workflow. |
cfernald
approved these changes
Oct 5, 2026
Javagedes
approved these changes
Oct 5, 2026
os-d
approved these changes
Oct 6, 2026
makubacki
added a commit
that referenced
this pull request
Oct 9, 2026
Previously, `FromHob::parse` panicked on malformed guided HOB payloads. Since HOBs are input data outside the DXE Core's (and component's) control, HOB parsing is naturally a fallible operation and treating it as such allows more robust HOB parsing and reduces the inclination to treat malformed HOBs as fatal errors. Therefore, `FromHob::parse` now returns `Result<Self, HobParseError>`. A HOB that fails to parse is logged and not registered, so components that depend on it are not dispatched. Code that implemented `FromHob` is updated accordingly. - [x] Impacts functionality? - [ ] Impacts security? - [x] Breaking change? - [x] Includes tests? - [x] Includes documentation? - `cargo make all` - Q35 boot to EFI shell with component dispatch This is a breaking change because of the update to the `parse` method signature in the `FromHob` trait. Trait implementations will need to be updated to use the new method return value (as shown in examples in this commit). Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
makubacki
added a commit
that referenced
this pull request
Oct 13, 2026
Previously, `FromHob::parse` panicked on malformed guided HOB payloads. Since HOBs are input data outside the DXE Core's (and component's) control, HOB parsing is naturally a fallible operation and treating it as such allows more robust HOB parsing and reduces the inclination to treat malformed HOBs as fatal errors. Therefore, `FromHob::parse` now returns `Result<Self, HobParseError>`. A HOB that fails to parse is logged and not registered, so components that depend on it are not dispatched. Code that implemented `FromHob` is updated accordingly. - [x] Impacts functionality? - [ ] Impacts security? - [x] Breaking change? - [x] Includes tests? - [x] Includes documentation? - `cargo make all` - Q35 boot to EFI shell with component dispatch This is a breaking change because of the update to the `parse` method signature in the `FromHob` trait. Trait implementations will need to be updated to use the new method return value (as shown in examples in this commit). Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
makubacki
added a commit
that referenced
this pull request
Oct 13, 2026
Previously, `FromHob::parse` panicked on malformed guided HOB payloads. Since HOBs are input data outside the DXE Core's (and component's) control, HOB parsing is naturally a fallible operation and treating it as such allows more robust HOB parsing and reduces the inclination to treat malformed HOBs as fatal errors. Therefore, `FromHob::parse` now returns `Result<Self, HobParseError>`. A HOB that fails to parse is logged and not registered, so components that depend on it are not dispatched. Code that implemented `FromHob` is updated accordingly. - [x] Impacts functionality? - [ ] Impacts security? - [x] Breaking change? - [x] Includes tests? - [x] Includes documentation? - `cargo make all` - Q35 boot to EFI shell with component dispatch This is a breaking change because of the update to the `parse` method signature in the `FromHob` trait. Trait implementations will need to be updated to use the new method return value (as shown in examples in this commit). Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
makubacki
added a commit
that referenced
this pull request
Oct 13, 2026
Previously, `FromHob::parse` panicked on malformed guided HOB payloads. Since HOBs are input data outside the DXE Core's (and component's) control, HOB parsing is naturally a fallible operation and treating it as such allows more robust HOB parsing and reduces the inclination to treat malformed HOBs as fatal errors. Therefore, `FromHob::parse` now returns `Result<Self, HobParseError>`. A HOB that fails to parse is logged and not registered, so components that depend on it are not dispatched. Code that implemented `FromHob` is updated accordingly. - [x] Impacts functionality? - [ ] Impacts security? - [x] Breaking change? - [x] Includes tests? - [x] Includes documentation? - `cargo make all` - Q35 boot to EFI shell with component dispatch This is a breaking change because of the update to the `parse` method signature in the `FromHob` trait. Trait implementations will need to be updated to use the new method return value (as shown in examples in this commit). Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Previously,
FromHob::parsepanicked on malformed guided HOB payloads.Since HOBs are input data outside the DXE Core's (and component's) control, HOB parsing is naturally a fallible operation and treating it as such allows more robust HOB parsing and reduces the inclination to treat malformed HOBs as fatal errors.
Therefore,
FromHob::parsenow returnsResult<Self, HobParseError>.A HOB that fails to parse is logged and not registered, so components that depend on it are not dispatched.
Code that implemented
FromHobis updated accordingly.How This Was Tested
cargo make allIntegration Instructions
This is a breaking change because of the update to the
parsemethod signature in theFromHobtrait. Trait implementations will need to be updated to use the new method return value (as shown in examples in this commit).