Ian Forbes

Results 11 comments of Ian Forbes

TLS is reset to zero after `clone`. You have to set the variables manually every time you create a new thread. The result is that `intercept_hook_point_clone_child` will never work and...

Why did you close this? It seems valid.

There are no changes to the README in theses commits.

Are you trying to create an in-source build?

Did you build in `.`?

Can you share a backtrace if possible?

The presence of `clone3` is determined by the kernel version, not the glibc version so the title is incorrect. Clone3 was added in kernel 5.3.

You'll have to post the link command and symbol table for the objects involved in the link with `readelf -s`. There's not enough info here.

Also for `movq intercept_hook_point (%rip), %rcx` the address of intercept_hook_point will be relative to `%fs`

You can't return after calling `clone` in the child with a new stack at [intercept_routine:702](https://github.com/pmem/syscall_intercept/blob/master/src/intercept.c#L702) because there is nothing to return to. The return address is stored on the stack...