Page MenuHomeFreeBSD

Fix kvm bitmap index
AbandonedPublic

Authored by luporl on Sep 6 2019, 5:43 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Oct 10, 2:58 AM
Unknown Object (File)
Fri, Oct 2, 1:42 PM
Unknown Object (File)
Thu, Sep 24, 4:47 AM
Unknown Object (File)
Sun, Sep 13, 10:03 PM
Unknown Object (File)
Sep 9 2026, 8:25 AM
Unknown Object (File)
Sep 3 2026, 3:52 PM
Unknown Object (File)
Sep 2 2026, 7:52 PM
Unknown Object (File)
Sep 2 2026, 7:10 AM
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