Commit 03a7681e authored by Diana Craciun's avatar Diana Craciun Committed by Khalid Elmously

powerpc/fsl: Update Spectre v2 reporting

BugLink: https://bugs.launchpad.net/bugs/1830176

commit dfa88658 upstream.

Report branch predictor state flush as a mitigation for
Spectre variant 2.
Signed-off-by: default avatarDiana Craciun <diana.craciun@nxp.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarJuerg Haefliger <juergh@canonical.com>
Signed-off-by: default avatarKleber Sacilotto de Souza <kleber.souza@canonical.com>
parent 95ead8bb
...@@ -214,8 +214,11 @@ ssize_t cpu_show_spectre_v2(struct device *dev, struct device_attribute *attr, c ...@@ -214,8 +214,11 @@ ssize_t cpu_show_spectre_v2(struct device *dev, struct device_attribute *attr, c
if (count_cache_flush_type == COUNT_CACHE_FLUSH_HW) if (count_cache_flush_type == COUNT_CACHE_FLUSH_HW)
seq_buf_printf(&s, "(hardware accelerated)"); seq_buf_printf(&s, "(hardware accelerated)");
} else } else if (btb_flush_enabled) {
seq_buf_printf(&s, "Mitigation: Branch predictor state flush");
} else {
seq_buf_printf(&s, "Vulnerable"); seq_buf_printf(&s, "Vulnerable");
}
seq_buf_printf(&s, "\n"); seq_buf_printf(&s, "\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment