Skip to content

Commit cc532fa

Browse files
committed
Fix vm_fault_enter for 18.4
1 parent 3d4a85b commit cc532fa

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

checkra1n/kpf/main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1338,18 +1338,18 @@ void kpf_amfi_kext_patches(xnu_pf_patchset_t* patchset) {
13381338
// 0xfffffff008b0ad5c 210e0054 b.ne 0xfffffff008b0af20
13391339
//
13401340
// r2:
1341-
// /x 3f680171000000543f6c017101000054:ffffffff1f0000ffffffffff1f0000ff
1341+
// /x 3f680171000000543f6c017100000054:ffffffff1f0000ffffffffff1e0000ff
13421342
uint64_t iiii_matches[] = {
13431343
0x7101683f, // cmp w1, 0x5a
13441344
0x54000000, // b.eq
13451345
0x71016c3f, // cmp w1, 0x5b
1346-
0x54000001, // b.ne
1346+
0x54000000, // b.eq / b.ne
13471347
};
13481348
uint64_t iiii_masks[] = {
13491349
0xffffffff,
13501350
0xff00001f,
13511351
0xffffffff,
1352-
0xff00001f,
1352+
0xff00001e,
13531353
};
13541354
xnu_pf_maskmatch(patchset, "amfi_mac_syscall_low", iiii_matches, iiii_masks, sizeof(iiii_matches)/sizeof(uint64_t), false, (void*)kpf_amfi_mac_syscall_low);
13551355
}

0 commit comments

Comments
 (0)