Page MenuHomeFreeBSD

i386: Avoid calling kmem_alloc_contig(M_NEVERFREED)
ClosedPublic

Authored by markj on Jul 14 2025, 7:40 PM.
Tags
None
Referenced Files
F137898202: D51311.diff
Thu, Nov 27, 12:28 AM
Unknown Object (File)
Thu, Nov 20, 2:25 AM
Unknown Object (File)
Sat, Nov 15, 8:21 PM
Unknown Object (File)
Thu, Nov 6, 4:00 AM
Unknown Object (File)
Wed, Oct 29, 8:30 AM
Unknown Object (File)
Oct 27 2025, 2:20 AM
Unknown Object (File)
Oct 13 2025, 12:14 PM
Unknown Object (File)
Oct 13 2025, 12:14 PM
Subscribers

Details

Summary

vm_page_alloc_contig* don't handle VM_ALLOC_NOFREE. After commit
07297aee35f2 ("vm_page: update comments and KASSERT()s concerning page allocation"),
pmap_pdpt_allocf() triggers one of the added assertions, since pdptzone
is a NOFREE zone.

Simply clear the flag when allocating a slab. It is not worth trying to
implement support for the NOFREE allocator here.

Reported by: Jenkins

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable