b089d4f004
Kernel does not clear If-Then execution state bits when entering ARM signal handler which violates requirements imposed by ARM architecture reference. Some CPUs look at these bits even while in ARM mode which causes them to skip some instructions in the prologue of the signal handler. To work around the issue we insert enough NOPs in the prologue to ensure that no actual instructions are skipped and then branch to the actual signal handler. For the kernel patch that fixes the issue see: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=6ecf830e5029598732e04067e325d946097519cb This causes sporadic crashes with SIGILL on some testing devices (e.g. Nexus 7). R=fschneider@google.com BUG= Review URL: https://codereview.chromium.org/1940883002 .