32-bit Thumb-2 breakpoints

Pavel Machek pavel at ucw.cz
Thu Feb 4 17:46:46 EST 2010


On Wed 2010-02-03 12:44:26, Daniel Jacobowitz wrote:
> On Wed, Feb 03, 2010 at 05:23:01PM +0000, Jamie Lokier wrote:
> > Daniel Jacobowitz wrote:
> > > Thankfully, both branches into IT blocks and branches
> > > leaving IT blocks not at the last instruction are forbidden.
> > 
> > Forbidden as in throws a fault, or forbidden as in "can we use this to
> > break out of GDB single-stepping to give third-parties a hard time
> > tracing my secret code"?
> 
> Forbidden as in "the architecture documentation says it has
> unpredictable behavior".
> 
> That's generally where I draw the line at trying to handle bad code.
> In practice, I will make a wild guess that current processors fault
> branches during an IT block and don't do anything fancy for branches
> into an IT block, or else it messes up in some hard-to-reproduce way.

So it seems the second kind of forbidden :-(.
									Pavel

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html



More information about the linux-arm-kernel mailing list