Re: [PATCH 1/2] uprobes: add comment with insn opcodes, mnemonics and why we dont support them

From: Oleg Nesterov
Date: Mon May 05 2014 - 15:41:24 EST


On 05/05, Denys Vlasenko wrote:
>
> + * Opcodes we'll probably never support:
> + * 6c-6f - ins,outs. SEGVs if used in userspace
> + * e4-e7 - in,out imm. SEGVs if used in userspace
> + * ec-ef - in,out acc. SEGVs if used in userspace

Well. I have no idea why they are nacked, but this is not the reason.

SEGVs are fine. Plus we have ioperm().

> + * cc - int3. SIGTRAP if used in userspace

SIGTRAP is not the reason. We do not want to enter do_int3() in UTASK_SSTEP
state with utask->active_uprobe != NULL etc. Too many potential complications.

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/