Provide a guideline on which program should be rebuilt by "retpoline"-enabled compiler

Solution Verified - Updated -

Issue

Red Hat released both a kernel and gcc errata for RHEL 5, 6 and 7 which include "retpoline" optimizations.

After applying these errata, the following messages are shown when loading ISV module which were not built with a "retpoline"-enabled compiler.

WARNING: module 'xxxxx' built without retpoline-enabled compiler, may affect Spectre v2 mitigation

There is no guideline for application and middleware developers how to deal with the above message.

  • What should a customer do?
    • Should they update to the latest kernel and ask the ISVs to provide updated modules?
  • What should an ISV do?
    • What should the module do specifically? How should it be compiled?

Environment

  • Red Hat Enterprise Linux 5
  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • spectre/meltdown
  • Kernel versions which are retpoline enabled output a warning, please refer to "retpoline enabled kernel and compiler versions" in the resolution section for specific versions

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content