]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
UBUNTU: SAUCE: cpu/speculation: Uninline and export CPU mitigations helpers
authorTyler Hicks <tyhicks@canonical.com>
Fri, 1 Nov 2019 15:21:39 +0000 (15:21 +0000)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 6 Nov 2019 09:27:26 +0000 (10:27 +0100)
commitfee33a7d55d613941462afed5b5439055cd4c1d4
treef332a8d8c94e7aacfbf24c27eb2d524c971cce99
parent90b9e10ebb74ae10526de52a8e9a877ed03234f4
UBUNTU: SAUCE: cpu/speculation: Uninline and export CPU mitigations helpers

A kernel module may need to check the value of the "mitigations=" kernel
command line parameter as part of its setup when the module needs
to perform software mitigations for a CPU flaw. Uninline and export the
helper functions surrounding the cpu_mitigations enum to allow for their
usage from a module. Lastly, privatize the enum and cpu_mitigations
variable since the value of cpu_mitigations can be checked with the
exported helper functions.

Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
CVE-2018-12207

Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
include/linux/cpu.h
kernel/cpu.c