Page MenuHomeFreeBSD

vm_phys_enq_range: no alignment assert for npages==0
ClosedPublic

Authored by dougm on Aug 4 2023, 2:07 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sep 24 2024, 6:31 AM
Unknown Object (File)
Sep 12 2024, 12:03 AM
Unknown Object (File)
Sep 6 2024, 7:26 PM
Unknown Object (File)
Jul 7 2024, 8:25 AM
Unknown Object (File)
Jun 18 2024, 4:36 PM
Unknown Object (File)
Mar 17 2024, 11:37 PM
Unknown Object (File)
Feb 21 2024, 4:01 AM
Unknown Object (File)
Dec 25 2023, 9:36 AM
Subscribers

Details

Summary

Do not assume that when vm_phys_enq_range is passed npages==0 that the vm_page argument is valid in any way, much less that it has a page-aligned address. Just don't look at it. Assert nothing about it.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

dougm requested review of this revision.Aug 4 2023, 2:07 AM
dougm created this revision.

This looks right to me, and works on my system. Perhaps a comment in the block before the routine would be appropriate, saying that npages may be zero, in which case nothing should be done.

Add to the preface comment that npages may be zero.

This revision was not accepted when it landed; it landed in state Needs Review.Aug 4 2023, 6:44 PM
This revision was automatically updated to reflect the committed changes.