Bugzilla – Attachment #36726: Check for canonical addresses in ptrace correctly for bug #83143
return -EIO;
value &= 0xffff;
break;
case offsetof(struct user_regs_struct, rip):
/* Check if the new RIP address is canonical */
if (!(value >> 47 == 0 || value >> 47 == 0x1ffff))
}
put_stack_long(child, regno - sizeof(struct pt_regs), value);
return 0;