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

Workaround SYS_clone3 in Ubuntu 22.04 #115

Open
@StorWav

Description

@StorWav

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions