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
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
Unknown Object (File)
Feb 14 2025, 10:25 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 Not Applicable
Unit
Tests Not Applicable

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