Skip to content

Commit

Permalink
kpf: Fix vm_fault_enter patch for iOS 18
Browse files Browse the repository at this point in the history
  • Loading branch information
kok3shidoll authored and asdfugil committed Jul 4, 2024
1 parent 50ecf34 commit f5dd72d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion checkra1n/kpf/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ bool vm_fault_enter_callback14(struct xnu_pf_patch* patch, uint32_t* opcode_stre
DEVLOG("Trying vm_fault_enter at 0x%" PRIx64 "", xnu_ptr_to_va(opcode_stream));
// r2 /x
// Make sure this was preceded by a "tbz w[16-31], 2, ..." that jumps to the code we're currently looking at
uint32_t *tbz = find_prev_insn(opcode_stream, 0x18, 0x36100010, 0xfff80010);
uint32_t *tbz = find_prev_insn(opcode_stream, 0x20, 0x36100010, 0xfff80010);
if(!tbz)
{
// This isn't our TBZ
Expand Down

0 comments on commit f5dd72d

Please sign in to comment.