Page MenuHomeFreeBSD

bhyve: avoid overflow of BAR index
ClosedPublic

Authored by corvink on Mar 28 2022, 9:08 AM.
Tags
Referenced Files
F173864437: D34689.diff
Mon, Sep 28, 11:43 PM
Unknown Object (File)
Tue, Sep 22, 7:37 PM
Unknown Object (File)
Mon, Sep 14, 7:08 AM
Unknown Object (File)
Sun, Sep 6, 10:56 AM
Unknown Object (File)
Fri, Sep 4, 11:22 PM
Unknown Object (File)
Aug 29 2026, 1:18 AM
Unknown Object (File)
Aug 21 2026, 1:23 PM
Unknown Object (File)
Aug 20 2026, 8:34 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