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)
Sat, Jun 13, 6:44 PM
Unknown Object (File)
May 13 2026, 6:42 AM
Unknown Object (File)
May 13 2026, 6:42 AM
Unknown Object (File)
May 12 2026, 5:08 PM
Unknown Object (File)
May 12 2026, 5:08 PM
Unknown Object (File)
May 12 2026, 1:01 AM
Unknown Object (File)
May 12 2026, 1:01 AM
Unknown Object (File)
Apr 29 2026, 3:33 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