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
Unknown Object (File)
Mon, Oct 13, 12:14 PM
Unknown Object (File)
Mon, Oct 13, 12:14 PM
Unknown Object (File)
Mon, Oct 13, 12:14 PM
Unknown Object (File)
Sun, Oct 12, 11:37 PM
Unknown Object (File)
Sun, Oct 12, 7:01 AM
Unknown Object (File)
Fri, Oct 10, 11:50 PM
Unknown Object (File)
Fri, Oct 3, 8:37 PM
Unknown Object (File)
Fri, Oct 3, 5:01 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