Skip to content

Instantly share code, notes, and snippets.

@R00tkitSMM
Last active March 12, 2022 18:04
Show Gist options
  • Save R00tkitSMM/bdf966621ec8131c00d55ccf3eff9384 to your computer and use it in GitHub Desktop.
Save R00tkitSMM/bdf966621ec8131c00d55ccf3eff9384 to your computer and use it in GitHub Desktop.
1-
fleh_dispatch64(asm code arm64 exception vector) -> sleh_synchronous ->
handle_abort -> handle_kernel_abort ->
panic_with_thread_kernel_state("Kernel data abort.", state);
2-
Entry(hndl_alltraps)
mov %esi, %eax
testb $3, %al
jz trap_from_kernel
EXT(idt64_hndl_table1):
.quad EXT(hndl_allintrs)
.quad EXT(hndl_alltraps)
trap_from_kernel -> CCALLWITHSP(kernel_trap) /* to kernel trap routine */ ->
kernel_trap -> panic_trap(x86_saved_state64_t *regs, uint32_t pl, kern_return_t fault_result)
-> panic("Kernel trap at 0x%016llx, type %d=%s, registers:\n"
3- panic (just WTF panic)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment