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)
Sun, Dec 21, 10:15 PM
Unknown Object (File)
Sun, Dec 21, 2:11 AM
Unknown Object (File)
Sat, Dec 20, 11:24 AM
Unknown Object (File)
Fri, Dec 5, 1:42 PM
Unknown Object (File)
Fri, Dec 5, 1:41 PM
Unknown Object (File)
Mon, Dec 1, 4:02 PM
Unknown Object (File)
Sun, Nov 30, 2:26 AM
Unknown Object (File)
Sun, Nov 30, 12:39 AM
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