[kernel-xen] EL6 kernel builds - advice required.

Steven Haigh netwiz at crc.id.au
Mon Apr 9 14:12:46 AEST 2018


Hi all,

For those running EL6 still, I've run into a problem that I'm not quite sure 
how to fix.

The whole retpoline changes to EL6 have broken the ability to build the stock 
4.14 kernel due to the following errors:

BUILDSTDERR: arch/x86/kernel/head64.c: In function 'copy_bootdata':
BUILDSTDERR: ./arch/x86/include/asm/mem_encrypt.h:59: sorry, unimplemented: 
inlining failed in call to 'sme_map_bootdata': function not inlinable
BUILDSTDERR: arch/x86/kernel/head64.c:294: sorry, unimplemented: called from 
here
BUILDSTDERR: ./arch/x86/include/asm/mem_encrypt.h:60: sorry, unimplemented: 
inlining failed in call to 'sme_unmap_bootdata': function not inlinable
BUILDSTDERR: arch/x86/kernel/head64.c:310: sorry, unimplemented: called from 
here
BUILDSTDERR: make[2]: *** [arch/x86/kernel/head64.o] Error 1
BUILDSTDERR: make[1]: *** [arch/x86/kernel] Error 2
BUILDSTDERR: make: *** [arch/x86] Error 2

The gcc version in EL6 doesn't understand this feature, and therefore fails to 
build.

Kernel.org bug report:
https://bugzilla.kernel.org/show_bug.cgi?id=199283

Building with a GCC version before the pre-retpoline changes succeeds, but 
this means anything that is produced will still be vulnerable to the issues 
this was supposed to fix.

So, right now, I've been unable to successfully build a 4.14 kernel beyond the 
currently released 4.14.25.

I'm hoping to throw this out to the brains trust and see if there is a 
maintainable way to resolve this. Happy for general discussion as well.

-- 
Steven Haigh

📧 netwiz at crc.id.au       💻 https://www.crc.id.au
📞 +61 (3) 9001 6090    📱 0412 935 897
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.wireless.org.au/pipermail/kernel-xen/attachments/20180409/c621e6c1/attachment.sig>


More information about the kernel-xen mailing list