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)
Thu, Oct 9, 11:42 PM
Unknown Object (File)
Wed, Oct 8, 1:28 AM
Unknown Object (File)
Mon, Oct 6, 10:21 PM
Unknown Object (File)
Sep 3 2025, 5:18 AM
Unknown Object (File)
Aug 25 2025, 9:48 AM
Unknown Object (File)
Jul 27 2025, 9:25 AM
Unknown Object (File)
Jul 24 2025, 4:15 PM
Unknown Object (File)
Jul 8 2025, 3:05 AM

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