/[linux-patches]/genpatches-2.6/trunk/2.6.11/1101_ptrace-canonical.patch
Gentoo

Contents of /genpatches-2.6/trunk/2.6.11/1101_ptrace-canonical.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 15 - (hide annotations) (download) (as text)
Sat Jun 11 23:54:58 2005 UTC (15 years, 5 months ago) by dsd
File MIME type: text/x-diff
File size: 417 byte(s)
Two more x86_64 ptrace fixes
1 dsd 15 --- a/arch/x86_64/kernel/ptrace.c
2     +++ b/arch/x86_64/kernel/ptrace.c
3     @@ -277,6 +277,11 @@ static int putreg(struct task_struct *ch
4     return -EIO;
5     value &= 0xffff;
6     break;
7     + case offsetof(struct user_regs_struct, rip):
8     + /* Check if the new RIP address is canonical */
9     + if (value >= TASK_SIZE)
10     + return -EIO;
11     + break;
12     }
13     put_stack_long(child, regno - sizeof(struct pt_regs), value);
14     return 0;

  ViewVC Help
Powered by ViewVC 1.1.20