Page MenuHomeFreeBSD

vm_phys_avail_count(): Fix out-of-bounds accesses
ClosedPublic

Authored by olce on Jan 23 2025, 5:15 PM.
Tags
None
Referenced Files
F114178994: D48629.diff
Tue, Apr 8, 6:03 PM
Unknown Object (File)
Mon, Mar 17, 12:46 AM
Unknown Object (File)
Mar 6 2025, 3:21 AM
Unknown Object (File)
Mar 4 2025, 8:39 PM
Unknown Object (File)
Mar 3 2025, 4:28 PM
Unknown Object (File)
Mar 1 2025, 1:40 PM
Unknown Object (File)
Feb 19 2025, 9:12 PM
Unknown Object (File)
Feb 18 2025, 12:56 PM
Subscribers

Details

Summary

On improper termination of phys_avail[] (two consecutive 0 starting at
an even index), this function would (unnecessarily) continue searching
for the termination markers even if the index was out of bounds.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 62296
Build 59180: arc lint + arc unit

Event Timeline

olce requested review of this revision.Jan 23 2025, 5:15 PM
sys/vm/vm_phys.c
1786
olce marked an inline comment as done.

Fix spacing.

This revision is now accepted and ready to land.Feb 18 2025, 8:05 PM