| /xnu-11215/osfmk/kern/ |
| H A D | exception.c | 320 exception, in exception_deliver() 372 exception, in exception_deliver() 379 exception, in exception_deliver() 405 exception, in exception_deliver() 465 exception, in exception_deliver() 534 exception, in exception_deliver() 544 exception, in exception_deliver() 623 code[0] = exception; in exception_deliver_backtrace() 788 if ((exception != EXC_CRASH) && (exception != EXC_RESOURCE) && in exception_triage_thread() 789 (exception != EXC_GUARD) && (exception != EXC_CORPSE_NOTIFY)) { in exception_triage_thread() [all …]
|
| H A D | ux_handler.c | 133 exception_type_t exception, in catch_mach_exception_raise() argument 150 kr = handle_ux_exception(target_thread, exception, code[0], code[1]); in catch_mach_exception_raise() 176 exception_type_t exception, in catch_exception_raise() argument 192 exception, in catch_exception_raise() 200 __unused exception_type_t exception, in catch_exception_raise_state() argument 215 __unused exception_type_t exception, in catch_mach_exception_raise_state() argument 232 __unused exception_type_t exception, in catch_exception_raise_state_identity() argument 249 __unused exception_type_t exception, in catch_mach_exception_raise_state_identity() argument 266 __unused exception_type_t exception, in catch_mach_exception_raise_identity_protected() argument 277 __unused exception_type_t exception, in catch_mach_exception_raise_backtrace() argument [all …]
|
| H A D | exception.h | 56 exception_mask_t exception; member 66 exception_type_t exception, 71 exception_type_t exception, 80 exception_type_t exception); 86 extern kern_return_t task_exception_notify(exception_type_t exception,
|
| /xnu-11215/security/ |
| H A D | mac_mach.c | 226 int exception; in mac_task_check_set_task_exception_ports() local 244 for (exception = FIRST_EXCEPTION; exception < EXC_TYPES_COUNT; exception++) { in mac_task_check_set_task_exception_ports() 245 if (exception_mask & (1 << exception)) { in mac_task_check_set_task_exception_ports() 247 cred, &pident, exception, new_behavior); in mac_task_check_set_task_exception_ports() 262 int exception; in mac_task_check_set_thread_exception_ports() local 280 for (exception = FIRST_EXCEPTION; exception < EXC_TYPES_COUNT; exception++) { in mac_task_check_set_thread_exception_ports() 281 if (exception_mask & (1 << exception)) { in mac_task_check_set_thread_exception_ports() 309 int exception; in mac_task_check_set_host_exception_ports() local 314 for (exception = FIRST_EXCEPTION; exception < EXC_TYPES_COUNT; exception++) { in mac_task_check_set_host_exception_ports() 315 if (exception_mask & (1 << exception)) { in mac_task_check_set_host_exception_ports() [all …]
|
| /xnu-11215/tests/ipc/ |
| H A D | sys_perf_notify_test.c | 32 exception_type_t exception, in catch_mach_exception_raise_state() argument 41 #pragma unused(exception_port, exception, code, code_count, flavor, old_state, old_state_count, new… in catch_mach_exception_raise_state() 50 exception_type_t exception, in catch_mach_exception_raise_state_identity() argument 59 #pragma unused(exception_port, thread, task, exception, code, code_count, flavor, old_state, old_st… in catch_mach_exception_raise_state_identity() 69 exception_type_t exception, in catch_mach_exception_raise_state_identity_protected() argument 78 #pragma unused(exception_port, thread_id, tatask_id_tokensk, exception, codes, codeCnt, flavor, old… in catch_mach_exception_raise_state_identity_protected() 88 exception_type_t exception, in catch_mach_exception_raise_identity_protected() argument 95 T_QUIET; T_ASSERT_EQ(exception, EXC_RPC_ALERT, "exception type is EXC_RPC_ALERT"); in catch_mach_exception_raise_identity_protected() 105 exception_type_t exception, in catch_mach_exception_raise() argument 109 #pragma unused(exception_port, thread, task, exception, code, code_count) in catch_mach_exception_raise()
|
| /xnu-11215/osfmk/kdp/ml/x86_64/ |
| H A D | kdp_machdep.c | 73 unsigned int exception, in kdp_exception() argument 88 rq->exc_info[0].exception = exception; in kdp_exception() 378 exception = EXC_ARITHMETIC; in kdp_i386_trap() 383 exception = EXC_SOFTWARE; in kdp_i386_trap() 388 exception = EXC_ARITHMETIC; in kdp_i386_trap() 393 exception = EXC_BAD_INSTRUCTION; in kdp_i386_trap() 398 exception = EXC_BAD_INSTRUCTION; in kdp_i386_trap() 404 exception = EXC_BAD_INSTRUCTION; in kdp_i386_trap() 416 exception = EXC_BAD_ACCESS; in kdp_i386_trap() 422 exception = EXC_SOFTWARE; in kdp_i386_trap() [all …]
|
| /xnu-11215/tests/ |
| H A D | reply_port_defense.c | 56 exception_type_t exception, in catch_mach_exception_raise_state() argument 65 #pragma unused(exception_port, exception, code, code_count, flavor, old_state, old_state_count, new… in catch_mach_exception_raise_state() 74 exception_type_t exception, in catch_mach_exception_raise_state_identity() argument 93 exception_type_t exception, in catch_mach_exception_raise_state_identity_protected() argument 102 #pragma unused(exception_port, thread_id, task_id_token, exception, codes, codeCnt) in catch_mach_exception_raise_state_identity_protected() 113 exception_type_t exception, in catch_mach_exception_raise_identity_protected() argument 121 T_LOG("Caught exception type: %d code: 0x%llx", exception, codes[0]); in catch_mach_exception_raise_identity_protected() 122 exception_taken = exception; in catch_mach_exception_raise_identity_protected() 123 if (exception == EXC_GUARD) { in catch_mach_exception_raise_identity_protected() 135 exception_type_t exception, in catch_mach_exception_raise() argument [all …]
|
| H A D | hw_breakpoint_step_arm64.c | 33 exception_type_t exception, in catch_mach_exception_raise() argument 38 if (exception == EXC_BREAKPOINT || (exception == EXC_CRASH && atomic_load_explicit(&after_kill, in catch_mach_exception_raise() 40 T_LOG("Received exception %d", exception); in catch_mach_exception_raise() 45 T_FAIL("invalid exception type: %d", exception); in catch_mach_exception_raise() 52 exception_type_t exception, in catch_mach_exception_raise_state() argument 61 #pragma unused(exception_port, exception, code, code_count, flavor, old_state, old_state_count, new… in catch_mach_exception_raise_state() 70 exception_type_t exception, in catch_mach_exception_raise_state_identity() argument 79 #pragma unused(exception_port, thread, task, exception, code, code_count, flavor, old_state, old_st… in catch_mach_exception_raise_state_identity()
|
| H A D | exc_resource_threads.c | 32 exception_type_t exception, in catch_mach_exception_raise() argument 39 T_ASSERT_EQ(exception, EXC_CORPSE_NOTIFY, "exception type"); in catch_mach_exception_raise() 47 exception_type_t exception, in catch_mach_exception_raise_state() argument 56 #pragma unused(exception_port, exception, code, code_count, flavor, old_state, old_state_count, new… in catch_mach_exception_raise_state() 65 exception_type_t exception, in catch_mach_exception_raise_state_identity() argument 74 #pragma unused(exception_port, thread, task, exception, code, code_count, flavor, old_state, old_st… in catch_mach_exception_raise_state_identity()
|
| H A D | imm_pinned_control_port.c | 103 exception_type_t exception, in catch_mach_exception_raise_state() argument 112 #pragma unused(exception_port, exception, code, code_count, flavor, old_state, old_state_count, new… in catch_mach_exception_raise_state() 122 exception_type_t exception, in catch_mach_exception_raise_identity_protected() argument 139 T_LOG("Caught exception type: %d code: 0x%llx", exception, (uint64_t)codes[0]); in catch_mach_exception_raise_identity_protected() 140 if (exception == EXC_GUARD || exception == EXC_CORPSE_NOTIFY) { in catch_mach_exception_raise_identity_protected() 141 exception_taken = exception; in catch_mach_exception_raise_identity_protected() 153 exception_type_t exception, in catch_mach_exception_raise_state_identity() argument 162 #pragma unused(exception_port, thread, task, exception, code, code_count, flavor, old_state, old_st… in catch_mach_exception_raise_state_identity() 171 exception_type_t exception, in catch_mach_exception_raise() argument 175 #pragma unused(exception_port, thread, task, exception, code, code_count, flavor, old_state, old_st… in catch_mach_exception_raise()
|
| H A D | immovable_send.c | 31 exception_type_t exception, in catch_mach_exception_raise_state() argument 40 #pragma unused(exception_port, exception, code, code_count, flavor, old_state, old_state_count, new… in catch_mach_exception_raise_state() 49 exception_type_t exception, in catch_mach_exception_raise_state_identity() argument 58 #pragma unused(exception_port, thread, task, exception, code, code_count, flavor, old_state, old_st… in catch_mach_exception_raise_state_identity() 67 exception_type_t exception, in catch_mach_exception_raise() argument 72 T_ASSERT_EQ(exception, EXC_GUARD, "exception type"); in catch_mach_exception_raise()
|
| H A D | excserver_backtrace.defs | 60 * MiG definitions file for Mach exception interface. 85 exception : exception_type_t; 99 exception : exception_type_t; 118 exception : exception_type_t; 138 exception : exception_type_t; 157 exception : exception_type_t;
|
| H A D | exc_helpers.c | 69 exception_type_t exception, 77 exception_type_t exception, 174 exception_type_t exception, in catch_mach_exception_raise_identity_protected() argument 190 exc_handler_protected_callback(task_id_token, thread_id, exception, codes_64); in catch_mach_exception_raise_identity_protected() 283 exception_type_t exception, in catch_mach_exception_raise_backtrace() argument 287 return exc_handler_backtrace_callback(kcdata_object, exception, codes); in catch_mach_exception_raise_backtrace()
|
| /xnu-11215/bsd/uxkern/ |
| H A D | ux_exception.c | 56 ux_exception(int exception, in ux_exception() argument 63 if ((machine_signal = machine_exception(exception, code, subcode)) != 0) { in ux_exception() 67 switch (exception) { in ux_exception() 115 int exception, in handle_ux_exception() argument 128 int ux_signal = ux_exception(exception, code, subcode); in handle_ux_exception() 177 ut->uu_exception = exception; in handle_ux_exception()
|
| /xnu-11215/tests/vm/ |
| H A D | test_vm_no_pager.m | 61 // Status and signal will be empty since we took over exception handling 170 /* Mach exception handler routines */ 175 exception_type_t exception, 179 if (exception == EXC_CORPSE_NOTIFY) { 180 …T_LOG("successfully caught EXC_CORPSE_NOTIFY %d code[0] = 0x%016llx at 0x%016llx", exception, code… 193 exception_type_t exception, 209 exception_type_t exception, 226 exception_type_t exception, 235 * Setup exception handling port for EXC_CORPSE_NOTIFY. 236 * Runs mach_msg_server once for receiving exception messages from kernel [all …]
|
| /xnu-11215/libsyscall/mach/ |
| H A D | exc_catcher.c | 47 exception_type_t exception, in internal_catch_exception_raise() argument 61 return (*exc_raise_func)(exception_port, thread, task, exception, code, codeCnt); in internal_catch_exception_raise() 64 return catch_exception_raise(exception_port, thread, task, exception, code, codeCnt); in internal_catch_exception_raise()
|
| H A D | exc_catcher_state.c | 45 exception_type_t exception, in internal_catch_exception_raise_state() argument 64 …return (*exc_raise_state_func)(exception_port, exception, code, codeCnt, flavor, old_state, old_st… in internal_catch_exception_raise_state() 67 …return catch_exception_raise_state(exception_port, exception, code, codeCnt, flavor, old_state, ol… in internal_catch_exception_raise_state()
|
| H A D | exc_catcher_state_identity.c | 47 exception_type_t exception, in internal_catch_exception_raise_state_identity() argument 66 …return (*exc_raise_state_identity_func)(exception_port, thread, task, exception, code, codeCnt, fl… in internal_catch_exception_raise_state_identity() 69 …return catch_exception_raise_state_identity(exception_port, thread, task, exception, code, codeCnt… in internal_catch_exception_raise_state_identity()
|
| H A D | err_server.sub | 190 "(server/exception) GENERIC ERROR", 191 "(server/exception) invalid access", 192 "(server/exception) invalid instruction", 193 "(server/exception) arithmetic exception", 194 "(server/exception) emulation exception", 195 "(server/exception) software exception", 196 "(server/exception) breakpoint exception", 336 /* server/13; mach exception */ 338 "(server/exception)",
|
| /xnu-11215/osfmk/mach/ |
| H A D | mach_exc.defs | 60 * MiG definitions file for Mach exception interface. 84 exception : exception_type_t; 98 exception : exception_type_t; 117 exception : exception_type_t; 137 exception : exception_type_t; 156 exception : exception_type_t; 179 exception : exception_type_t;
|
| H A D | task.defs | 269 * Set an exception handler for a task on one or more exception types. 271 * no thread-specific exception handlers or those handlers returned an 283 * Lookup some of the old exception handlers for a task 301 * Set an exception handler for a thread on one or more exception types. 302 * At the same time, return the previously defined exception handlers for 606 …* hardened mach exception handler, and it adds additional security guarantees to this exception po… 610 * 3. When using *STATE* behaviors of exception handling, only the PC is allowed to be set. 611 * 4. Setting the PC in an exception handler must be signed using a diversifier of 614 * set of PC's may be used with this exception handler 616 * entitlement is disallowed, and you must use this hardened exception flow.
|
| H A D | thread_act.defs | 260 * Set an exception handler for a thread on one or more exception types 270 * Lookup some of the old exception handlers for a thread 287 * Set an exception handler for a thread on one or more exception types. 288 * At the same time, return the previously defined exception handlers for 395 exception : int; 416 * hardened exception handler. Only one hardened exception handler is allowed
|
| /xnu-11215/tests/skywalk/ |
| H A D | skywalk_test_driver.c | 66 exception_type_t exception, in catch_mach_exception_raise() argument 76 if (exception != EXC_CRASH && exception != EXC_GUARD) { in catch_mach_exception_raise() 77 T_LOG("Unexpected exception received: %d", exception); in catch_mach_exception_raise() 100 exception_type_t exception, in catch_mach_exception_raise_state() argument 118 exception_type_t exception, in catch_mach_exception_raise_state_identity() argument
|
| /xnu-11215/bsd/sys/ |
| H A D | ux_exception.h | 63 machine_exception(int exception, mach_exception_code_t code, 67 handle_ux_exception(thread_t thread, int exception,
|
| /xnu-11215/osfmk/kdp/ml/arm/ |
| H A D | kdp_machdep.c | 76 …unsigned char * pkt, int * len, unsigned short * remote_port, unsigned int exception, unsigned int… in kdp_exception() argument 94 rq->exc_info[0].exception = exception; in kdp_exception() 329 kdp_trap(unsigned int exception, struct arm_saved_state * saved_state) in kdp_trap() argument 331 handle_debugger_trap(exception, 0, 0, saved_state); in kdp_trap()
|