Repository navigation
Conversation
✅ QEMU Validation PassedAll QEMU validation jobs completed successfully.
Workflow run: https://github.com/OpenDevicePartnership/patina/actions/runs/42872534295 Boot Time to EFI Shell
Dependencies
Binary Size Report
Compressed sizes use LZMA-alone format at preset 6 ( Shared QEMU integration: This comment was automatically generated by the Patina QEMU PR Validation Post workflow. |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
31065d1 to
a95d360
Compare
| | Format: vendor-defined | `0xFF` | | ||
| | Compression: none | `0x00` | | ||
| | Compression: zlib | `0x01` | | ||
| | Compression: LZMA | `0x02` | |
There was a problem hiding this comment.
Consider adding the UEFI spec compression method
There was a problem hiding this comment.
I can add this, but IIRC there was some pushback against adding the UEFI spec compression because the use case is for the OS and general OS users to be able to decompress an SBOM. UEFI / TIANO compression / decompression is not something that is readily available.
Like I mentioned, I'm not against adding it, however. It's not impossible for a tool that supports parsing this data to add that decompression functionality.
There was a problem hiding this comment.
i suggest not adding until needing it
There was a problem hiding this comment.
i suggest not adding until needing it
|
|
||
| typedef struct { | ||
| UINT8 Revision; | ||
| UINT16 HeaderLength; |
There was a problem hiding this comment.
Do you think there would be value in having some sort of identifier (probably a GUID) in the structure to help parse these fields? As it stands, if I want to find the SBOM for Patina or OneCrypto specifically, I would have to decompress and parse each and every SBOM until I found it, right? It seems reasonable to take the file name (guid) or input GUID to make identifying and parsing distinct.
There was a problem hiding this comment.
Is this the same idea related to this conversation? #1868 (comment)
I'm not against an identifier, but I don't think a GUID is the right choice. anyone / anything can produce an SBOM entry that we will collect. This will make mapping the GUID back to something difficult. Someone somewhere would have to manage some lookup table of GUID to ID. I'd rather some sort of string or something if we are going to do that. We just need to be careful because SBOMs are supposed to be self-describing. I agree having something outside of the SBOM may be useful based off of your proposed issue where the SBOM is corrupt and cannot be parsed or cannot be decompressed. But we don't want too much information else we are duplicating information in the SBOM itself.
There was a problem hiding this comment.
I don't think a string makes sense given the goal is to not have a globally aligned id map.
GUID lets everyone make up their own with confidence that we shouldn't have a conflict. Well known guids can then get published in various forums.
Is there some key in the root of the SBOM that could be reused and doesn't have to be guaranteed unique but at least would make practical parsing/iterating compressed SBOMs faster?
8c28cdc to
99a2dd8
Compare
Initial RFC for SBOM discovery and publication mechanisms that can be supported in both the Patina and EDK II DXE Core.
99a2dd8 to
3161dbb
Compare
| standalone SBOMs together as an N-entry list in one ACPI SBOM table. It does not build a single SBOM | ||
| from the various SBOM sources. The discovery mechanisms are: | ||
|
|
||
| 1. An SBOM entry embedded in a PE/COFF image's `.sbom` section. |
There was a problem hiding this comment.
should go start the process to update
https://learn.microsoft.com/en-us/windows/win32/debug/pe-format#special-sections
| The protocol interface is one serialized SBOM table entry: | ||
|
|
||
| ```c | ||
| #define EFI_SBOM_ENTRY_PROTOCOL_GUID \ |
There was a problem hiding this comment.
do you have UEFI / PI spec approval for EFI designation?
There was a problem hiding this comment.
No. I am not taking it there until after RFC work is complete, but that is the intent. I can remove all usage of EFI_ until that time comes.
|
|
||
| 1. Parse the source PE/COFF image and search for a section named `.sbom`. | ||
| 2. If the section is absent, continue without logging an error. | ||
| 3. Parse one structurally well-formed serialized `EFI_ACPI_SBOM_TABLE_ENTRY`, including its payload, |
| @@ -0,0 +1,573 @@ | |||
| # RFC: `Firmware SBOM Discovery and ACPI Publication` | |||
There was a problem hiding this comment.
for your data layout you might try using mermaid
https://mermaid.ai/open-source/syntax/packet.html
spbrogan
left a comment
There was a problem hiding this comment.
approved once comments are addressed
Description
Initial RFC for SBOM discovery and publication mechanisms that can be supported in both the Patina and EDK II DXE Core.
RFC Status: Draft
How This Was Tested
N/A
Integration Instructions
N/A