X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/f427ee49d309d8fc33ebf3042c3a775f2f530ded..2a1bd2d3eef5c7a7bb14f4bb9fdbca9a96ee4752:/osfmk/arm64/status.c?ds=sidebyside diff --git a/osfmk/arm64/status.c b/osfmk/arm64/status.c index 221a2e1c0..c1a77bf66 100644 --- a/osfmk/arm64/status.c +++ b/osfmk/arm64/status.c @@ -320,8 +320,8 @@ machine_thread_state_convert_to_user( // Note that kernel threads never have disable_user_jop set if (current_thread()->machine.disable_user_jop || !thread_is_64bit_addr(current_thread()) || - thread->machine.disable_user_jop || !thread_is_64bit_addr(thread) || - (BootArgs->bootFlags & kBootFlagsDisableUserThreadStateJOP)) { + thread->machine.disable_user_jop || !thread_is_64bit_addr(thread) + ) { ts64->flags = __DARWIN_ARM_THREAD_STATE64_FLAGS_NO_PTRAUTH; return KERN_SUCCESS; } @@ -420,8 +420,8 @@ machine_thread_state_convert_from_user( } if (ts64->flags & __DARWIN_ARM_THREAD_STATE64_FLAGS_NO_PTRAUTH) { - if (thread->machine.disable_user_jop || !thread_is_64bit_addr(thread) || - (BootArgs->bootFlags & kBootFlagsDisableUserThreadStateJOP)) { + if (thread->machine.disable_user_jop || !thread_is_64bit_addr(thread) + ) { return KERN_SUCCESS; } // Disallow setting unsigned thread state on JOP-enabled processes.