[llvm-dev] retpoline mitigation and 6.0

David Woodhouse via llvm-dev llvm-dev at lists.llvm.org
Fri Feb 9 04:54:53 PST 2018


On Fri, 2018-02-09 at 10:36 +0000, David Woodhouse wrote:
> 
> Did you get anywhere with the function attribute? Having isolated the
> next boot failure to "it goes away if I compile io_apic.c without
> retpoline", bisecting it per-function would help to further delay the
> bit where I actually have to start *thinking*...

It's mp_register_ioapic(), and only when io_apic_unique_id() gets
inlined, at which point bad things start happening.

[    0.000000] mp_register_ioapic, 0 fec00000 0 c1b2fe88
[    0.000000] At line 412, gsi_base is 0
[    0.000000] At line 425, gsi_base is -1043715332
[    0.000000] At line 427, gsi_base is -1043715332

http://git.infradead.org/users/dwmw2/linux-retpoline.git/shortlog/refs/heads/clang
http://david.woodhou.se/clang32.config


http://david.woodhou.se/io_apic_b.i
http://david.woodhou.se/io_apic_b.noretpoline.s
http://david.woodhou.se/io_apic_b.retpoline.s

I don't *think* I screwed up copying and pasting the retpoline thunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5213 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180209/61347499/attachment.bin>


More information about the llvm-dev mailing list