Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 87057
b: refs/heads/master
c: 84c6f60
h: refs/heads/master
i:
  87055: 8cf07fc
v: v3
  • Loading branch information
Roland McGrath authored and Linus Torvalds committed Mar 8, 2008
1 parent 4290704 commit 158eeef
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 60d5bcec7ed6c00e3ec88749fd81229731363221
refs/heads/master: 84c6f6046c5a2189160a8f0dca8b90427bf690ea
10 changes: 10 additions & 0 deletions trunk/arch/x86/kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,16 @@ static int putreg(struct task_struct *child,
return set_flags(child, value);

#ifdef CONFIG_X86_64
/*
* Orig_ax is really just a flag with small positive and
* negative values, so make sure to always sign-extend it
* from 32 bits so that it works correctly regardless of
* whether we come from a 32-bit environment or not.
*/
case offsetof(struct user_regs_struct, orig_ax):
value = (long) (s32) value;
break;

case offsetof(struct user_regs_struct,fs_base):
if (value >= TASK_SIZE_OF(child))
return -EIO;
Expand Down

0 comments on commit 158eeef

Please sign in to comment.