Page MenuHomeFreeBSD

Fix kvm bitmap index
AbandonedPublic

Authored by luporl on Sep 6 2019, 5:43 PM.
Tags
None
Referenced Files
F132951059: D21554.id61745.diff
Tue, Oct 21, 11:18 AM
Unknown Object (File)
Sun, Oct 19, 6:38 PM
Unknown Object (File)
Fri, Oct 17, 5:55 AM
Unknown Object (File)
Wed, Oct 15, 6:28 AM
Unknown Object (File)
Mon, Oct 13, 10:10 AM
Unknown Object (File)
Wed, Oct 8, 2:34 AM
Unknown Object (File)
Fri, Oct 3, 9:44 AM
Unknown Object (File)
Wed, Oct 1, 3:24 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