by convery · 3y ago · 0 comments
There's a few valid 16 byte instructions though.. Sandpile lists a few examples: https://www.sandpile.org/x86/opc_enc.htm
36 67 8F EA 78 10 84 24 disp32 imm32 = bextr eax,[ss:esp*1+disp32],imm32
64 67 8F EA F8 10 84 18 disp32 imm32 = bextr rax,[fs:eax+ebx+disp32],imm32[1]: https://yossarian.net/res/pub/mishegos-langsec-2021.pdf
In any case, there's only a finite number of prefixes you can meaningfully stick onto an instruction, and repeating the same prefix will do absolutely nothing.
(There may be even longer valid productions; my analysis was pretty naive. But 26 is already substantially longer than the limit!)