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
Description
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.