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

Workaround SYS_clone3 in Ubuntu 22.04 #115

Open
StorWav opened this issue May 21, 2022 · 1 comment
Open

Workaround SYS_clone3 in Ubuntu 22.04 #115

StorWav opened this issue May 21, 2022 · 1 comment
Labels

Comments

@StorWav
Copy link

StorWav commented May 21, 2022

The GLIBC 2.35 in Ubuntu 22.04 uses SYS_clone3 to create threads, that seems to cause segfault in hook. I use the following workaround to force a fall back to SYS_clone.

if (syscall_number == SYS_clone3)
{
    *result = -ENOSYS;
    return 0;
}

But I guess this may not work if actual call is clone3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants