Re: Immediate values

From: Arjan van de Ven
Date: Fri Sep 25 2009 - 04:25:49 EST


On Fri, 25 Sep 2009 03:35:13 -0400
Mathieu Desnoyers <mathieu.desnoyers@xxxxxxxxxx> wrote:

> * Arjan van de Ven (arjan@xxxxxxxxxxxxx) wrote:
> > On Thu, 24 Sep 2009 21:34:22 +0200
> > Ingo Molnar <mingo@xxxxxxx> wrote:
> >
> [context for people CCed: see
> http://lkml.org/lkml/2009/9/24/262]
>
> > >
> >
> > stopmachine is fine.
> >
> > more aggressive tricks are rather dicey.
> >
> > (cross modifying code that's being executed in ring 0 is ... not
> > something CPU designers had in mind)
> >
>
> Then, following your advice, kprobes should be re-designed to do a
> stop_machine around the int3 breakpoint insertion ? And gdb
> should be stopping all threads of a target process before inserting a
> breakpoint. Therefore, I do not seem to be the only one confused about
> Intel statement on this issue.

you are oversimplifying what you are trying to do, and overstating what
a ring 3 app and others do.

But I'm not the one whom you'd need to convince, I don't design the
CPU. The people who do are extremely frowning on cross modifying code,
and Peter and I need to sit down with people who did many generations
of CPU to figure out if your scheme is actually safe. And on the AMD
side someone will need to do the same.


--
Arjan van de Ven Intel Open Source Technology Centre
For development, discussion and tips for power savings,
visit http://www.lesswatts.org
--
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/