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

(-)linux.orig/arch/x86_64/kernel/ptrace.c (+5 lines)
Lines 276-281 Link Here
276
				return -EIO;
276
				return -EIO;
277
			value &= 0xffff;
277
			value &= 0xffff;
278
			break;
278
			break;
279
		case offsetof(struct user_regs_struct, rip):
280
			/* Check if the new RIP address is canonical */
281
			if (!(value >> 47 == 0 || value >> 47 == 0x1ffff))
282
				return -EIO;
283
			break;
279
	}
284
	}
280
	put_stack_long(child, regno - sizeof(struct pt_regs), value);
285
	put_stack_long(child, regno - sizeof(struct pt_regs), value);
281
	return 0;
286
	return 0;

Return to bug 73701