Skip to content

Commit

Permalink
interceptor: Pause cloaked threads too (#763)
Browse files Browse the repository at this point in the history
This prevents random `SIGBUS` crashes on Frida's own threads while using
`Interceptor` to hook functions living in the same page as any of the
ones potentially used internally.
  • Loading branch information
mrmacete authored Dec 18, 2023
1 parent ea6f3b3 commit 76b1de5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gum/guminterceptor.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include "guminterceptor-priv.h"
#include "gumlibc.h"
#include "gummemory.h"
#include "gumprocess.h"
#include "gumprocess-priv.h"
#include "gumtls.h"

#include <string.h>
Expand Down Expand Up @@ -1049,7 +1049,7 @@ gum_interceptor_transaction_end (GumInterceptorTransaction * self)
if (!rwx_supported)
{
suspend_op.current_thread_id = gum_process_get_current_thread_id ();
gum_process_enumerate_threads (gum_maybe_suspend_thread, &suspend_op);
_gum_process_enumerate_threads (gum_maybe_suspend_thread, &suspend_op);
}

for (cur = addresses; cur != NULL; cur = cur->next)
Expand Down

0 comments on commit 76b1de5

Please sign in to comment.