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)
Sun, Mar 2, 10:31 PM
Unknown Object (File)
Thu, Feb 27, 7:39 PM
Unknown Object (File)
Tue, Feb 25, 4:09 AM
Unknown Object (File)
Tue, Feb 25, 3:04 AM
Unknown Object (File)
Mon, Feb 24, 1:15 AM
Unknown Object (File)
Mon, Feb 24, 12:45 AM
Unknown Object (File)
Nov 14 2024, 12:20 AM
Unknown Object (File)
Nov 9 2024, 10:08 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