[lkml]   [2018]   [Feb]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [linus:master] BUILD REGRESSION a2e5790d841658485d642196dbb0927303d6c22f
On Wed, Feb 07, 2018 at 08:14:51PM +0100, Peter Zijlstra wrote:
> Then someone went and wrecked it.

Yeah, note says UD0 didn't eat a ModRM byte on old CPUs. But then that
changed too. Fun stuff changing insn encoding underway.

So if we opt for adding a ModRM byte, could a 0x90 NOP work so that it
doesn't shit itself on those old CPUs?

/me goes and checks

Well, no:

b3: 0f ff eb ud0 %ebx,%ebp

decoded with latest objdump turns into:

b3: 0f .byte 0xf
b4: ff .byte 0xff
b5: 90 nop

because 0x90, when used as a ModRM means, AFAICT, register-indirect
addressing with a 32-bit offset which would need more bytes. :-\

/me adds more bytes...

Yap, yuck, that works:

b3: 0f ff 90 90 90 90 90 ud0 -0x6f6f6f70(%rax),%edx

I guess we need to experiment a bit to find a suitable byte to add...



Good mailing practices for 400: avoid top-posting and trim the reply.

 \ /
  Last update: 2018-02-07 20:29    [W:0.076 / U:0.848 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site