Re: Did we really need to clear the IF flag at prepare_singlestep()of x86 kprobes?

From: Arjan van de Ven
Date: Tue Jan 12 2010 - 11:06:20 EST


On Tue, 12 Jan 2010 19:09:35 +0800
Dongdong Deng <libfetion@xxxxxxxxx> wrote:

> Hi Kprobe experts,
>
> I have a doubt about the handling "X86_EFLAGS_IF" at
> prepare_singlestep(), Could you give me some suggestions?


iirc it was a security thing; we used to have some exploits
due to the linux-abi entry points which caused a mess, and this
was put there as defensive programming.

I could totally misremember this as well of course.


--
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/