Skip to content

Commit 32498b8

Browse files
hdellergregkh
authored andcommitted
parisc: Fix ptrace check on syscall return
commit 8779e05 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: ecd3d4b ("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>
1 parent 15b4142 commit 32498b8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/parisc/kernel/entry.S‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1848,7 +1848,7 @@ syscall_restore:
18481848
LDREG TI_TASK-THREAD_SZ_ALGN-FRAME_SIZE(%r30),%r1
18491849

18501850
/* Are we being ptraced? */
1851-
ldw TASK_FLAGS(%r1),%r19
1851+
LDREG TI_FLAGS-THREAD_SZ_ALGN-FRAME_SIZE(%r30),%r19
18521852
ldi _TIF_SYSCALL_TRACE_MASK,%r2
18531853
and,COND(=) %r19,%r2,%r0
18541854
b,n syscall_restore_rfi

0 commit comments

Comments
 (0)