Skip to content

Tracking Issue: Consolidate uefi_services device path code after device path stabilization #1952

Open

Description

@makubacki

Device path code is going from an unstable feature to a stable feature in #1900.

UEFI driver model related code is particularly dependent on device paths for connected child controllers, etc.

This issue tracks following up on the final device path changes to ensure that any generic device path helper logic is reused from the common device path code.

For example, the validate_device_path function here should no longer need to exist:

fn validate_device_path(bytes: &[u8]) -> Result<(), DriverError> {
let mut offset = 0usize;
loop {
let header = bytes.get(offset..).and_then(|rest| rest.get(..4)).ok_or(DriverError::InvalidParameter)?;
let &[node_type, sub_type, len_lo, len_hi] = header else {
return Err(DriverError::InvalidParameter);
};
let length = usize::from(u16::from_le_bytes([len_lo, len_hi]));
let end = offset.checked_add(length).ok_or(DriverError::InvalidParameter)?;
if length < 4 || end > bytes.len() {
return Err(DriverError::InvalidParameter);
}
if node_type == efi::protocols::device_path::TYPE_END
&& sub_type == efi::protocols::device_path::End::SUBTYPE_ENTIRE
{
return Ok(());
}
offset = end;
}
}

Activity

  1. added this to the Backlog milestone on Nov 3, 2026
  2. self-assigned this
    on Nov 3, 2026
  3. added theissue type on Nov 3, 2026
  4. added
    state:backlog
    urgency:low
    on Nov 3, 2026
  5. moved this to Backlog in Patinaon Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

state:backlogurgency:low

Type

Projects

  • Status
    Backlog

Relationships

None yet

Development

No branches or pull requests

Issue actions