Page MenuHomeFreeBSD

bhyve: avoid overflow of BAR index
ClosedPublic

Authored by corvink on Mar 28 2022, 9:08 AM.
Tags
Referenced Files
F140765931: D34689.id104269.diff
Sat, Dec 27, 7:47 PM
Unknown Object (File)
Mon, Dec 15, 3:20 AM
Unknown Object (File)
Wed, Dec 10, 12:53 PM
Unknown Object (File)
Fri, Dec 5, 4:50 PM
Unknown Object (File)
Nov 18 2025, 7:12 AM
Unknown Object (File)
Nov 15 2025, 6:49 AM
Unknown Object (File)
Nov 13 2025, 11:22 PM
Unknown Object (File)
Nov 13 2025, 2:54 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