title: Return-Oriented Programming: Are all the code sequences ended with “ret” potential “gadgets” for ROP attack?
body: <p>So by reading this rop <a href="http://cseweb.ucsd.edu/~hovav/dist/rop.pdf" rel="nofollow">paper</a> from Dr. Shacham, I know that it is not very hard to find gadgets set that has Turning-complete computation ability.</p>
  
  <p>So I am thinking that, in theoretical, are all the asm code sequences ended with <strong>ret</strong> can be used as gadgets in ROP attack?</p>
  
  <p>Is it wrong? Could anyone give me some counteract example?</p>