parisc: fix a bug when syscall number of tracee is __NR_Linux_syscalls

[ Upstream commit f0b22d1bb2 ]

Do not load one entry beyond the end of the syscall table when the
syscall number of a traced process equals to __NR_Linux_syscalls.
Similar bug with regular processes was fixed by commit 3bb457af4f
("[PARISC] Fix bug when syscall nr is __NR_Linux_syscalls").

This bug was found by strace test suite.

Cc: stable@vger.kernel.org
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Acked-by: Helge Deller <deller@gmx.de>
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
This commit is contained in:
Dmitry V. Levin 2016-04-27 04:56:11 +03:00 • committed by Sasha Levin
commit aa7ebd32f9