Skip to content

Commit

Permalink
Fix mitigation detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Siguza committed Jun 15, 2021
1 parent 557cbee commit 89b2551
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 @@ -1669,7 +1669,7 @@ void command_kpf() {
xnu_pf_patchset_destroy(xnu_plk_data_const_patchset);
}

const char kmap_port_string[] = "userspace has control access to a kernel map";
const char kmap_port_string[] = "userspace has control access to a"; // panic string is broken up over multiple lines, which in some versions inserted quotes
const char *kmap_port_string_match = memmem(text_cstring_range->cacheable_base, text_cstring_range->size, kmap_port_string, strlen(kmap_port_string));

kpf_dyld_patch(xnu_text_exec_patchset);
Expand Down

0 comments on commit 89b2551

Please sign in to comment.