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, Sep 6, 10:56 AM
Unknown Object (File)
Fri, Sep 4, 11:22 PM
Unknown Object (File)
Sat, Aug 29, 1:18 AM
Unknown Object (File)
Fri, Aug 21, 1:23 PM
Unknown Object (File)
Thu, Aug 20, 8:34 PM
Unknown Object (File)
Thu, Aug 20, 3:28 PM
Unknown Object (File)
Thu, Aug 20, 12:51 PM
Unknown Object (File)
Thu, Aug 20, 10:55 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