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)
Sat, Nov 9, 10:08 PM
Unknown Object (File)
Oct 9 2024, 6:03 PM
Unknown Object (File)
Sep 27 2024, 4:20 PM
Unknown Object (File)
Sep 25 2024, 3:14 AM
Unknown Object (File)
Sep 25 2024, 1:39 AM
Unknown Object (File)
Sep 11 2024, 1:36 PM
Unknown Object (File)
Sep 5 2024, 11:59 PM
Unknown Object (File)
Sep 3 2024, 7:08 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 Skipped
Unit
Tests Skipped