Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 295257
b: refs/heads/master
c: 8c5cf9e
h: refs/heads/master
i:
  295255: 346dd81
v: v3
  • Loading branch information
Denys Vlasenko authored and Linus Torvalds committed Mar 23, 2012
1 parent 0be9710 commit 60ea0a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b1845ff53f1a9eadba005ae53dfe60ab00dfe83b
refs/heads/master: 8c5cf9e5c50dc902713897e10201aa71f3546aa1
5 changes: 4 additions & 1 deletion trunk/kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,9 @@ int ptrace_writedata(struct task_struct *tsk, char __user *src, unsigned long ds

static int ptrace_setoptions(struct task_struct *child, unsigned long data)
{
if (data & ~(unsigned long)PTRACE_O_MASK)
return -EINVAL;

child->ptrace &= ~PT_TRACE_MASK;

if (data & PTRACE_O_TRACESYSGOOD)
Expand All @@ -551,7 +554,7 @@ static int ptrace_setoptions(struct task_struct *child, unsigned long data)
if (data & PTRACE_O_TRACEEXIT)
child->ptrace |= PT_TRACE_EXIT;

return (data & ~PTRACE_O_MASK) ? -EINVAL : 0;
return 0;
}

static int ptrace_getsiginfo(struct task_struct *child, siginfo_t *info)
Expand Down

0 comments on commit 60ea0a5

Please sign in to comment.