Page MenuHomeFreeBSD

bhyve: avoid overflow of BAR index
ClosedPublic

Authored by corvink on Mar 28 2022, 9:08 AM.
Tags
Referenced Files
Unknown Object (File)
Sat, Jan 31, 1:39 AM
Unknown Object (File)
Wed, Jan 28, 9:27 AM
Unknown Object (File)
Sun, Jan 25, 5:44 AM
Unknown Object (File)
Fri, Jan 16, 11:07 PM
Unknown Object (File)
Wed, Jan 14, 6:48 PM
Unknown Object (File)
Mon, Jan 12, 10:17 AM
Unknown Object (File)
Dec 29 2025, 1:24 AM
Unknown Object (File)
Dec 27 2025, 7:47 PM

Details

Summary

At the moment, writes to BAR registers that aren't 4 byte aligned are
ignored. So, there's no overflow yet. Nevertheless, if this behaviour
changes in the future, it could unintentionally, introduce a buffer
overflow. Additionally, some compiler or tools will detect this
potential overflow and complain about it.

Signed-off-by: Corvin Köhne <c.koehne@beckhoff.com>
Reported-by: Andy Fiddaman <andy@omniosce.org>

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable