]> granicus.if.org Git - psmisc/commit
This patch is to 'Add ARM64 support to peekfd'.
authorakaher <akaher@vmware.com>
Tue, 16 Apr 2019 13:50:08 +0000 (13:50 +0000)
committerCraig Small <csmall@enc.com.au>
Thu, 9 May 2019 11:27:09 +0000 (21:27 +1000)
commit32432ef9bbb44ea74d4dae858786db75c082623f
tree37c09dfcf3249690acd29eaa82dc2bdd3b301029
parentd055680b41a2ca9a195e450bbc41728efc8d4f86
This patch is to 'Add ARM64 support to peekfd'.

ARM64 copy user_pt_regs to user space instead of pt_regs.
So in this patch, mapping the require user_pt_regs except orig_x0,
as orig_x0 not available in user_pt_regs for SYSCALL exit.

For each SYSCALL, peekfd catches user_pt_regs for SYSCALL entry/exit.
Value of orig_x0 is available in user_pt_regs->x0 of SYSCALL entry.

So to get orig_x0, stores user_pt_regs of SYSCALL entry,
and then compare 'fd and addr of buffer' of  SYSCALL exit
with SYSCALL entry to retrive orig_x0 at the time of SYSCALL exit.

Signed-off-by: Ajay Kaher <akaher@vmware.com>
Makefile.am
configure.ac
src/peekfd.c