]> git.baikalelectronics.ru Git - kernel.git/commit
mips: fix mips_get_syscall_arg o32 check
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 21 Nov 2018 19:14:39 +0000 (22:14 +0300)
committerPaul Burton <paul.burton@mips.com>
Wed, 21 Nov 2018 19:21:52 +0000 (11:21 -0800)
commit280b239cf96ae95f50b2bd6e2a6b495bfbd9a3c3
tree1c1c41f014c7064d975b31a67724adaee784086a
parente41ebf6d3e171c3786ae09bf0aad9a56df449b3c
mips: fix mips_get_syscall_arg o32 check

When checking for TIF_32BIT_REGS flag, mips_get_syscall_arg() should
use the task specified as its argument instead of the current task.

This potentially affects all syscall_get_arguments() users
who specify tasks different from the current.

Fixes: a4a41fe110898 ("MIPS: Enable HAVE_ARCH_TRACEHOOK.")
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Patchwork: https://patchwork.linux-mips.org/patch/21185/
Cc: Elvira Khabirova <lineprinter@altlinux.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: James Hogan <jhogan@kernel.org>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Cc: stable@vger.kernel.org # v3.13+
arch/mips/include/asm/syscall.h