View | Details | Raw Unified | Return to bug 73701
Collapse All | Expand All

(-)linux-2.4.21/arch/x86_64/kernel/ptrace.c (+5 lines)
Lines 142-147 static int putreg(struct task_struct *ch Link Here
142
				return -EIO;
142
				return -EIO;
143
			value &= 0xffff;
143
			value &= 0xffff;
144
            break;
144
            break;
145
		case offsetof(struct user_regs_struct, rip):
146
			/* Check if the new RIP address is canonical */
147
			if (value >= TASK_SIZE)
148
				return -EIO;
149
			break;
145
	}      
150
	}      
146
	put_stack_long(child, regno - sizeof(struct pt_regs), value);
151
	put_stack_long(child, regno - sizeof(struct pt_regs), value);
147
	return 0;
152
	return 0;

Return to bug 73701