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
F144028988: D48629.id149785.diff
Tue, Feb 3, 2:52 PM
Unknown Object (File)
Sat, Jan 31, 2:20 PM
Unknown Object (File)
Mon, Jan 26, 7:10 PM
Unknown Object (File)
Jan 4 2026, 10:11 AM
Unknown Object (File)
Dec 21 2025, 10:15 PM
Unknown Object (File)
Dec 21 2025, 2:11 AM
Unknown Object (File)
Dec 20 2025, 11:24 AM
Unknown Object (File)
Dec 5 2025, 1:42 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 61928
Build 58812: arc lint + arc unit

Event Timeline

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

Fix spacing.

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