aarch64, arm, sparc: add comments on fault injection support in kernel

* linux/aarch64/set_scno.c: Note the kernel commit that introduced
NT_ARM_SYSTEM_CALL support.
* linux/arm/set_scno.c: Note the kernel commit that introduced
PTRACE_SET_SYSCALL support.
* linux/sparc/set_scno.c: Note the kernel commit that introduced
reloading from the syscall number register.
This commit is contained in:
Дмитрий Левин 2016-11-28 19:46:50 +00:00
parent f3b5837608
commit 7b3b12b793
3 changed files with 13 additions and 0 deletions

View File

@ -1,6 +1,10 @@
#ifndef NT_ARM_SYSTEM_CALL
# define NT_ARM_SYSTEM_CALL 0x404
#endif
/*
* NT_ARM_SYSTEM_CALL regset is supported by linux kernel
* starting with commit v3.19-rc1~59^2~16.
*/
static int
arch_set_scno(struct tcb *tcp, long scno)

View File

@ -1,6 +1,10 @@
#ifndef PTRACE_SET_SYSCALL
# define PTRACE_SET_SYSCALL 23
#endif
/*
* PTRACE_SET_SYSCALL is supported by linux kernel
* starting with commit v2.6.16-rc1~107^2
*/
static int
arch_set_scno(struct tcb *tcp, long scno)

View File

@ -1,3 +1,8 @@
/*
* Reloading the syscall number from %g1 register is supported
* by linux kernel starting with commit v4.5-rc7~35^2~3.
*/
static int
arch_set_scno(struct tcb *tcp, long scno)
{