> * Steven Rostedt (
rostedt@goodmis.org) wrote:
> > > >
> > >
> > > That's bad :
> > >
> > > #define GENERIC_NOP5 GENERIC_NOP1 GENERIC_NOP4
> > >
> > > #define K8_NOP5 K8_NOP3 K8_NOP2
> > >
> > > #define K7_NOP5 K7_NOP4 ASM_NOP1
> > >
> > > So, when you try, later, to replace these instructions with a single
> > > 5-bytes instruction, a preempted thread could iret in the middle of your
> > > 5-bytes insn and cause an illegal instruction ?
> >
> > That's why I use kstop_machine.
> >
>
> kstop_machine does not guarantee that you won't have _any_ thread
> preempted with IP pointing exactly in the middle of your instructions
> _before_ the modification scheduled back in _after_ the modification and
> thus causing an illegal instruction.
>
> Still buggy. :/