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)
Fri, May 16, 9:49 AM
Unknown Object (File)
Thu, May 8, 7:37 AM
Unknown Object (File)
Tue, Apr 29, 10:11 AM
Unknown Object (File)
Tue, Apr 29, 8:51 AM
Unknown Object (File)
Mar 6 2025, 8:44 PM
Unknown Object (File)
Mar 6 2025, 12:43 PM
Unknown Object (File)
Mar 2 2025, 10:31 PM
Unknown Object (File)
Feb 27 2025, 7: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