Project

General

Profile

Actions

Bug #622

open

MMIO BAR is truncated on 64-bit systems

Added by Anastasia Klimchuk 5 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
01/10/2026
Due date:
% Done:

0%

Estimated time:
Affected versions:
Needs backport to:
Affected hardware:
Affected OS:

Description

pcidev_readbar returns the values as uintptr_t however in a bunch of places the value is stored in uint32_t. On systems where the NIC gets a 64-bit MMIO BAR above 4G, this truncates the address and causes /dev/mem mmap failures (EPERM) and crashes.

https://review.coreboot.org/c/flashrom/+/90638 fixes one place but there are few other remaining.

No data to display

Actions

Also available in: Atom PDF