HomeFreeBSD

vm_kern: Avoid sign extension in the KVA_QUANTUM definition

Description

vm_kern: Avoid sign extension in the KVA_QUANTUM definition

Otherwise, on a powerpc64 NUMA system with hashed page tables, the
first-level superpage reservation size is large enough that the value of
the kernel KVA arena import quantum, KVA_NUMA_IMPORT_QUANTUM, is
negative and gets sign-extended when passed to vmem_set_import(). This
results in a boot-time hang on such platforms.

Reported by: bdragon

(cherry picked from commit 23e875fd97fb9f17b3f5dc2b26082f25e1a86b6f)

Details

Provenance
markjAuthored on Feb 22 2021, 8:50 PM
Parents
rG66308a13dddc: Fix bug 253158 - Panic: snapacct_ufs2: bad block - mksnap_ffs(8) crash
Branches
Unknown
Tags
Unknown