]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
sparc: Fix system call tracing register handling.
authorMike Frysinger <vapier@gentoo.org>
Mon, 18 Jan 2016 11:32:30 +0000 (06:32 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 Jan 2016 00:06:00 +0000 (16:06 -0800)
commit1a40b95374f680625318ab61d81958e949e0afe3
tree6340453bf231d117cd93aa6cc02556af3403ae2f
parentc10910c323bb9e7fc53ba25c83d1adeb9fb20878
sparc: Fix system call tracing register handling.

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: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Tested-by: Mike Frysinger <vapier@gentoo.org>
arch/sparc/kernel/entry.S
arch/sparc/kernel/syscalls.S