News for hackers. Stuff that matters.
Re:Unintended Instructions on x86 by pjc50 on Tuesday May 11, 2021 @06:10AM (#27116256)
Indeed - misaligned instructions don't work on ARM, the instruction pointer has to be word-aligned.
Re:Unintended Instructions on x86 by classichasclass on Tuesday May 11, 2021 @10:32AM (#27118551)
Most RISC and RISC-derived instruction sets are this way. Power ISA also faults if the PC isn't aligned to 32 bits. ARM Thumb encoding makes this a hair more complex, but certainly less than x86.
Re:Unintended Instructions on x86 by q-big on Tuesday May 11, 2021 @11:00AM (#27118875)
T32 has 16 and 32 bit instructions and is not self-synchronizing. Thus, the problem is much less severe on ARM (T32), but not non-existent.