Messages in this thread | | | Subject | Re: [PATCH] Revert "module: Add retpoline tag to VERMAGIC" | From | Randy Dunlap <> | Date | Wed, 24 Jan 2018 11:21:33 -0800 |
| |
On 01/24/2018 10:17 AM, Andi Kleen wrote:
> diff --git a/arch/x86/kernel/cpu/bugs.c b/arch/x86/kernel/cpu/bugs.c > index e4dc26185aa7..9064b20473a7 100644 > --- a/arch/x86/kernel/cpu/bugs.c > +++ b/arch/x86/kernel/cpu/bugs.c > @@ -93,6 +93,18 @@ static const char *spectre_v2_strings[] = { > > static enum spectre_v2_mitigation spectre_v2_enabled = SPECTRE_V2_NONE; > > +/* A module has been loaded. Disable reporting that we're good. */ > +void disable_retpoline(void) > +{ > + spectre_v2_enabled = SPECTRE_V2_NONE; > + pr_err("system may be vunerable to spectre\n");
vulnerable
> +}
-- ~Randy
| |