From: Dmitry V. Levin Date: Mon, 28 Nov 2016 19:46:50 +0000 (+0000) Subject: aarch64, arm, sparc: add comments on fault injection support in kernel X-Git-Tag: v4.15~69 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7b3b12b79310fea1ec55d6bda7d2c0f2ce3c1baa;p=strace 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. --- diff --git a/linux/aarch64/set_scno.c b/linux/aarch64/set_scno.c index 70e0a172..24498d50 100644 --- a/linux/aarch64/set_scno.c +++ b/linux/aarch64/set_scno.c @@ -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) diff --git a/linux/arm/set_scno.c b/linux/arm/set_scno.c index f99a7fbf..928f1e92 100644 --- a/linux/arm/set_scno.c +++ b/linux/arm/set_scno.c @@ -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) diff --git a/linux/sparc/set_scno.c b/linux/sparc/set_scno.c index 0f8c4ace..bba124a8 100644 --- a/linux/sparc/set_scno.c +++ b/linux/sparc/set_scno.c @@ -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) {