alpha: fix syscall entry in !AUDUT_SYSCALL case
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 18 Sep 2021 22:18:48 +0000 (18:18 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:31:55 +0000 (13:31 +0100)
commit3878f601e14c344f06b797bec97ba6b0e96627e0
tree800451173a2aaf71ca7a6b9c79d8d10588e5c37f
parent84fe26b06f82da05069319653f6de8789d98cfba
alpha: fix syscall entry in !AUDUT_SYSCALL case

[ Upstream commit f7b2431a6d22f7a91c567708e071dfcd6d66db14 ]

We only want to take the slow path if SYSCALL_TRACE or SYSCALL_AUDIT is
set; on !AUDIT_SYSCALL configs the current tree hits it whenever _any_
thread flag (including NEED_RESCHED, NOTIFY_SIGNAL, etc.) happens to
be set.

Fixes: a9302e843944 "alpha: Enable system-call auditing support"
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/alpha/kernel/entry.S