]> sourceware.org Git - systemtap.git/commit
Fix aarch64 to properly access arguments for wrapped syscalls
authorWilliam Cohen <wcohen@redhat.com>
Tue, 23 Jul 2019 18:24:14 +0000 (14:24 -0400)
committerWilliam Cohen <wcohen@redhat.com>
Tue, 23 Jul 2019 18:24:14 +0000 (14:24 -0400)
commit7be7af0fda3633cd19e499617834cf4a5f51dd55
tree092938349f32121be1433fa6cf8d8b4b1a82daea
parent79d0c97f1988ee13777d774f21c8b389f5fa9a69
Fix aarch64 to properly access arguments for wrapped syscalls

Linux 4.18 added wrappers for aarch64 syscalls that pass a pointer to
a struct pt_regs holding the values for the actual arguments.  The
syscall tapsets initialize CONTEXT->sregs to point at this data
structure.  However, the aarch64 specific register access code was
using the CONTEXT->kregs and just getting the processor register state
when the kprobe triggered rather than the expected arguments in the
data structure being passed into the syscall.  The aarch64 specific
register code now gets the syscall arguments from the correct pt_regs
structure.
tapset/arm64/registers.stp
This page took 0.026832 seconds and 5 git commands to generate.