HomeFreeBSD

Fix heap overflow in bhnd(4) SPROM parsing.

Description

Fix heap overflow in bhnd(4) SPROM parsing.

The bus_region_* APIs accept the number of data items to be read, while
the code was passing the total number of bytes, resulting in an overflow
of the SPROM parser's buffer.

Approved by: adrian (mentor)
Differential Revision: https://reviews.freebsd.org/D7168

Details

Provenance
landonfAuthored on
Differential Revision
D7168: Fix heap overflow in bhnd(4) SPROM parsing.
Parents
rS302508: Disable SB01BASE_LOCKUP workaround when split BARs disabled.
Branches
Unknown
Tags
Unknown