[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20180116200842.GC7844@tassilo.jf.intel.com>
Date: Tue, 16 Jan 2018 12:08:42 -0800
From: Andi Kleen <ak@...ux.intel.com>
To: Greg KH <gregkh@...uxfoundation.org>
Cc: Andi Kleen <andi@...stfloor.org>, tglx@...utronix.de,
dwmw@...zon.co.uk, torvalds@...ux-foundation.org,
linux-kernel@...r.kernel.org, arjan.van.de.ven@...el.com,
peterz@...radead.org, jeyu@...nel.org
Subject: Re: [PATCH] retpoline/module: Taint kernel for missing retpoline in
module
On Sat, Jan 13, 2018 at 04:36:44PM +0100, Greg KH wrote:
> On Sat, Jan 13, 2018 at 06:53:00AM -0800, Andi Kleen wrote:
> > > > When the a module hasn't been compiled with a retpoline
> > > > aware compiler, print a warning and set a taint flag.
> > >
> > > Isn't that caught by the "build with a different compiler/version" check
> > > that we have? Or used to have? If not, can't we just make it into that
> >
> > - the compiler version number may not change if a distribution backports
> > the gcc changes for the new flag
> > - the module might be using a custom make file that does not correctly
> > set the flag, even if the compiler supports it
> >
> > > type of check to catch this type of problem no matter what type of
> > > feature/option it is trying to catch?
> >
> > I suspect that would be far more complicated.
>
> Really? As Arjan points out, just mix it into the modversion symbol
> generation, that should cause it to be caught properly and trivially.
It seems it's more obvious to put it into VERMAGIC. That should
be good enough too?
This gives it an actual string that can be printed.
Otherwise there won't be a clear error message on what's wrong.
-Andi
Powered by blists - more mailing lists