Re: [PATCH v8 00/17] Enable FSGSBASE instructions

From: Thomas Gleixner
Date: Mon Sep 16 2019 - 05:21:56 EST


On Thu, 12 Sep 2019, Andy Lutomirski wrote:

Thanks, for adding me and the others on Cc. I had to dig out the cover
letter from my LKML archive ....

> On 9/12/19 1:06 PM, Chang S. Bae wrote:
>
> > Updates from v7 [7]:
> > (1) Consider FSGSBASE when determining which Spectre SWAPGS mitigations are
> > required.
> > (2) Fixed save_fsgs() to be aware of interrupt conditions
> > (3) Made selftest changes based on Andy's previous fixes and cleanups
> > (4) Included Andy's paranoid exit cleanup
> > (5) Included documentation rewritten by Thomas
> > (6) Carried on Thomas' edits on multiple changelogs and comments
> > (7) Used '[FS|GS] base' consistently, except for selftest where GSBASE has
> > been already used in its test messages
> > (8) Dropped the READ_MSR_GSBASE macro
> >
>
> This looks unpleasant to review. I wonder if it would be better to unrevert
> the reversion, merge up to Linus' tree or -tip, and then base the changes on
> top of that.

I don't think that's a good idea. The old code is broken in several ways
and not bisectable. So we really better start from scratch.

Thanks,

tglx