]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/audit: Fix syscall_get_arch()
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Fri, 14 Jan 2022 11:26:25 +0000 (11:26 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 15 Jan 2022 01:21:26 +0000 (12:21 +1100)
commit812d09172065831521299864ab979b3337d19039
treef0a4a8c2419b64b37b018925ff0fc8ef20170f07
parente676fdc335b71b79422f72cd377dc6fc62796008
powerpc/audit: Fix syscall_get_arch()

Commit 2e819024f8c5 ("powerpc/audit: Simplify syscall_get_arch()")
and commit 1fc272322080 ("powerpc/audit: Avoid unneccessary #ifdef
in syscall_get_arguments()")
replaced test_tsk_thread_flag(task, TIF_32BIT)) by is_32bit_task().

But is_32bit_task() applies on current task while be want the test
done on task 'task'

So add a new macro is_tsk_32bit_task() to check any task.

Fixes: 2e819024f8c5 ("powerpc/audit: Simplify syscall_get_arch()")
Fixes: 1fc272322080 ("powerpc/audit: Avoid unneccessary #ifdef in syscall_get_arguments()")
Cc: stable@vger.kernel.org
Reported-by: Dmitry V. Levin <ldv@altlinux.org>
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/c55cddb8f65713bf5859ed675d75a50cb37d5995.1642159570.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/syscall.h
arch/powerpc/include/asm/thread_info.h