Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 198734
b: refs/heads/master
c: e0129ef
h: refs/heads/master
v: v3
  • Loading branch information
Oleg Nesterov authored and Linus Torvalds committed May 27, 2010
1 parent 2f95d9a commit e39b342
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 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: 9c1a125921d146f22cf28ff366ff69fd602a0e9b
refs/heads/master: e0129ef91ed758c06b6557c36124acfb2e1c7305
10 changes: 8 additions & 2 deletions trunk/kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -596,18 +596,24 @@ int ptrace_request(struct task_struct *child, long request,

#ifdef CONFIG_BINFMT_ELF_FDPIC
case PTRACE_GETFDPIC: {
struct mm_struct *mm = get_task_mm(child);
unsigned long tmp = 0;

ret = -ESRCH;
if (!mm)
break;

switch (addr) {
case PTRACE_GETFDPIC_EXEC:
tmp = child->mm->context.exec_fdpic_loadmap;
tmp = mm->context.exec_fdpic_loadmap;
break;
case PTRACE_GETFDPIC_INTERP:
tmp = child->mm->context.interp_fdpic_loadmap;
tmp = mm->context.interp_fdpic_loadmap;
break;
default:
break;
}
mmput(mm);

ret = put_user(tmp, (unsigned long __user *) data);
break;
Expand Down

0 comments on commit e39b342

Please sign in to comment.