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
F152888332: D51311.id158539.diff
Fri, Apr 17, 7:28 PM
Unknown Object (File)
Thu, Apr 16, 1:26 AM
Unknown Object (File)
Mon, Apr 13, 6:29 PM
Unknown Object (File)
Sun, Apr 12, 3:44 PM
Unknown Object (File)
Sun, Apr 12, 4:45 AM
Unknown Object (File)
Sat, Mar 28, 9:49 AM
Unknown Object (File)
Fri, Mar 27, 11:11 PM
Unknown Object (File)
Thu, Mar 26, 1:30 AM
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