Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants