It turns out jmp functions can be identified by noreturn flag.
If any function calls this function, that function should also be unhooked, but there seem to be no way to know which function called these function other than using gdb and check return log.
A good news is these functions are not called frequently.
It is possible to only attach prehook to it.
It turns out jmp functions can be identified by noreturn flag. If any function calls this function, that function should also be unhooked, but there seem to be no way to know which function called these function other than using gdb and check return log. A good news is these functions are not called frequently. It is possible to only attach prehook to it.