Hey everyone,
I managed to get the Retpoline and IBRS kernel patches off the LKML
working on Qubes (I also included the Linux-Hardened Project patches in
there too), so I figured I'd share my work. I have a branch here for
anyone that wants to play around with it:
https://github.com/rtiangha/qubes-linux-kernel/tree/devel-4.14-hard
I also included instructions on how to backport a Retpoline-enabled gcc
version to Fedora 25, but it should build fine using the standard Fedora
25 toolchain as well.
For now, the Retpoline patches are at version 6, and the IBRS patches
are at version 3. There is a version 8 of the Retpoline patches, but it
patches against and relies on a few functions that are only present in
the 4.15 branch at the moment, so I wasn't comfortable in trying to
backport things, especially if that functionality will eventually appear
in a future version of 4.14.
I'm just providing it as-is with no guarantees of support as things may
no longer be compatible as kernel versions increase and I don't have
much volunteer time to work on this and troubleshoot if things break.
But if I do find updated working combinations, I'll update the branch
accordingly (this is mainly for myself so I'm the guinea pig).
- Reg