]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
parisc: Fix ptrace check on syscall return
authorHelge Deller <deller@gmx.de>
Mon, 4 Oct 2021 22:27:49 +0000 (00:27 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Nov 2021 10:58:34 +0000 (11:58 +0100)
commite7c9efc39d3c82a561d0a93b38fa013bbe89222b
treebde7af996e6267d457b06e5a4d9d41253aa2ff51
parentb7d2398b7c22927d975530dd538dead589adce90
parisc: Fix ptrace check on syscall return

commit 8779e05ba8aaffec1829872ef9774a71f44f6580 upstream.

The TIF_XXX flags are stored in the flags field in the thread_info
struct (TI_FLAGS), not in the flags field of the task_struct structure
(TASK_FLAGS).

It seems this bug didn't generate any important side-effects, otherwise it
wouldn't have went unnoticed for 12 years (since v2.6.32).

Signed-off-by: Helge Deller <deller@gmx.de>
Fixes: ecd3d4bc06e48 ("parisc: stop using task->ptrace for {single,block}step flags")
Cc: Kyle McMartin <kyle@mcmartin.ca>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/parisc/kernel/entry.S