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, Apr 18, 1:10 PM
Unknown Object (File)
Sat, Apr 18, 12:40 PM
Unknown Object (File)
Sat, Apr 18, 5:58 AM
Unknown Object (File)
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
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 65429
Build 62312: arc lint + arc unit