lkml.org 
[lkml]   [2018]   [Jan]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/4] x86/retpoline: Add new mode RETPOLINE_UNDERFLOW
> @@ -209,6 +234,11 @@ static void __init spectre_v2_select_mitigation(void)
> mode = retp_compiler() ? SPECTRE_V2_RETPOLINE_GENERIC :
> SPECTRE_V2_RETPOLINE_MINIMAL;
> setup_force_cpu_cap(X86_FEATURE_RETPOLINE);
> + if (mode == SPECTRE_V2_RETPOLINE_GENERIC &&
> + cpu_needs_underflow_protection()) {
> + mode = SPECTRE_V2_RETPOLINE_UNDERFLOW;
> + setup_force_cpu_cap(X86_FEATURE_RETURN_UNDERFLOW);
> + }
> }

Why does this require a retp-compatible compiler to be enabled?

Thanks,
Dominik

\
 
 \ /
  Last update: 2018-01-14 23:26    [W:0.082 / U:1.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site