Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linux: Allocate stack for injector's remote calls #545

Merged
merged 1 commit into from
Oct 21, 2024

Commits on Oct 21, 2024

  1. linux: Allocate stack for injector's remote calls

    For some target programs it's not reasonable to assume that any hijacked
    thread has a large stack. For example, in Go, stacks are often small and
    are allocated on the heap. The injector bootstrap program uses kilobytes
    of stack. In order to side-step this problem, this patch changes the
    boostrapper to allocate an auxiliary stack for remote calls to use and,
    for the bootstrapper and loader, uses it.
    
    The calls to mmap and munmap don't use much stack, so they are fine.
    
    Fixes frida#544.
    ajwerner authored and oleavr committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    6e0f27f View commit details
    Browse the repository at this point in the history