From here , it says:
"Some special system calls that need to keep a full full stack stack."
And I think execve is just one of these special system calls.
From stub_execve code, if you want to connect it, at least you can try:
(1) Know the meaning of this assembly code and do it yourself, then you can call your own function in your own assembler code.
(2) From the middle of the build code, it has call sys_execve , you can replace the sys_execve address with your own hook function.
source share