Page MenuHomeFreeBSD

bhyve: avoid overflow of BAR index
ClosedPublic

Authored by corvink on Mar 28 2022, 9:08 AM.
Tags
Referenced Files
F153331961: D34689.diff
Mon, Apr 20, 1:03 PM
Unknown Object (File)
Sat, Apr 18, 12:05 PM
Unknown Object (File)
Wed, Apr 15, 11:33 AM
Unknown Object (File)
Sat, Apr 11, 3:51 PM
Unknown Object (File)
Fri, Apr 10, 12:31 PM
Unknown Object (File)
Tue, Mar 31, 5:14 AM
Unknown Object (File)
Mon, Mar 30, 10:51 PM
Unknown Object (File)
Mar 14 2026, 8:39 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