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)
Wed, Sep 11, 1:36 PM
Unknown Object (File)
Thu, Sep 5, 11:59 PM
Unknown Object (File)
Tue, Sep 3, 7:08 AM
Unknown Object (File)
Sun, Sep 1, 11:09 AM
Unknown Object (File)
Thu, Aug 29, 3:55 PM
Unknown Object (File)
Aug 24 2024, 4:43 AM
Unknown Object (File)
Aug 17 2024, 2:50 PM
Unknown Object (File)
Aug 10 2024, 10:16 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