Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2129cf58 authored by Mike Frysinger's avatar Mike Frysinger Committed by Sasha Levin
Browse files

sparc: Fix system call tracing register handling.



[ Upstream commit 1a40b95374f680625318ab61d81958e949e0afe3 ]

A system call trace trigger on entry allows the tracing
process to inspect and potentially change the traced
process's registers.

Account for that by reloading the %g1 (syscall number)
and %i0-%i5 (syscall argument) values.  We need to be
careful to revalidate the range of %g1, and reload the
system call table entry it corresponds to into %l7.

Reported-by: default avatarMike Frysinger <vapier@gentoo.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Tested-by: default avatarMike Frysinger <vapier@gentoo.org>
Signed-off-by: default avatarSasha Levin <sasha.levin@oracle.com>
parent 25b37ef7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment