Skip to content

fv_read_section_efiapi: adjust data pointer - #1747

Open
olegilyasov wants to merge 1 commit into
OpenDevicePartnership:mainfrom
olegilyasov:olegilyasov/fv_ReadSection_ptrmiss
Open

fv_read_section_efiapi: adjust data pointer#1747
olegilyasov wants to merge 1 commit into
OpenDevicePartnership:mainfrom
olegilyasov:olegilyasov/fv_ReadSection_ptrmiss

Conversation

@olegilyasov

Copy link
Copy Markdown

Description

The fix changes fv_read_section_efiapi so FREEFORM_SUBTYPE_GUID returns the subtype GUID header bytes followed by the payload, instead of returning only the payload.

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

How This Was Tested

Added test_fv_read_section_freeform_subtype_returns_guid_plus_payload

Integration Instructions

N/A

@patina-automation

Copy link
Copy Markdown
Contributor

⌛ QEMU Validation Pending

QEMU validation is pending on successful CI completion.

Note: Any previous results are available in this comment's edit history.

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

@os-d

os-d commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

I accidentally clicked the copilot review button and now I'm not sure how to get it to stop, my apologies.

- when FV section type EFI_SECTION_FREEFORM_SUBTYPE_GUID
  then the section content includes:
  1) Section Header (4 Bytes)
  2) Subtype GUID (16 Bytes)
  3) Data payload (N Bytes)

- read section function currently returns data pointer as
  section_start + sizeof(section_header) + sizeof(guid)

- the correct data pointer would be
  section_start + sizeof(section_header)

Signed-off-by: Oleg Ilyasov <olegi@ami.com>
@olegilyasov
olegilyasov force-pushed the olegilyasov/fv_ReadSection_ptrmiss branch from 377b8b0 to fe73b13 Compare August 16, 2026 02:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

impact:testing Affects testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants