Page MenuHomeFreeBSD

bhyve: avoid overflow of BAR index
ClosedPublic

Authored by corvink on Mar 28 2022, 9:08 AM.
Tags
Referenced Files
F167282233: D34689.id104449.diff
Thu, Aug 20, 3:28 PM
F167266462: D34689.id104269.diff
Thu, Aug 20, 12:51 PM
F167258421: D34689.id104449.diff
Thu, Aug 20, 10:55 AM
Unknown Object (File)
Wed, Aug 19, 5:07 PM
Unknown Object (File)
Wed, Aug 19, 6:35 AM
Unknown Object (File)
Tue, Aug 18, 8:26 PM
Unknown Object (File)
Fri, Jul 31, 2:18 AM
Unknown Object (File)
Fri, Jul 31, 2:18 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