Re: [PATCH v8 04/12] x86/spectre: Add boot time option to select Spectre v2 mitigation

From: Jiri Kosina
Date: Wed Jan 24 2018 - 04:57:01 EST


On Wed, 24 Jan 2018, Greg Kroah-Hartman wrote:

> But will Andi's patch work well for you? Adding a MODULE_INFO() tag to
> every module?

Yes, that would work -- all the modules that get built in tree, or out of
tree but with retpolined compiler, would have that marker that could be
optionally checked for by the kernel.

> I just thought since you were already using modversions in enterprise
> distros already, that adding it there would be the simplest.

The patch as-is introduces immediate modversion mismatch between
retpolined kernel and non-retpolined module, making each and every one
fail to load.

Thanks,

--
Jiri Kosina
SUSE Labs