Re: [PATCH v6 3.2-rc1 28/28] uprobes: introduceUTASK_SSTEP_TRAPPED logic
From: Oleg Nesterov
Date: Mon Nov 14 2011 - 11:45:20 EST
On 11/11, Srikar Dronamraju wrote:
>
> +void __weak abort_xol(struct pt_regs *regs, struct uprobe_task *utask)
> +{
> + set_instruction_pointer(regs, utask->vaddr);
> +}
OK, this is fine on 32bit. But X86_64 should also handle
UPROBES_FIX_RIP_AX/CX?
IOW, shouldn't we also do
if (uprobe->fixups & UPROBES_FIX_RIP_AX)
regs->ax = tskinfo->saved_scratch_register;
else if (uprobe->fixups & UPROBES_FIX_RIP_CX)
regs->cx = tskinfo->saved_scratch_register;
on 64bit?
Oleg.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/