Index: sys/kern/kern_malloc.c =================================================================== --- sys/kern/kern_malloc.c +++ sys/kern/kern_malloc.c @@ -1217,7 +1217,8 @@ KASSERT(vm_cnt.v_page_count != 0, ("malloc_register before vm_init")); mtp = data; - if (mtp->ks_version != M_VERSION) + /* XXX: Some platforms erroneously report the version as the magic number */ + if (mtp->ks_version != M_VERSION && mtp->ks_version != M_MAGIC) panic("malloc_init: type %s with unsupported version %lu", mtp->ks_shortdesc, mtp->ks_version); Index: sys/sys/malloc.h =================================================================== --- sys/sys/malloc.h +++ sys/sys/malloc.h @@ -64,6 +64,7 @@ #define M_NEXTFIT 0x8000 /* only for vmem, follow cursor */ #define M_VERSION 2020110501 +#define M_MAGIC 877983977 /* Needed for certain platforms */ /* * Two malloc type structures are present: malloc_type, which is used by a