Skip to content
Snippets Groups Projects
Commit 992fe3c4 authored by M1cha's avatar M1cha Committed by Ed Tam
Browse files

ptrace: fix ptrace defect cause by a merge fail


this bug was introduced with I9493f28c30356a10eccb320e0a2d1a141388af9a

Signed-off-by: default avatarM1cha <sigmaepsilon92@gmail.com>
parent 51f2ffdb
Branches
Tags
No related merge requests found
...@@ -932,13 +932,6 @@ asmlinkage int syscall_trace(int why, struct pt_regs *regs, int scno) ...@@ -932,13 +932,6 @@ asmlinkage int syscall_trace(int why, struct pt_regs *regs, int scno)
ip = regs->ARM_ip; ip = regs->ARM_ip;
regs->ARM_ip = why; regs->ARM_ip = why;
/*
* IP is used to denote syscall entry/exit:
* IP = 0 -> entry, =1 -> exit
*/
ip = regs->ARM_ip;
regs->ARM_ip = why;
/* the 0x80 provides a way for the tracing parent to distinguish /* the 0x80 provides a way for the tracing parent to distinguish
between a syscall stop and SIGTRAP delivery */ between a syscall stop and SIGTRAP delivery */
ptrace_notify(SIGTRAP | ((current->ptrace & PT_TRACESYSGOOD) ptrace_notify(SIGTRAP | ((current->ptrace & PT_TRACESYSGOOD)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment