Index: sys/dev/ksyms/ksyms.c =================================================================== --- sys/dev/ksyms/ksyms.c +++ sys/dev/ksyms/ksyms.c @@ -444,7 +444,9 @@ object = vm_object_allocate(OBJT_DEFAULT, OFF_TO_IDX(round_page(elfsz))); + VM_OBJECT_WLOCK(object); vm_object_set_flag(object, OBJ_NOSPLIT); + VM_OBJECT_WUNLOCK(object); sc->sc_obj = object; sc->sc_objsz = elfsz;