]> git.baikalelectronics.ru Git - kernel.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)
committerHelge Deller <deller@gmx.de>
Mon, 1 Nov 2021 06:35:58 +0000 (07:35 +0100)
commit6068dcb91c865462fe617c5a45f2ba441b66acf0
tree634680b794cb753e4a13bc35b24637251e307e3b
parent91718a0229f7e537e4aa799a2d2d086042d69108
parisc: Fix ptrace check on syscall return

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: e71f9043452fb ("parisc: stop using task->ptrace for {single,block}step flags")
Cc: Kyle McMartin <kyle@mcmartin.ca>
Cc: stable@vger.kernel.org
arch/parisc/kernel/entry.S