The latest development version of this page may be more current than this released 1.14.1 version.
CONFIG_X86_RETPOLINE

Build with retpolines enabled in x86 assembly code

Type: bool

Help

This is recommended on platforms with speculative executions, to protect against branch target injection (AKA Spectre-V2). Full description of how retpolines work can be found here[1].

[1] https://support.google.com/faqs/answer/7625886

Direct dependencies

USERSPACE && X86

(Includes any dependencies from if’s and menus.)

Defaults

No defaults. Implicitly defaults to n.

Kconfig definition

At arch/x86/core/Kconfig:95

Included via Kconfig:10Kconfig.zephyr:29arch/Kconfig:15arch/x86/Kconfig:14

Menu path: (top menu) → X86 Architecture Options

config X86_RETPOLINE
    bool
    prompt "Build with retpolines enabled in x86 assembly code" if USERSPACE && X86
    depends on USERSPACE && X86
    help
      This is recommended on platforms with speculative executions, to
      protect against branch target injection (AKA Spectre-V2).  Full
      description of how retpolines work can be found here[1].

      [1] https://support.google.com/faqs/answer/7625886

(Definitions include propagated dependencies, including from if’s and menus.)