Files
The Thor Group 122470d611 Separate override syscall from override symbol
Due unique characteristics of stub syscalls
(e.g. fork or execve) a special care needs
to be taken to ensure no compiler
optimizations nor C calling convention will
break the stack and/or registers. In this
commit we separated normal override syscall
routines while adding helper macros to
define syscall shims properly once and for
all (hopefully). They ensure proper linkage
and calling conventions are used (even if
not enforced).

This also adds more documentation to the
override_syscall with hints how to properly
override different syscalls.

Reading of the two following articles is
mandatory:
https://lwn.net/Articles/604287/
https://lwn.net/Articles/604406/
-
..