Page MenuHomeFreeBSD

Fix kvm bitmap index
AbandonedPublic

Authored by luporl on Sep 6 2019, 5:43 PM.
Tags
None
Referenced Files
F151175717: D21554.id.diff
Mon, Apr 6, 2:49 PM
Unknown Object (File)
Sat, Apr 4, 1:48 PM
Unknown Object (File)
Fri, Mar 27, 1:30 AM
Unknown Object (File)
Thu, Mar 26, 7:56 PM
Unknown Object (File)
Sun, Mar 22, 4:10 PM
Unknown Object (File)
Wed, Mar 18, 5:19 AM
Unknown Object (File)
Thu, Mar 12, 6:03 PM
Unknown Object (File)
Mar 2 2026, 6:41 PM
Subscribers

Details

Reviewers
will
emaste
Summary

_kvm_bitmap_next may perform an out-of-bounds access on bm->map array.
It seems the right is to divide *idx by CHAR_BIT, instead of multiplying it.

Another thing that looks strange to me is the function returning when it finds a bit that is not set. Shouldn't it be the opposite?

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 26319
Build 24798: arc lint + arc unit