Site icon EfmSoft

What does macOS kernel return 1 (KERN_INVALID_ADDRESS) mean?

 
Could be also:
ConstantTypeOS
ERROR_INVALID_FUNCTIONWin32 errorWindows
STATUS_WAIT_1NTSTATUSWindows
kOSReturnErrorKern returnMac
ippStsNoOperationIntel Ipp StatusAny
S_FALSEHRESULTWindows
WDSCP_CATEGORYHRESULTWindows
WDSMCSERVER_CATEGORYHRESULTWindows
WDSTPTMGMT_CATEGORYHRESULTWindows
EPERMerrnoAny
APC_INDEX_MISMATCHBugCheck CodeWindows
Previous Next
kOSReturnError KERN_PROTECTION_FAILURE

KERN_INVALID_ADDRESS

KERN_INVALID_ADDRESS is a Mach virtual-memory result. The address supplied to the operation is not valid in the target task's current address map. It is not the same as a POSIX EFAULT displayed by a high-level API, although both often point to an invalid memory range.

The important distinction is between an address that has no usable mapping and an address that is mapped but has insufficient permissions. XNU uses KERN_PROTECTION_FAILURE for the second case. This distinction matters when diagnosing a failed mach_vm_* operation, a debugger, or code working with another process: changing page protections cannot repair a hole in the address map.

What to check

Mach models each task as owning a sparse virtual address space. The VM interface manages that map; a numerical address is meaningful only in the relevant task and only while its mapping remains present.

References


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

Exit mobile version