What does macOS kernel return 0xDC008005 (kOSKextReturnInvalidArgument) mean?

 
Previous Next
kOSKextReturnNotPrivileged kOSKextReturnNotFound

kOSKextReturnInvalidArgument

The request is invalid before the loader can classify the kext

kOSKextReturnInvalidArgument points to an invalid API argument. It is fundamentally different from kOSKextReturnNotFound: the latter is used when a valid search item is not found, while this status means that the caller did not supply a value acceptable to the interface.

Do not turn it into a generic “invalid kext” message. The defect can be a load tag, bundle identifier, URL, option set, or another argument to the OSKext call. XNU’s API documentation, for example, names the invalid load-tag condition for OSKextRetainKextWithLoadTag.

What to validate

  • The exact OSKext function and all input values in their original representation.
  • Whether an identifier, URL, or load tag was omitted, malformed, or outside the value range expected by that function.
  • Whether a wrapper transformed the caller’s input before the OSKext request was issued.

References


Looking for a different code? Search another status or error code.